]> git.sur5r.net Git - u-boot/commitdiff
Convert CONFIG_ENV_IS_IN_ONENAND to Kconfig
authorSimon Glass <sjg@chromium.org>
Mon, 24 Jul 2017 03:19:48 +0000 (21:19 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 26 Jul 2017 01:34:39 +0000 (21:34 -0400)
This converts the following to Kconfig:
   CONFIG_ENV_IS_IN_ONENAND

Signed-off-by: Simon Glass <sjg@chromium.org>
12 files changed:
common/Kconfig
configs/smdkc100_defconfig
configs/vct_platinum_onenand_defconfig
configs/vct_platinum_onenand_small_defconfig
configs/vct_platinumavc_onenand_defconfig
configs/vct_platinumavc_onenand_small_defconfig
configs/vct_premium_onenand_defconfig
configs/vct_premium_onenand_small_defconfig
include/configs/omap3_evm.h
include/configs/smdkc100.h
include/configs/vct.h
scripts/config_whitelist.txt

index abf55e51561e79a573c57b0af98106ca8b196e0e..8c8d2e4832424d956ab596032a4cd9195519be3e 100644 (file)
@@ -466,6 +466,21 @@ config ENV_IS_IN_NVRAM
          can just be read and written to, without any special
          provision.
 
+config ENV_IS_IN_ONENAND
+       bool "Environment is in OneNAND"
+       depends on !CHAIN_OF_TRUST
+       help
+         Define this if you want to put your local device's environment in
+         OneNAND.
+
+         - CONFIG_ENV_ADDR:
+         - CONFIG_ENV_SIZE:
+
+         These two #defines are used to determine the device range you
+         want to use for environment. It is assumed that this memory
+         can just be read and written to, without any special
+         provision.
+
 config ENV_IS_IN_REMOTE
        bool "Environment is in remove memory space"
        depends on !CHAIN_OF_TRUST
index a1eca8694de5c92a33a5920929ac56309643dfa7..ef8510d47d73eadcbf4ea993485fdd5e130a5ffb 100644 (file)
@@ -3,6 +3,7 @@ CONFIG_ARCH_S5PC1XX=y
 CONFIG_TARGET_SMDKC100=y
 CONFIG_IDENT_STRING=" for SMDKC100"
 CONFIG_DEFAULT_DEVICE_TREE="s5pc1xx-smdkc100"
+CONFIG_ENV_IS_IN_ONENAND=y
 CONFIG_BOOTDELAY=3
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="SMDKC100 # "
index 9f2d78f62167bc4a788e92411101c11ec904eaa7..4c1615c537d17f6b9381ddf1182026b9b7ff04c9 100644 (file)
@@ -2,6 +2,7 @@ CONFIG_MIPS=y
 CONFIG_TARGET_VCT=y
 CONFIG_VCT_PLATINUM=y
 CONFIG_VCT_ONENAND=y
+CONFIG_ENV_IS_IN_ONENAND=y
 CONFIG_BOOTDELAY=5
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_SYS_PROMPT="$ "
index 93e5b55b1f188fb1bc6101dbdbc67a78dbc3cf1c..20c0863b7b51fd9ac86984b4f69fa7e293c70870 100644 (file)
@@ -3,6 +3,7 @@ CONFIG_TARGET_VCT=y
 CONFIG_VCT_PLATINUM=y
 CONFIG_VCT_ONENAND=y
 CONFIG_VCT_SMALL_IMAGE=y
+CONFIG_ENV_IS_IN_ONENAND=y
 CONFIG_BOOTDELAY=5
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_SYS_PROMPT="$ "
index c3abc5eae40cb1c8ad7cd9ecc0b5d975553c4e15..dfb8f04ce786b9a5416f4c99eb94984dd1cdd3c5 100644 (file)
@@ -2,6 +2,7 @@ CONFIG_MIPS=y
 CONFIG_TARGET_VCT=y
 CONFIG_VCT_PLATINUMAVC=y
 CONFIG_VCT_ONENAND=y
+CONFIG_ENV_IS_IN_ONENAND=y
 CONFIG_BOOTDELAY=5
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_SYS_PROMPT="$ "
index d3351e8abdcb5d4605d4792a80c73a60f37c3937..de7b500f806097017660255d7218a82aa78a554e 100644 (file)
@@ -3,6 +3,7 @@ CONFIG_TARGET_VCT=y
 CONFIG_VCT_PLATINUMAVC=y
 CONFIG_VCT_ONENAND=y
 CONFIG_VCT_SMALL_IMAGE=y
+CONFIG_ENV_IS_IN_ONENAND=y
 CONFIG_BOOTDELAY=5
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_SYS_PROMPT="$ "
index a944c82cebe18839fe57eddd7d8deb75156ea29f..ba43e0e00a2c62083aee265fcea1b1461363e617 100644 (file)
@@ -2,6 +2,7 @@ CONFIG_MIPS=y
 CONFIG_TARGET_VCT=y
 CONFIG_VCT_PREMIUM=y
 CONFIG_VCT_ONENAND=y
+CONFIG_ENV_IS_IN_ONENAND=y
 CONFIG_BOOTDELAY=5
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_SYS_PROMPT="$ "
index 77e408b41d23f3f47b5059562fa780a8c3cfca6c..cc9998f391a6e7b9e0550ad99b8dc81355058aad 100644 (file)
@@ -3,6 +3,7 @@ CONFIG_TARGET_VCT=y
 CONFIG_VCT_PREMIUM=y
 CONFIG_VCT_ONENAND=y
 CONFIG_VCT_SMALL_IMAGE=y
+CONFIG_ENV_IS_IN_ONENAND=y
 CONFIG_BOOTDELAY=5
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_SYS_PROMPT="$ "
index 76c00d4efa6c051cd361cda9690660ad8e3cc8cf..15eb08bba8e431b88aba20484927129777ad2798 100644 (file)
 #if !defined(CONFIG_ENV_IS_NOWHERE)
 #if defined(CONFIG_CMD_NAND)
 #elif defined(CONFIG_CMD_ONENAND)
-#define CONFIG_ENV_IS_IN_ONENAND
 #define CONFIG_ENV_OFFSET              ONENAND_ENV_OFFSET
 #endif
 #endif /* CONFIG_ENV_IS_NOWHERE */
index dded4d4bf9098cc6c57eb477a2b0d05912103bbb..14b49c4fafc902edd48f75202d5c1f7fbaa1b5d4 100644 (file)
 /*-----------------------------------------------------------------------
  * Boot configuration
  */
-#define CONFIG_ENV_IS_IN_ONENAND       1
 #define CONFIG_ENV_SIZE                        (128 << 10)     /* 128KiB, 0x20000 */
 #define CONFIG_ENV_ADDR                        (256 << 10)     /* 256KiB, 0x40000 */
 #define CONFIG_ENV_OFFSET              (256 << 10)     /* 256KiB, 0x40000 */
index 5a62e3fb8253a4132771079da1ed6347dda370af..f3c6c27696bf494e8ae21a1d250877ed955fe90d 100644 (file)
 
 #if defined(CONFIG_VCT_ONENAND)
 #define CONFIG_USE_ONENAND_BOARD_INIT
-#define        CONFIG_ENV_IS_IN_ONENAND
 #define        CONFIG_SYS_ONENAND_BASE         0x00000000      /* this is not real address */
 #define CONFIG_SYS_FLASH_BASE          0x00000000
 #define CONFIG_ENV_ADDR                        (128 << 10)     /* after compr. U-Boot image */
index 721a638d53bdba7626f0dad580ca294bed2ceb5b..93f0bf47c674012a458f87e0f92009098d900676 100644 (file)
@@ -633,7 +633,6 @@ CONFIG_ENV_FLAGS_LIST_STATIC
 CONFIG_ENV_FLASHBOOT
 CONFIG_ENV_IS_EMBEDDED
 CONFIG_ENV_IS_IN_
-CONFIG_ENV_IS_IN_ONENAND
 CONFIG_ENV_MAX_ENTRIES
 CONFIG_ENV_MIN_ENTRIES
 CONFIG_ENV_OFFSET_OOB