mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
68128e0a86
commit
8d13a730de
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
#define GPMC_BUF_EMPTY 0
|
#define GPMC_BUF_EMPTY 0
|
||||||
#define GPMC_BUF_FULL 1
|
#define GPMC_BUF_FULL 1
|
||||||
|
#define GPMC_MAX_SECTORS 8
|
||||||
|
|
||||||
enum omap_ecc {
|
enum omap_ecc {
|
||||||
/* 1-bit ECC calculation by Software, Error detection by Software */
|
/* 1-bit ECC calculation by Software, Error detection by Software */
|
||||||
|
@ -75,7 +76,7 @@ struct gpmc {
|
||||||
u8 res7[12]; /* 0x224 */
|
u8 res7[12]; /* 0x224 */
|
||||||
u32 testmomde_ctrl; /* 0x230 */
|
u32 testmomde_ctrl; /* 0x230 */
|
||||||
u8 res8[12]; /* 0x234 */
|
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 */
|
/* Used for board specific gpmc initialization */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue