diff options
author | Tom Rini <trini@konsulko.com> | 2021-09-22 21:50:27 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-10-06 16:15:14 +0300 |
commit | d73b9e67ed49be21fd51a26b830a6543dcffdbc0 (patch) | |
tree | f7ed841c665e8b998b167b3e71791c8e34691627 | |
parent | c25ca9060a476873770c4bc00e85a0819465e110 (diff) | |
download | u-boot-d73b9e67ed49be21fd51a26b830a6543dcffdbc0.tar.xz |
m53menlo: Switch to deriving CONFIG_SYS_NAND_PAGE_COUNT
Typically platforms will define CONFIG_SYS_NAND_PAGE_COUNT based on
CONFIG_SYS_NAND_BLOCK_SIZE / CONFIG_SYS_NAND_PAGE_SIZE. Switch to this
in preparation for migrating CONFIG_SYS_NAND namespace to Kconfig.
Cc: Marek Vasut <marex@denx.de>
Cc: Olaf Mandel <o.mandel@menlosystems.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | include/configs/m53menlo.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/configs/m53menlo.h b/include/configs/m53menlo.h index 813d326cda..11c8a87c95 100644 --- a/include/configs/m53menlo.h +++ b/include/configs/m53menlo.h @@ -140,9 +140,11 @@ #define CONFIG_SPL_STACK 0x70004000 #define CONFIG_SYS_NAND_U_BOOT_OFFS CONFIG_SPL_PAD_TO +#define CONFIG_SYS_NAND_BLOCK_SIZE (128 * 1024) #define CONFIG_SYS_NAND_PAGE_SIZE 2048 #define CONFIG_SYS_NAND_OOBSIZE 64 -#define CONFIG_SYS_NAND_PAGE_COUNT 64 +#define CONFIG_SYS_NAND_PAGE_COUNT (CONFIG_SYS_NAND_BLOCK_SIZE / \ + CONFIG_SYS_NAND_PAGE_SIZE) #define CONFIG_SYS_NAND_SIZE (256 * 1024 * 1024) #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0 |