Convert CONFIG_EMIF4 et al to Kconfig
Subsystems (3)
PATCH 1/1 Convert CONFIG_EMIF4 et al to Kconfig
This converts the following to Kconfig:
CONFIG_EMIF4
CONFIG_SDRC
Signed-off-by Adam Ford <[email protected]>
--- arch/arm/mach-omap2/omap3/Kconfig | 15 +++++++++++++++ configs/am3517_crane_defconfig | 1 + configs/am3517_evm_defconfig | 1 + configs/cm_t3517_defconfig | 1 + configs/eco5pk_defconfig | 1 + configs/mcx_defconfig | 1 + configs/mt_ventoux_defconfig | 1 + configs/twister_defconfig | 1 + include/configs/am3517_crane.h | 1 - include/configs/am3517_evm.h | 2 -- include/configs/cm_t35.h | 2 -- include/configs/cm_t3517.h | 2 -- include/configs/mcx.h | 2 -- include/configs/nokia_rx51.h | 2 -- include/configs/sniper.h | 1 - include/configs/tam3517-common.h | 2 -- include/configs/tao3530.h | 2 -- include/configs/ti_omap3_common.h | 3 --- include/configs/tricorder.h | 2 -- scripts/config_whitelist.txt | 2 -- 20 files changed, 22 insertions(+), 23 deletions(-)
arch/arm/mach-omap2/omap3/Kconfig +15 -0
@@ -149,6 +149,21 @@ config TARGET_SNIPER endchoice +choice + prompt "Memory Controller" + default SDRC + +config SDRC + bool "SDRC controller" + help + The default memory controller on most OMAP3 boards is SDRC. + +config EMIF4 + bool "EMIF4 controller" + help + Enable this on boards like AM3517 which use EMIF4 controller +endchoice + config SPL_OMAP3_ID_NAND bool "Support OMAP3-specific ID and MFR function" help
configs/am3517_crane_defconfig +1 -0
@@ -4,6 +4,7 @@ CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80100000 # CONFIG_SPL_GPIO_SUPPORT is not set CONFIG_TARGET_AM3517_CRANE=y +CONFIG_EMIF4=y CONFIG_BOOTDELAY=10 CONFIG_SPL=y # CONFIG_SPL_EXT_SUPPORT is not set
configs/am3517_evm_defconfig +1 -0
@@ -4,6 +4,7 @@ CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80100000 # CONFIG_SPL_GPIO_SUPPORT is not set CONFIG_TARGET_AM3517_EVM=y +CONFIG_EMIF4=y CONFIG_BOOTDELAY=10 CONFIG_VERSION_VARIABLE=y CONFIG_SPL=y
configs/cm_t3517_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARM=y CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80008000 CONFIG_TARGET_CM_T3517=y +CONFIG_EMIF4=y CONFIG_BOOTDELAY=3 # CONFIG_CONSOLE_MUX is not set CONFIG_SYS_CONSOLE_IS_IN_ENV=y
configs/eco5pk_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARM=y CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80008000 CONFIG_TARGET_ECO5PK=y +CONFIG_EMIF4=y CONFIG_BOOTDELAY=10 CONFIG_SPL=y # CONFIG_SPL_EXT_SUPPORT is not set
configs/mcx_defconfig +1 -0
@@ -4,6 +4,7 @@ CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80008000 # CONFIG_SPL_GPIO_SUPPORT is not set CONFIG_TARGET_MCX=y +CONFIG_EMIF4=y CONFIG_VIDEO=y CONFIG_BOOTDELAY=3 # CONFIG_CONSOLE_MUX is not set
configs/mt_ventoux_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARM=y CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80008000 CONFIG_TARGET_MT_VENTOUX=y +CONFIG_EMIF4=y CONFIG_VIDEO=y CONFIG_BOOTDELAY=10 # CONFIG_CONSOLE_MUX is not set
configs/twister_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARM=y CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80008000 CONFIG_TARGET_TWISTER=y +CONFIG_EMIF4=y CONFIG_BOOTDELAY=10 CONFIG_SPL=y # CONFIG_SPL_EXT_SUPPORT is not set
include/configs/am3517_crane.h +0 -1
@@ -16,7 +16,6 @@/* * High Level Configuration Options */ -#define CONFIG_EMIF4 /* The chip has EMIF4 controller */ #include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h>
include/configs/am3517_evm.h +0 -2
@@ -15,8 +15,6 @@#define CONFIG_NR_DRAM_BANKS 2/* CS1 may or may not be populated */ -#define CONFIG_EMIF4 /* The chip has EMIF4 controller */ -/* * 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM * 64 bytes before this address should be set aside for u-boot.img's
include/configs/cm_t35.h +0 -2
@@ -24,8 +24,6 @@*/ #define CONFIG_CM_T3X /* working with CM-T35 and CM-T3730 */ -#define CONFIG_SDRC /* The chip has SDRC controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h>
include/configs/cm_t3517.h +0 -2
@@ -23,8 +23,6 @@* to be on the safe side once the default is changed. */ -#define CONFIG_EMIF4 /* The chip has EMIF4 controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h>
include/configs/mcx.h +0 -2
@@ -15,8 +15,6 @@#define CONFIG_MACH_TYPE MACH_TYPE_MCX -#define CONFIG_EMIF4 /* The chip has EMIF4 controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h>
include/configs/nokia_rx51.h +0 -2
@@ -33,8 +33,6 @@*/ #define CONFIG_SYS_TEXT_BASE 0x80008000 -#define CONFIG_SDRC /* The chip has SDRC controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h> #include <asm/arch/mem.h>
include/configs/sniper.h +0 -1
@@ -39,7 +39,6 @@* DRAM */ -#define CONFIG_SDRC #define CONFIG_NR_DRAM_BANKS 2#define PHYS_SDRAM_1 OMAP34XX_SDRC_CS0#define PHYS_SDRAM_2 OMAP34XX_SDRC_CS1
include/configs/tam3517-common.h +0 -2
@@ -16,8 +16,6 @@#define CONFIG_SYS_TEXT_BASE 0x80008000 -#define CONFIG_EMIF4 /* The chip has EMIF4 controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h>
include/configs/tao3530.h +0 -2
@@ -17,8 +17,6 @@* High Level Configuration Options */ -#define CONFIG_SDRC /* Has an SDRC controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h>
include/configs/ti_omap3_common.h +0 -3
@@ -21,9 +21,6 @@#include <asm/arch/cpu.h> #include <asm/arch/omap.h> -/* The chip has SDRC controller */ -#define CONFIG_SDRC -/* Clock Defines */ #define V_OSCK 26000000/* Clock output from T2 */ #define V_SCLK (V_OSCK >> 1)
include/configs/tricorder.h +0 -2
@@ -25,8 +25,6 @@*/ #define CONFIG_SYS_TEXT_BASE 0x80100000 -#define CONFIG_SDRC /* The chip has SDRC controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h>
scripts/config_whitelist.txt +0 -2
@@ -562,7 +562,6 @@ CONFIG_EHCI_MMIO_BIG_ENDIAN CONFIG_EHCI_MXS_PORT0 CONFIG_EHCI_MXS_PORT1 CONFIG_ELBC_NAND_SPL_STATIC_PGSIZE -CONFIG_EMIF4 CONFIG_EMMC_BOOT CONFIG_EMU CONFIG_ENABLE_36BIT_PHYS
@@ -1976,7 +1975,6 @@ CONFIG_SCSI_DEV_LIST CONFIG_SC_TIMER_CLK CONFIG_SDCARD CONFIG_SDRAM_OFFSET_FOR_RT -CONFIG_SDRC CONFIG_SD_BOOT_QSPI CONFIG_SECBOOT CONFIG_SECURE_BL1_ONLY
Signature · 1 line
2.7.4
PATCH 1/1 Convert CONFIG_EMIF4 et al to Kconfig
Quoted 19 lines · Adam Ford
This converts the following to
Kconfig:
CONFIG_EMIF4
CONFIG_SDRCSigned-off-by Adam Ford <[email protected]>--- arch/arm/mach-omap2/omap3/Kconfig | 15 +++++++++++++++ configs/am3517_crane_defconfig | 1 + configs/am3517_evm_defconfig | 1 + configs/cm_t3517_defconfig | 1 + configs/eco5pk_defconfig | 1 + configs/mcx_defconfig | 1 + configs/mt_ventoux_defconfig | 1 + configs/twister_defconfig | 1 + include/configs/am3517_crane.h | 1 - include/configs/am3517_evm.h | 2 -- include/configs/cm_t35.h | 2 -- include/configs/cm_t3517.h | 2 -- include/configs/mcx.h | 2 --
Quoted 9 lines
include/configs/nokia_rx51.h | 2 -- include/configs/sniper.h | 1 - include/configs/tam3517-common.h | 2 -- include/configs/tao3530.h | 2 -- include/configs/ti_omap3_common.h | 3 --- include/configs/tricorder.h | 2 -- scripts/config_whitelist.txt | 2 -- 20 files changed, 22 insertions(+), 23 deletions(-)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/1 Convert CONFIG_EMIF4 et al to Kconfig
In reply to Adam FordQuoted 294 lines · Adam Ford
This converts the following to
Kconfig:
CONFIG_EMIF4
CONFIG_SDRCSigned-off-by Adam Ford <[email protected]>--- arch/arm/mach-omap2/omap3/Kconfig | 15 +++++++++++++++ configs/am3517_crane_defconfig | 1 + configs/am3517_evm_defconfig | 1 + configs/cm_t3517_defconfig | 1 + configs/eco5pk_defconfig | 1 + configs/mcx_defconfig | 1 + configs/mt_ventoux_defconfig | 1 + configs/twister_defconfig | 1 + include/configs/am3517_crane.h | 1 - include/configs/am3517_evm.h | 2 -- include/configs/cm_t35.h | 2 -- include/configs/cm_t3517.h | 2 -- include/configs/mcx.h | 2 -- include/configs/nokia_rx51.h | 2 -- include/configs/sniper.h | 1 - include/configs/tam3517-common.h | 2 -- include/configs/tao3530.h | 2 -- include/configs/ti_omap3_common.h | 3 --- include/configs/tricorder.h | 2 -- scripts/config_whitelist.txt | 2 -- 20 files changed, 22 insertions(+), 23 deletions(-)arch/arm/mach-omap2/omap3/Kconfig +15
-0@@ -149,6 +149,21 @@ config TARGET_SNIPER endchoice +choice + prompt "Memory Controller" + default SDRC + +config SDRC + bool "SDRC controller" + help + The default memory controller on most OMAP3 boards is SDRC. + +config EMIF4 + bool "EMIF4 controller" + help + Enable this on boards like AM3517 which use EMIF4 controller +endchoice + config SPL_OMAP3_ID_NAND bool "Support OMAP3-specific ID and MFR function" helpconfigs/am3517_crane_defconfig +1
-0@@ -4,6 +4,7 @@ CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80100000 # CONFIG_SPL_GPIO_SUPPORT is not set CONFIG_TARGET_AM3517_CRANE=y +CONFIG_EMIF4=y CONFIG_BOOTDELAY=10 CONFIG_SPL=y # CONFIG_SPL_EXT_SUPPORT is not setconfigs/am3517_evm_defconfig +1
-0@@ -4,6 +4,7 @@ CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80100000 # CONFIG_SPL_GPIO_SUPPORT is not set CONFIG_TARGET_AM3517_EVM=y +CONFIG_EMIF4=y CONFIG_BOOTDELAY=10 CONFIG_VERSION_VARIABLE=y CONFIG_SPL=yconfigs/cm_t3517_defconfig +1
-0@@ -3,6 +3,7 @@ CONFIG_ARM=y CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80008000 CONFIG_TARGET_CM_T3517=y +CONFIG_EMIF4=y CONFIG_BOOTDELAY=3 # CONFIG_CONSOLE_MUX is not set CONFIG_SYS_CONSOLE_IS_IN_ENV=yconfigs/eco5pk_defconfig +1
-0@@ -3,6 +3,7 @@ CONFIG_ARM=y CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80008000 CONFIG_TARGET_ECO5PK=y +CONFIG_EMIF4=y CONFIG_BOOTDELAY=10 CONFIG_SPL=y # CONFIG_SPL_EXT_SUPPORT is not setconfigs/mcx_defconfig +1
-0@@ -4,6 +4,7 @@ CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80008000 # CONFIG_SPL_GPIO_SUPPORT is not set CONFIG_TARGET_MCX=y +CONFIG_EMIF4=y CONFIG_VIDEO=y CONFIG_BOOTDELAY=3 # CONFIG_CONSOLE_MUX is not setconfigs/mt_ventoux_defconfig +1
-0@@ -3,6 +3,7 @@ CONFIG_ARM=y CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80008000 CONFIG_TARGET_MT_VENTOUX=y +CONFIG_EMIF4=y CONFIG_VIDEO=y CONFIG_BOOTDELAY=10 # CONFIG_CONSOLE_MUX is not setconfigs/twister_defconfig +1
-0@@ -3,6 +3,7 @@ CONFIG_ARM=y CONFIG_ARCH_OMAP2PLUS=y CONFIG_SYS_TEXT_BASE=0x80008000 CONFIG_TARGET_TWISTER=y +CONFIG_EMIF4=y CONFIG_BOOTDELAY=10 CONFIG_SPL=y # CONFIG_SPL_EXT_SUPPORT is not setinclude/configs/am3517_crane.h +0
-1@@ -16,7 +16,6 @@/* * High Level Configuration Options */ -#define CONFIG_EMIF4 /* The chip has EMIF4 controller */ #include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h> include/configs/am3517_evm.h +0
-2@@ -15,8 +15,6 @@#define CONFIG_NR_DRAM_BANKS 2/* CS1 may or may not be populated */ -#define CONFIG_EMIF4 /* The chip has EMIF4 controller */ -/* * 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM * 64 bytes before this address should be set aside for u-boot.img's include/configs/cm_t35.h +0
-2@@ -24,8 +24,6 @@*/ #define CONFIG_CM_T3X /* working with CM-T35 and CM-T3730 */ -#define CONFIG_SDRC /* The chip has SDRC controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h> include/configs/cm_t3517.h +0
-2@@ -23,8 +23,6 @@* to be on the safe side once the default is changed. */ -#define CONFIG_EMIF4 /* The chip has EMIF4 controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h> include/configs/mcx.h +0
-2@@ -15,8 +15,6 @@#define CONFIG_MACH_TYPE MACH_TYPE_MCX -#define CONFIG_EMIF4 /* The chip has EMIF4 controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h> include/configs/nokia_rx51.h +0
-2@@ -33,8 +33,6 @@*/ #define CONFIG_SYS_TEXT_BASE 0x80008000 -#define CONFIG_SDRC /* The chip has SDRC controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h> #include <asm/arch/mem.h> include/configs/sniper.h +0
-1@@ -39,7 +39,6 @@* DRAM */ -#define CONFIG_SDRC #define CONFIG_NR_DRAM_BANKS 2#define PHYS_SDRAM_1 OMAP34XX_SDRC_CS0#define PHYS_SDRAM_2 OMAP34XX_SDRC_CS1include/configs/tam3517-common.h +0
-2@@ -16,8 +16,6 @@#define CONFIG_SYS_TEXT_BASE 0x80008000 -#define CONFIG_EMIF4 /* The chip has EMIF4 controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h> include/configs/tao3530.h +0
-2@@ -17,8 +17,6 @@* High Level Configuration Options */ -#define CONFIG_SDRC /* Has an SDRC controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h> include/configs/ti_omap3_common.h +0
-3@@ -21,9 +21,6 @@#include <asm/arch/cpu.h> #include <asm/arch/omap.h> -/* The chip has SDRC controller */ -#define CONFIG_SDRC -/* Clock Defines */ #define V_OSCK 26000000/* Clock output from T2 */ #define V_SCLK (V_OSCK >> 1)include/configs/tricorder.h +0
-2@@ -25,8 +25,6 @@*/ #define CONFIG_SYS_TEXT_BASE 0x80100000 -#define CONFIG_SDRC /* The chip has SDRC controller */ -#include <asm/arch/cpu.h> /* get chip and board defs */ #include <asm/arch/omap.h> scripts/config_whitelist.txt +0
-1@@ -562,7 +562,6 @@ CONFIG_EHCI_MMIO_BIG_ENDIAN CONFIG_EHCI_MXS_PORT0 CONFIG_EHCI_MXS_PORT1 CONFIG_ELBC_NAND_SPL_STATIC_PGSIZE -CONFIG_EMIF4 CONFIG_EMMC_BOOT CONFIG_EMU CONFIG_ENABLE_36BIT_PHYS
scripts/config_whitelist.txt CONFIG_SCSI_DEV_LIST · line 1980
Quoted 7 lines
scripts/config_whitelist.txt +0
-1@@ -1976,7 +1975,6 @@ CONFIG_SCSI_DEV_LIST CONFIG_SC_TIMER_CLK CONFIG_SDCARD CONFIG_SDRAM_OFFSET_FOR_RT -CONFIG_SDRC CONFIG_SD_BOOT_QSPI CONFIG_SECBOOT CONFIG_SECURE_BL1_ONLY
Reviewed-by Stefano Babic <[email protected]>
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
Quoted 7 lines · Adam Ford
This converts the following to
Kconfig:
CONFIG_EMIF4
CONFIG_SDRCSigned-off-by Adam Ford <[email protected]>Reviewed-by Simon Glass <[email protected]>Reviewed-by Stefano Babic <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170913/1ce95991/attachment.sig>