diff options
author | Tom Rini | 2022-03-24 17:17:57 -0400 |
---|---|---|
committer | Tom Rini | 2022-04-01 10:28:47 -0400 |
commit | ac28e20842f5a93aeb62bc0c2cac67ff1f0885ea (patch) | |
tree | 872cdef5dd7f8c3e93da9430b9ef47c48fea20c1 /include/configs/M5329EVB.h | |
parent | 225aaacf361dbd894a4a8b81bf5beba484c0e3cd (diff) |
M5329EVB, M5373EVB: Remove CONFIG_NANDFLASH_SIZE
In the case of M5373EVB we always had NANDFLASH_SIZE=16, so just use it
directly. In the case of M5329EVB we had not removed the rest of NAND
support when saying we didn't have NAND, so instead use that to key off
of rather than NANDFLASH_SIZE.
Cc: TsiChung Liew <Tsi-Chung.Liew@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/configs/M5329EVB.h')
-rw-r--r-- | include/configs/M5329EVB.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/configs/M5329EVB.h b/include/configs/M5329EVB.h index cfb2507a7b4..3e5bfc22d0c 100644 --- a/include/configs/M5329EVB.h +++ b/include/configs/M5329EVB.h @@ -113,7 +113,7 @@ # define CONFIG_SYS_MAX_FLASH_SECT 137 /* max number of sectors on one chip */ #endif -#ifdef CONFIG_NANDFLASH_SIZE +#ifdef CONFIG_CMD_NAND # define CONFIG_SYS_MAX_NAND_DEVICE 1 # define CONFIG_SYS_NAND_BASE CONFIG_SYS_CS2_BASE # define CONFIG_SYS_NAND_SIZE 1 @@ -165,9 +165,9 @@ #define CONFIG_SYS_CS1_MASK 0x001f0001 #define CONFIG_SYS_CS1_CTRL 0x002A3780 -#ifdef CONFIG_NANDFLASH_SIZE +#ifdef CONFIG_CMD_NAND #define CONFIG_SYS_CS2_BASE 0x20000000 -#define CONFIG_SYS_CS2_MASK ((CONFIG_NANDFLASH_SIZE << 20) | 1) +#define CONFIG_SYS_CS2_MASK (16 << 20) #define CONFIG_SYS_CS2_CTRL 0x00001f60 #endif |