mtd: nand: omap_gpmc: use macro for register definitions
authorpekon gupta <pekon@ti.com>
Mon, 2 Jun 2014 11:44:41 +0000 (17:14 +0530)
committerTom Rini <trini@ti.com>
Fri, 6 Jun 2014 21:46:08 +0000 (17:46 -0400)
GPMC can support simultaneous processing of 8 512Byte data chunks, in parallel

Signed-off-by: Pekon Gupta <pekon@ti.com>
include/linux/mtd/omap_gpmc.h

index 22f657396955c8486dab38bf9b6de7f669c34735..d55fe328e64140ca4b79db9bfe55a98df8105b43 100644 (file)
@@ -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 */