]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_SYS_NAND_PAGE_2K et al to Kconfig
authorTom Rini <trini@konsulko.com>
Sat, 12 Nov 2022 22:36:49 +0000 (17:36 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 5 Dec 2022 21:05:38 +0000 (16:05 -0500)
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>
configs/k2l_evm_defconfig
configs/k2l_hs_evm_defconfig
drivers/mtd/nand/raw/Kconfig
include/configs/da850evm.h
include/configs/k2e_evm.h
include/configs/k2g_evm.h
include/configs/k2hk_evm.h
include/configs/k2l_evm.h
include/configs/omapl138_lcdk.h

index bb91aa3534a982d8b52f3824288ec17f3680cd09..13d612ac3fb61166cb2095ab655d5d1e1881943a 100644 (file)
@@ -80,6 +80,7 @@ CONFIG_MTD_RAW_NAND=y
 CONFIG_SYS_NAND_USE_FLASH_BBT=y
 CONFIG_SYS_NAND_NO_SUBPAGE_WRITE=y
 CONFIG_NAND_DAVINCI=y
+CONFIG_SYS_NAND_PAGE_4K=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SF_DEFAULT_SPEED=30000000
 CONFIG_SPI_FLASH_STMICRO=y
index d10965a70fc8ffb091b9319adbe60c5b0e8a2012..59ec3a6346f3b783f66ff47ee3efd26a905ff89f 100644 (file)
@@ -58,6 +58,7 @@ CONFIG_MTD_RAW_NAND=y
 CONFIG_SYS_NAND_USE_FLASH_BBT=y
 CONFIG_SYS_NAND_NO_SUBPAGE_WRITE=y
 CONFIG_NAND_DAVINCI=y
+CONFIG_SYS_NAND_PAGE_4K=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SF_DEFAULT_SPEED=30000000
 CONFIG_SPI_FLASH_STMICRO=y
index 3585031ddfa88f9ff08191c40e5373cca3736fd3..5483efeb39b43abdd096d65a97f9f334b0a1ddba 100644 (file)
@@ -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
index 11f104bcb86dd19135a138e5b641f5939b924e05..5a5c65da16c641eb5096530b1f2580bcf640fa26 100644 (file)
  * Flash & Environment
  */
 #ifdef CONFIG_MTD_RAW_NAND
-#define        CONFIG_SYS_NAND_PAGE_2K
 #define CONFIG_SYS_NAND_CS             3
 #define CONFIG_SYS_NAND_BASE           DAVINCI_ASYNC_EMIF_DATA_CE3_BASE
 #define CONFIG_SYS_NAND_MASK_CLE               0x10
index 9b25c34982235f96752d802b2b1820e5f00ee766..bbc58be511e468ea6238568c60fc0612904c1a87 100644 (file)
@@ -36,9 +36,6 @@
 
 #define SPI_MTD_PARTS KEYSTONE_SPI0_MTD_PARTS
 
-/* NAND Configuration */
-#define CONFIG_SYS_NAND_PAGE_2K
-
 /* Network */
 #define CONFIG_KSNET_NETCP_V1_5
 #define CONFIG_KSNET_CPSW_NUM_PORTS    9
index 887fda90d6a0afa09a91ce2106d2e80b3c75e314..bb91751d5d90569abe9dced8eee65ed1417a4dac 100644 (file)
@@ -50,9 +50,6 @@
        "get_mon_mmc=load mmc ${bootpart} ${addr_mon} ${bootdir}/${name_mon}\0"\
        "name_fs=arago-base-tisdk-image-k2g-evm.cpio\0"
 
-/* NAND Configuration */
-#define CONFIG_SYS_NAND_PAGE_2K
-
 /* Network */
 #define CONFIG_KSNET_NETCP_V1_5
 #define CONFIG_KSNET_CPSW_NUM_PORTS    2
index cfc34c7da6d7334b130ec0d4d509c9736cbb14d6..68cbe98b553bd52c01e983ace3f591510a78d5dd 100644 (file)
@@ -36,9 +36,6 @@
 
 #define SPI_MTD_PARTS KEYSTONE_SPI0_MTD_PARTS
 
-/* NAND Configuration */
-#define CONFIG_SYS_NAND_PAGE_2K
-
 /* Network */
 #define CONFIG_KSNET_NETCP_V1_0
 #define CONFIG_KSNET_CPSW_NUM_PORTS    5
index 65988fff06ed3ae175d76cfee208aa1b0bbe40d5..a18158a7eb33b611503cddf95d65d0b4ff0dcfad 100644 (file)
@@ -36,9 +36,6 @@
 
 #define SPI_MTD_PARTS KEYSTONE_SPI0_MTD_PARTS
 
-/* NAND Configuration */
-#define CONFIG_SYS_NAND_PAGE_4K
-
 /* Network */
 #define CONFIG_KSNET_NETCP_V1_5
 #define CONFIG_KSNET_CPSW_NUM_PORTS    5
index 233e7b4ee53e6c4762804fcc30e8245c6ae2ac6c..d9f70c75323f81345ea32b336b5c934a736e43bf 100644 (file)
  * Flash & Environment
  */
 #ifdef CONFIG_MTD_RAW_NAND
-#define        CONFIG_SYS_NAND_PAGE_2K
 #define CONFIG_SYS_NAND_CS             3
 #define CONFIG_SYS_NAND_BASE           DAVINCI_ASYNC_EMIF_DATA_CE3_BASE
 #define CONFIG_SYS_NAND_MASK_CLE       0x10