aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-11-12 17:36:49 -0500
committerTom Rini <trini@konsulko.com>2022-12-05 16:05:38 -0500
commita9f03760c1b85cda153723c5dc5d7ad0a64a5acc (patch)
treed80573870b3c1ea46ce4bfa13467b54485d4a9fd /drivers
parent1a792803d8905373bc04bbc2a4dc7d0d1ecdd967 (diff)
downloadu-boot-a9f03760c1b85cda153723c5dc5d7ad0a64a5acc.zip
u-boot-a9f03760c1b85cda153723c5dc5d7ad0a64a5acc.tar.gz
u-boot-a9f03760c1b85cda153723c5dc5d7ad0a64a5acc.tar.bz2
Convert CONFIG_SYS_NAND_PAGE_2K et al to Kconfig
This converts the following to Kconfig: CONFIG_SYS_NAND_PAGE_2K CONFIG_SYS_NAND_PAGE_4K Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/raw/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 3585031..5483efe 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -168,6 +168,19 @@ config SYS_NAND_SOFT_ECC
endchoice
+choice
+ prompt "NAND page size"
+ depends on NAND_DAVINCI
+ default SYS_NAND_PAGE_2K
+
+config SYS_NAND_PAGE_2K
+ bool "Page size is 2K"
+
+config SYS_NAND_PAGE_4K
+ bool "Page size is 4K"
+
+endchoice
+
config KEYSTONE_RBL_NAND
depends on ARCH_KEYSTONE
def_bool y