aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorBastian Hecht <hechtb@googlemail.com>2012-03-01 10:48:39 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-03-27 00:42:57 +0100
commit0b3f0d12eff1ed23496fcf4cf468e1d317516e53 (patch)
treee84337479fd27342f617707819f7af27729409c1 /include/linux/mtd
parentmtd: sh_flctl: Implement NAND_CMD_RNDOUT command (diff)
downloadlinux-dev-0b3f0d12eff1ed23496fcf4cf468e1d317516e53.tar.xz
linux-dev-0b3f0d12eff1ed23496fcf4cf468e1d317516e53.zip
mtd: sh_flctl: Use cached register value for FLCMNCR
Instead of reading out the register, use a cached value. This will make way for a proper runtime power management implementation. Signed-off-by: Bastian Hecht <hechtb@gmail.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/sh_flctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/sh_flctl.h b/include/linux/mtd/sh_flctl.h
index b66940593c82..c7082820703b 100644
--- a/include/linux/mtd/sh_flctl.h
+++ b/include/linux/mtd/sh_flctl.h
@@ -132,6 +132,7 @@ struct sh_flctl {
int erase1_page_addr; /* page_addr in ERASE1 cmd */
uint32_t erase_ADRCNT; /* bits of FLCMDCR in ERASE1 cmd */
uint32_t rw_ADRCNT; /* bits of FLCMDCR in READ WRITE cmd */
+ uint32_t flcmncr_base; /* base value of FLCMNCR */
int hwecc_cant_correct[4];