aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpekon gupta2014-06-02 17:14:41 +0530
committerTom Rini2014-06-06 17:46:08 -0400
commit8d13a730dea1b5b4d32b31b5584cb8fdea27a248 (patch)
tree4c84b5cc53ed1f1e0532fefe9342f193d1211e91
parent68128e0a86810c9ea9bebcb69451aeabfd44c491 (diff)
mtd: nand: omap_gpmc: use macro for register definitions
GPMC can support simultaneous processing of 8 512Byte data chunks, in parallel Signed-off-by: Pekon Gupta <pekon@ti.com>
-rw-r--r--include/linux/mtd/omap_gpmc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mtd/omap_gpmc.h b/include/linux/mtd/omap_gpmc.h
index 22f65739695..d55fe328e64 100644
--- a/include/linux/mtd/omap_gpmc.h
+++ b/include/linux/mtd/omap_gpmc.h
@@ -11,6 +11,7 @@
#define GPMC_BUF_EMPTY 0
#define GPMC_BUF_FULL 1
+#define GPMC_MAX_SECTORS 8
enum omap_ecc {
/* 1-bit ECC calculation by Software, Error detection by Software */
@@ -75,7 +76,7 @@ struct gpmc {
u8 res7[12]; /* 0x224 */
u32 testmomde_ctrl; /* 0x230 */
u8 res8[12]; /* 0x234 */
- struct bch_res_0_3 bch_result_0_3[2]; /* 0x240 */
+ struct bch_res_0_3 bch_result_0_3[GPMC_MAX_SECTORS]; /* 0x240,0x250, */
};
/* Used for board specific gpmc initialization */