dm: use "select DM"
Subsystems (11)
cover dm: use "select DM"
01/12 fixes SOCFPGA boards. (Because of a wrong dependency, SOCFPGA boards cannot enable CONFIG_DM_SPI_FLASH.
The other patches move CONFIG options from defcofig to Kconfig and use "select".
02 thru 12 do not change the output binaries at all. I compared MD5SUM of all the boards and confirmed this.
Masahiro Yamada (12):
dm: spi_flash: fix wrong dependency
dm: select CONFIG_DM* options
ARM: UniPhier: use "select" instead of default value in defconfig
ARM: zynq: use "select" instead of default value in defconfig
ARM: rmobile: use "select" instead of default value in defconfig
ARM: snapper9260: use "select" instead of default value in defconfig
ARM: mx6: use "select" instead of default value in defconfig
ARM: socfpga: use "select" instead of default value in defconfig
ARM: bav335x: use "select" instead of default value in defconfig
ARM: stv0991: use "select" instead of default value in defconfig
ARM: cm_fx6: use "select" instead of default value in defconfig
powerpc: ids8313: use "select" instead of default value in defconfig
arch/Kconfig | 9 +++++ arch/arm/Kconfig | 58 ++++++++++++++++++++++++++++++++ arch/arm/cpu/armv7/exynos/Kconfig | 15 --------- arch/arm/cpu/armv7/omap3/Kconfig | 27 ++++++++++----- arch/arm/cpu/armv7/rmobile/Kconfig | 12 +++++++ arch/arm/mach-at91/Kconfig | 3 ++ arch/arm/mach-bcm283x/Kconfig | 9 ----- arch/arm/mach-tegra/Kconfig | 18 ---------- arch/powerpc/cpu/mpc83xx/Kconfig | 1 + arch/powerpc/cpu/ppc4xx/Kconfig | 2 ++ arch/sandbox/Kconfig | 18 ---------- arch/x86/Kconfig | 9 ----- board/amcc/canyonlands/Kconfig | 6 ---- board/compulab/cm_t335/Kconfig | 9 ----- board/gumstix/pepper/Kconfig | 9 ----- board/isee/igep0033/Kconfig | 9 ----- board/phytec/pcm051/Kconfig | 9 ----- board/samsung/goni/Kconfig | 9 ----- board/samsung/smdkc100/Kconfig | 9 ----- board/silica/pengwyn/Kconfig | 9 ----- board/ti/am335x/Kconfig | 9 ----- configs/alt_defconfig | 2 -- configs/am335x_boneblack_vboot_defconfig | 1 - configs/am3517_crane_defconfig | 3 -- configs/am3517_evm_defconfig | 3 -- configs/birdland_bav335a_defconfig | 3 -- configs/birdland_bav335b_defconfig | 3 -- configs/cm_fx6_defconfig | 3 -- configs/cm_t3517_defconfig | 3 -- configs/cm_t35_defconfig | 3 -- configs/devkit8000_defconfig | 3 -- configs/dig297_defconfig | 3 -- configs/eco5pk_defconfig | 3 -- configs/gose_defconfig | 2 -- configs/ids8313_defconfig | 1 - configs/koelsch_defconfig | 2 -- configs/lager_defconfig | 2 -- configs/mcx_defconfig | 3 -- configs/mt_ventoux_defconfig | 3 -- configs/mx6dlsabreauto_defconfig | 2 -- configs/mx6dlsabresd_defconfig | 2 -- configs/mx6qsabreauto_defconfig | 2 -- configs/mx6qsabresd_defconfig | 2 -- configs/mx6sabresd_spl_defconfig | 2 -- configs/mx6sxsabresd_defconfig | 2 -- configs/mx6sxsabresd_spl_defconfig | 2 -- configs/nokia_rx51_defconfig | 3 -- configs/omap3_beagle_defconfig | 3 -- configs/omap3_evm_defconfig | 3 -- configs/omap3_evm_quick_mmc_defconfig | 3 -- configs/omap3_evm_quick_nand_defconfig | 3 -- configs/omap3_ha_defconfig | 3 -- configs/omap3_logic_defconfig | 3 -- configs/omap3_mvblx_defconfig | 3 -- configs/omap3_pandora_defconfig | 3 -- configs/omap3_sdp3430_defconfig | 3 -- configs/ph1_ld4_defconfig | 3 -- configs/ph1_pro4_defconfig | 3 -- configs/ph1_sld8_defconfig | 3 -- configs/porter_defconfig | 2 -- configs/sandbox_defconfig | 1 - configs/silk_defconfig | 2 -- configs/snapper9260_defconfig | 3 -- configs/snapper9g20_defconfig | 3 -- configs/socfpga_arria5_defconfig | 3 -- configs/socfpga_cyclone5_defconfig | 3 -- configs/socfpga_socrates_defconfig | 3 -- configs/stv0991_defconfig | 2 -- configs/tao3530_defconfig | 3 -- configs/tricorder_defconfig | 3 -- configs/tricorder_flash_defconfig | 3 -- configs/twister_defconfig | 3 -- configs/zynq_microzed_defconfig | 1 - configs/zynq_zc70x_defconfig | 1 - configs/zynq_zc770_xm010_defconfig | 1 - configs/zynq_zc770_xm012_defconfig | 1 - configs/zynq_zc770_xm013_defconfig | 1 - configs/zynq_zed_defconfig | 1 - configs/zynq_zybo_defconfig | 1 - drivers/mtd/spi/Kconfig | 2 +- 80 files changed, 104 insertions(+), 297 deletions(-)
Signature · 1 line
1.9.1
PATCH 1/12 dm: spi_flash: fix wrong dependency
CONFIG_SPI does not exist in Kconfig in the first place, so the dependency "depends on DM && SPI" is never met, i.e., DM_SPI_FLASH can never be enabled (unless you ignore the dependency in an illegal way. See below.)
Actually, some defconfigs such as socfpga_*_defconfig define CONFIG_DM_SPI_FLASH=y, but it never appears in the .config file because of this wrong dependency.
On the other hand, all the Tegra boards enable DM_SPI_FLASH because
config DM_SPI_FLASH
default y
silently ignores the dependency.
Unfortunately, this style of CONFIG definition is abused everywhere in U-Boot, so we easily miss such a wrong dependency.
---
drivers/mtd/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/spi/Kconfig +1 -1
@@ -1,6 +1,6 @@ config DM_SPI_FLASH bool "Enable Driver Model for SPI flash" - depends on DM && SPI + depends on DM && DM_SPI help Enable driver model for SPI flash. This SPI flash interface (spi_flash_probe(), spi_flash_write(), etc.) is then
Signature · 1 line
1.9.1
PATCH 1/12 dm: spi_flash: fix wrong dependency
Quoted 37 lines · Masahiro Yamada
CONFIG_SPIdoes not exist inKconfigin the first place, so the dependency "depends on DM && SPI" is never met, i.e.,DM_SPI_FLASHcan never be enabled (unless you ignore the dependency in an illegal way. See below.)Actually, some defconfigs such as socfpga_*_defconfig define
CONFIG_DM_SPI_FLASH=y, but it never appears in the .config file because of this wrong dependency.On the other hand, all the Tegra boards enable
DM_SPI_FLASHbecauseconfig
DM_SPI_FLASH
default ysilently ignores the dependency.
Unfortunately, this style of CONFIG definition is abused everywhere in U-Boot, so we easily miss such a wrong dependency.Signed-off-by Masahiro Yamada <[email protected]>---
drivers/mtd/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mtd/spi/Kconfig +1
-2@@ -1,6 +1,6 @@ config DM_SPI_FLASH bool "Enable Driver Model for SPI flash" - depends on DM && SPI + depends on DM && DM_SPI help Enable driver model for SPI flash. This SPI flash interface (spi_flash_probe(), spi_flash_write(), etc.) is then --
Quoted 2 lines
1.9.1
PATCH 1/12 dm: spi_flash: fix wrong dependency
Quoted 36 lines · Simon Glass
Quoted 33 lines · Masahiro Yamada
CONFIG_SPIdoes not exist inKconfigin the first place, so the dependency "depends on DM && SPI" is never met, i.e.,DM_SPI_FLASHcan never be enabled (unless you ignore the dependency in an illegal way. See below.)Actually, some defconfigs such as socfpga_*_defconfig define
CONFIG_DM_SPI_FLASH=y, but it never appears in the .config file because of this wrong dependency.On the other hand, all the Tegra boards enable
DM_SPI_FLASHbecauseconfig
DM_SPI_FLASH
default ysilently ignores the dependency.
Unfortunately, this style of CONFIG definition is abused everywhere in U-Boot, so we easily miss such a wrong dependency.Signed-off-by Masahiro Yamada <[email protected]>---
drivers/mtd/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mtd/spi/Kconfig +1
-1@@ -1,6 +1,6 @@ config DM_SPI_FLASH bool "Enable Driver Model for SPI flash" - depends on DM && SPI + depends on DM && DM_SPI
Quoted 8 lines
Quoted 6 lines
drivers/mtd/spi/Kconfig +0
-1help Enable driver model for SPI flash. This SPI flash interface (spi_flash_probe(), spi_flash_write(), etc.) is then --1.9.1
Acked-by Simon Glass <[email protected]>
Applied to u-boot-dm/next, thanks!
PATCH 1/12 dm: spi_flash: fix wrong dependency
Hi Tom,
Quoted 46 lines · Simon Glass
Quoted 36 lines · Simon Glass
Quoted 33 lines · Masahiro Yamada
CONFIG_SPIdoes not exist inKconfigin the first place, so the dependency "depends on DM && SPI" is never met, i.e.,DM_SPI_FLASHcan never be enabled (unless you ignore the dependency in an illegal way. See below.)Actually, some defconfigs such as socfpga_*_defconfig define
CONFIG_DM_SPI_FLASH=y, but it never appears in the .config file because of this wrong dependency.On the other hand, all the Tegra boards enable
DM_SPI_FLASHbecauseconfig
DM_SPI_FLASH
default ysilently ignores the dependency.
Unfortunately, this style of CONFIG definition is abused everywhere in U-Boot, so we easily miss such a wrong dependency.Signed-off-by Masahiro Yamada <[email protected]>---
drivers/mtd/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mtd/spi/Kconfig +1
-1@@ -1,6 +1,6 @@ config DM_SPI_FLASH bool "Enable Driver Model for SPI flash" - depends on DM && SPI + depends on DM && DM_SPIQuoted 8 lines
Quoted 6 lines
drivers/mtd/spi/Kconfig +0
-1help Enable driver model for SPI flash. This SPI flash interface (spi_flash_probe(), spi_flash_write(), etc.) is then --1.9.1
Acked-by Simon Glass <[email protected]>
Quoted 1 line
Applied to u-boot-dm/next, thanks!
Do you plan to release a v2015.04.1 stable release at some time? Then please add this patch to this version. As it fixes SPI NOR flash on SoCFPGA.
Thanks,
Stefan
PATCH 1/12 dm: spi_flash: fix wrong dependency
Quoted 55 lines · Stefan Roese
Hi Tom,
Quoted 52 lines · Simon Glass
Quoted 50 lines · Simon Glass
On 30 March 2015 at 21:47, Masahiro Yamada
Quoted 38 lines · <[email protected]> wrote:
CONFIG_SPIdoes not exist inKconfigin the first place, so the dependency "depends on DM && SPI" is never met, i.e.,DM_SPI_FLASHcan never be enabled (unless you ignore the dependency in an illegal way. See below.)Actually, some defconfigs such as socfpga_*_defconfig define
CONFIG_DM_SPI_FLASH=y, but it never appears in the .config file because of this wrong dependency.On the other hand, all the Tegra boards enable
DM_SPI_FLASHbecauseconfig
DM_SPI_FLASHdefault y
silently ignores the dependency.
Unfortunately, this style of CONFIG definition is abused everywhere in U-Boot, so we easily miss such a wrong dependency.Signed-off-by Masahiro Yamada <[email protected]>---
drivers/mtd/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mtd/spi/Kconfig +1
-1@@ -1,6 +1,6 @@ config DM_SPI_FLASH bool "Enable Driver Model for SPI flash" - depends on DM && SPI + depends on DM && DM_SPIQuoted 7 lines
help
Enable driver model for SPI flash. This SPI flash interface (
spi_flash_probe(),spi_flash_write(), etc.) is then--
1.9.1Acked-by Simon Glass <[email protected]>
Quoted 5 lines
Quoted 1 line
Applied to u-boot-dm/next, thanks!
Do you plan to release a v2015.04.1 stable release at some time? Then please add this patch to this version. As it fixes SPI NOR flash on SoCFPGA.
Maybe we should consider u-boot-stable ...
Best regards,
Marek Vasut
PATCH 1/12 dm: spi_flash: fix wrong dependency
Hi,
Quoted 56 lines · Marek Vasut
Quoted 55 lines · Stefan Roese
Hi Tom,
Quoted 52 lines · Simon Glass
Quoted 50 lines · Simon Glass
On 30 March 2015 at 21:47, Masahiro Yamada
Quoted 38 lines · <[email protected]> wrote:
CONFIG_SPIdoes not exist inKconfigin the first place, so the dependency "depends on DM && SPI" is never met, i.e.,DM_SPI_FLASHcan never be enabled (unless you ignore the dependency in an illegal way. See below.)Actually, some defconfigs such as socfpga_*_defconfig define
CONFIG_DM_SPI_FLASH=y, but it never appears in the .config file because of this wrong dependency.On the other hand, all the Tegra boards enable
DM_SPI_FLASHbecauseconfig
DM_SPI_FLASHdefault y
silently ignores the dependency.
Unfortunately, this style of CONFIG definition is abused everywhere in U-Boot, so we easily miss such a wrong dependency.Signed-off-by Masahiro Yamada <[email protected]>---
drivers/mtd/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mtd/spi/Kconfig +1
-1@@ -1,6 +1,6 @@ config DM_SPI_FLASH bool "Enable Driver Model for SPI flash" - depends on DM && SPI + depends on DM && DM_SPIQuoted 7 lines
help
Enable driver model for SPI flash. This SPI flash interface (
spi_flash_probe(),spi_flash_write(), etc.) is then--
1.9.1Acked-by Simon Glass <[email protected]>
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Applied to u-boot-dm/next, thanks!
Do you plan to release a v2015.04.1 stable release at some time? Then please add this patch to this version. As it fixes SPI NOR flash on SoCFPGA.
Maybe we should consider u-boot-stable ...
In this case, just mentioning that it was needed for the release would have helped. It's not always obvious whether patches are important fixes, particularly if they depend on other things.
Regards,
Simon
PATCH 1/12 dm: spi_flash: fix wrong dependency
Hi Simon,
Quoted 11 lines · Simon Glass
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Applied to u-boot-dm/next, thanks!
Do you plan to release a v2015.04.1 stable release at some time? Then please add this patch to this version. As it fixes SPI NOR flash on SoCFPGA.
Maybe we should consider u-boot-stable ...
In this case, just mentioning that it was needed for the release would have helped. It's not always obvious whether patches are important fixes, particularly if they depend on other things.
I really noticed it just now. Sorry for not testing earlier.
Thanks,
Stefan
PATCH 1/12 dm: spi_flash: fix wrong dependency
Hi Stefan,
Quoted 15 lines · Stefan Roese
Hi Simon,
Quoted 11 lines · Simon Glass
Quoted 9 lines
Quoted 6 lines
Quoted 1 line
Applied to u-boot-dm/next, thanks!
Do you plan to release a v2015.04.1 stable release at some time? Then please add this patch to this version. As it fixes SPI NOR flash on SoCFPGA.
Maybe we should consider u-boot-stable ...
Quoted 6 lines
Quoted 3 lines
In this case, just mentioning that it was needed for the release would have helped. It's not always obvious whether patches are important fixes, particularly if they depend on other things.
I really noticed it just now. Sorry for not testing earlier.
Sorry, that's wasn't a complaint, just some sort of explanation :-)
Regards,
Simon
PATCH 2/12 dm: select CONFIG_DM* options
In reply to Masahiro YamadaAs mentioned in the previous commit, adding default values in each Kconfig causes problems because it does not co-exist with the "depends on" syntax. (Please note this is not a bug of Kconfig.) We should not do so unless we have a special reason. Actually, for CONFIG_DM*, we have no good reason to do so.
Generally, CONFIG_DM is not a user-configurable option. Once we convert a driver into Driver Model, the board only works with Driver Model, i.e. CONFIG_DM must be always enabled for that board. So, using "select DM" is more suitable rather than allowing users to modify it. Another good thing is, Kconfig warns unmet dependencies for "select" syntax, so we easily notice bugs.
Actually, CONFIG_DM and other related options have been added without consistency: some into arch/*/Kconfig, some into board/*/Kconfig, and some into configs/*_defconfig.
This commit prefers "select" and cleans up the following issues.
[1] Never use "CONFIG_DM=n" in defconfig files
It is really rare to add "CONFIG_FOO=n" to disable CONFIG options. It is more common to use "# CONFIG_FOO is not set". But here, we do not even have to do it.
Less than half of OMAP3 boards have been converted to Driver Model. Adding the default values to arch/arm/cpu/armv7/omap3/Kconfig is weird. Instead, add "select DM" only to appropriate boards, which eventually eliminates "CONFIG_DM=n", etc.
[2] Delete redundant CONFIGs
Sandbox sets CONFIG_DM in arch/sandbox/Kconfig and defines it again in configs/sandbox_defconfig.
Likewise, OMAP3 sets CONFIG_DM arch/arm/cpu/armv7/omap3/Kconfig and defines it also in omap3_beagle_defconfig and devkit8000_defconfig.
---
arch/Kconfig | 9 ++++++++ arch/arm/Kconfig | 35 ++++++++++++++++++++++++++++++++ arch/arm/cpu/armv7/exynos/Kconfig | 15 -------------- arch/arm/cpu/armv7/omap3/Kconfig | 27 ++++++++++++++++-------- arch/arm/mach-bcm283x/Kconfig | 9 -------- arch/arm/mach-tegra/Kconfig | 18 ---------------- arch/powerpc/cpu/ppc4xx/Kconfig | 2 ++ arch/sandbox/Kconfig | 18 ---------------- arch/x86/Kconfig | 9 -------- board/amcc/canyonlands/Kconfig | 6 ------ board/compulab/cm_t335/Kconfig | 9 -------- board/gumstix/pepper/Kconfig | 9 -------- board/isee/igep0033/Kconfig | 9 -------- board/phytec/pcm051/Kconfig | 9 -------- board/samsung/goni/Kconfig | 9 -------- board/samsung/smdkc100/Kconfig | 9 -------- board/silica/pengwyn/Kconfig | 9 -------- board/ti/am335x/Kconfig | 9 -------- configs/am335x_boneblack_vboot_defconfig | 1 - configs/am3517_crane_defconfig | 3 --- configs/am3517_evm_defconfig | 3 --- configs/cm_t3517_defconfig | 3 --- configs/cm_t35_defconfig | 3 --- configs/devkit8000_defconfig | 3 --- configs/dig297_defconfig | 3 --- configs/eco5pk_defconfig | 3 --- configs/mcx_defconfig | 3 --- configs/mt_ventoux_defconfig | 3 --- configs/nokia_rx51_defconfig | 3 --- configs/omap3_beagle_defconfig | 3 --- configs/omap3_evm_defconfig | 3 --- configs/omap3_evm_quick_mmc_defconfig | 3 --- configs/omap3_evm_quick_nand_defconfig | 3 --- configs/omap3_ha_defconfig | 3 --- configs/omap3_logic_defconfig | 3 --- configs/omap3_mvblx_defconfig | 3 --- configs/omap3_pandora_defconfig | 3 --- configs/omap3_sdp3430_defconfig | 3 --- configs/sandbox_defconfig | 1 - configs/tao3530_defconfig | 3 --- configs/tricorder_defconfig | 3 --- configs/tricorder_flash_defconfig | 3 --- configs/twister_defconfig | 3 --- 43 files changed, 64 insertions(+), 227 deletions(-)
arch/Kconfig +9 -0
@@ -69,6 +69,12 @@ config SANDBOX select HAVE_GENERIC_BOARD select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL + select DM + select DM_SPI_FLASH + select DM_SERIAL + select DM_I2C + select DM_SPI + select DM_GPIO config SH bool "SuperH architecture"
@@ -83,6 +89,9 @@ config X86 select HAVE_GENERIC_BOARD select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL + select DM + select DM_SERIAL + select DM_GPIO endchoice
arch/arm/Kconfig +35 -0
@@ -288,6 +288,9 @@ config TARGET_MX35PDK config ARCH_BCM283X bool "Broadcom BCM283X family" + select DM + select DM_SERIAL + select DM_GPIO config TARGET_INTEGRATORAP_CM946ES bool "Support integratorap_cm946es"
@@ -325,21 +328,33 @@ config TARGET_CM_T335 bool "Support cm_t335" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SERIAL + select DM_GPIO config TARGET_PEPPER bool "Support pepper" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SERIAL + select DM_GPIO config TARGET_AM335X_IGEP0033 bool "Support am335x_igep0033" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SERIAL + select DM_GPIO config TARGET_PCM051 bool "Support pcm051" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SERIAL + select DM_GPIO config TARGET_DRACO bool "Support draco"
@@ -365,11 +380,17 @@ config TARGET_PENGWYN bool "Support pengwyn" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SERIAL + select DM_GPIO config TARGET_AM335X_EVM bool "Support am335x_evm" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SERIAL + select DM_GPIO config TARGET_AM43XX_EVM bool "Support am43xx_evm"
@@ -414,10 +435,18 @@ config TARGET_BCMNSP config ARCH_EXYNOS bool "Samsung EXYNOS" select CPU_V7 + select DM + select DM_SPI_FLASH + select DM_SERIAL + select DM_SPI + select DM_GPIO config ARCH_S5PC1XX bool "Samsung S5PC1XX" select CPU_V7 + select DM + select DM_SERIAL + select DM_GPIO config ARCH_HIGHBANK bool "Calxeda Highbank"
@@ -619,6 +648,12 @@ config TEGRA select SPL select OF_CONTROL select CPU_V7 + select DM + select DM_SPI_FLASH + select DM_SERIAL + select DM_I2C + select DM_SPI + select DM_GPIO config TARGET_VEXPRESS64_AEMV8A bool "Support vexpress_aemv8a"
arch/arm/cpu/armv7/exynos/Kconfig +0 -15
@@ -65,21 +65,6 @@ endchoice config SYS_SOC default "exynos" -config DM - default y - -config DM_SERIAL - default y - -config DM_SPI - default y - -config DM_SPI_FLASH - default y - -config DM_GPIO - default y - source "board/samsung/smdkv310/Kconfig" source "board/samsung/trats/Kconfig" source "board/samsung/universal_c210/Kconfig"
arch/arm/cpu/armv7/omap3/Kconfig +18 -9
@@ -17,6 +17,9 @@ config TARGET_OMAP3_SDP3430 config TARGET_OMAP3_BEAGLE bool "TI OMAP3 BeagleBoard" select SUPPORT_SPL + select DM + select DM_SERIAL + select DM_GPIO config TARGET_CM_T35 bool "CompuLab CM-T3530 and CM-T3730 boards"
@@ -28,6 +31,9 @@ config TARGET_CM_T3517 config TARGET_DEVKIT8000 bool "TimLL OMAP3 Devkit8000" select SUPPORT_SPL + select DM + select DM_SERIAL + select DM_GPIO config TARGET_OMAP3_EVM bool "TI OMAP3 EVM"
@@ -44,13 +50,22 @@ config TARGET_OMAP3_EVM_QUICK_NAND config TARGET_OMAP3_IGEP00X0 bool "IGEP" select SUPPORT_SPL + select DM + select DM_SERIAL + select DM_GPIO config TARGET_OMAP3_OVERO bool "OMAP35xx Gumstix Overo" select SUPPORT_SPL + select DM + select DM_SERIAL + select DM_GPIO config TARGET_OMAP3_ZOOM1 bool "TI Zoom1" + select DM + select DM_SERIAL + select DM_GPIO config TARGET_AM3517_CRANE bool "am3517_crane"
@@ -94,18 +109,12 @@ config TARGET_TWISTER config TARGET_OMAP3_CAIRO bool "QUIPOS CAIRO" select SUPPORT_SPL + select DM + select DM_SERIAL + select DM_GPIO endchoice -config DM - default y - -config DM_GPIO - default y if DM - -config DM_SERIAL - default y if DM - config SYS_SOC default "omap3"
arch/arm/mach-bcm283x/Kconfig +0 -9
@@ -14,15 +14,6 @@ config TARGET_RPI_2 endchoice -config DM - default y - -config DM_SERIAL - default y - -config DM_GPIO - default y - config SYS_BOARD default "rpi" if TARGET_RPI default "rpi_2" if TARGET_RPI_2
arch/arm/mach-tegra/Kconfig +0 -18
@@ -23,27 +23,9 @@ config SYS_MALLOC_F_LEN config USE_PRIVATE_LIBGCC default y -config DM - default y - config SPL_DM default y -config DM_SERIAL - default y - -config DM_SPI - default y - -config DM_SPI_FLASH - default y - -config DM_I2C - default y - -config DM_GPIO - default y - source "arch/arm/mach-tegra/tegra20/Kconfig" source "arch/arm/mach-tegra/tegra30/Kconfig" source "arch/arm/mach-tegra/tegra114/Kconfig"
arch/powerpc/cpu/ppc4xx/Kconfig +2 -0
@@ -43,6 +43,8 @@ config TARGET_BUBINGA config TARGET_CANYONLANDS bool "Support canyonlands" + select DM + select DM_SERIAL config TARGET_EBONY bool "Support ebony"
arch/sandbox/Kconfig +0 -18
@@ -10,27 +10,9 @@ config SYS_BOARD config SYS_CONFIG_NAME default "sandbox" -config DM - default y - -config DM_GPIO - default y - -config DM_SERIAL - default y - config DM_CROS_EC default y -config DM_SPI - default y - -config DM_SPI_FLASH - default y - -config DM_I2C - default y - config DM_TEST default y
arch/x86/Kconfig +0 -9
@@ -67,15 +67,6 @@ config TARGET_GALILEO endchoice -config DM - default y - -config DM_GPIO - default y - -config DM_SERIAL - default y - config SYS_MALLOC_F_LEN default 0x800
board/amcc/canyonlands/Kconfig +0 -6
@@ -33,10 +33,4 @@ config DISPLAY_BOARDINFO bool default y -config DM - default y - -config DM_SERIAL - default y - endif
board/compulab/cm_t335/Kconfig +0 -9
@@ -12,13 +12,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "cm_t335" -config DM - default y - -config DM_GPIO - default y - -config DM_SERIAL - default y - endif
board/gumstix/pepper/Kconfig +0 -9
@@ -12,13 +12,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "pepper" -config DM - default y - -config DM_GPIO - default y - -config DM_SERIAL - default y - endif
board/isee/igep0033/Kconfig +0 -9
@@ -12,13 +12,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "am335x_igep0033" -config DM - default y - -config DM_GPIO - default y - -config DM_SERIAL - default y - endif
board/phytec/pcm051/Kconfig +0 -9
@@ -12,13 +12,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "pcm051" -config DM - default y - -config DM_GPIO - default y - -config DM_SERIAL - default y - endif
board/samsung/goni/Kconfig +0 -9
@@ -12,13 +12,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "s5p_goni" -config DM - default y - -config DM_GPIO - default y - -config DM_SERIAL - default y - endif
board/samsung/smdkc100/Kconfig +0 -9
@@ -12,13 +12,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "smdkc100" -config DM - default y - -config DM_GPIO - default y - -config DM_SERIAL - default y - endif
board/silica/pengwyn/Kconfig +0 -9
@@ -12,13 +12,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "pengwyn" -config DM - default y - -config DM_GPIO - default y - -config DM_SERIAL - default y - endif
board/ti/am335x/Kconfig +0 -9
@@ -38,13 +38,4 @@ config NOR_BOOT as the ROM only partially sets up pinmux. We also default to using NOR for environment. -config DM - default y - -config DM_GPIO - default y if DM - -config DM_SERIAL - default y if DM - endif
configs/am335x_boneblack_vboot_defconfig +0 -1
@@ -9,4 +9,3 @@ CONFIG_DEFAULT_DEVICE_TREE="am335x-boneblack" CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y -CONFIG_DM=y
configs/am3517_crane_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_AM3517_CRANE=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/am3517_evm_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_AM3517_EVM=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/cm_t3517_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=n CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_CM_T3517=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/cm_t35_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_CM_T35=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/devkit8000_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_DEVKIT8000=y -CONFIG_DM=y -CONFIG_DM_SERIAL=y -CONFIG_DM_GPIO=y
configs/dig297_defconfig +0 -3
@@ -1,6 +1,3 @@ CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_DIG297=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/eco5pk_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_ECO5PK=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/mcx_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_MCX=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/mt_ventoux_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_MT_VENTOUX=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/nokia_rx51_defconfig +0 -3
@@ -1,6 +1,3 @@ CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_NOKIA_RX51=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/omap3_beagle_defconfig +0 -3
@@ -3,6 +3,3 @@ CONFIG_SYS_EXTRA_OPTIONS="NAND" CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_OMAP3_BEAGLE=y -CONFIG_DM=y -CONFIG_DM_GPIO=y -CONFIG_DM_SERIAL=y
configs/omap3_evm_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_OMAP3_EVM=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/omap3_evm_quick_mmc_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_OMAP3_EVM_QUICK_MMC=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/omap3_evm_quick_nand_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_OMAP3_EVM_QUICK_NAND=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/omap3_ha_defconfig +0 -3
@@ -3,6 +3,3 @@ CONFIG_SYS_EXTRA_OPTIONS="SYS_BOARD_OMAP3_HA" CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_TAO3530=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/omap3_logic_defconfig +0 -3
@@ -1,6 +1,3 @@ CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_OMAP3_LOGIC=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/omap3_mvblx_defconfig +0 -3
@@ -1,6 +1,3 @@ CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_OMAP3_MVBLX=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/omap3_pandora_defconfig +0 -3
@@ -1,6 +1,3 @@ CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_OMAP3_PANDORA=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/omap3_sdp3430_defconfig +0 -3
@@ -1,6 +1,3 @@ CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_OMAP3_SDP3430=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/sandbox_defconfig +0 -1
@@ -3,7 +3,6 @@ CONFIG_OF_HOSTFILE=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y -CONFIG_DM=y CONFIG_DEFAULT_DEVICE_TREE="sandbox" CONFIG_CROS_EC=y CONFIG_DM_CROS_EC=y
configs/tao3530_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_TAO3530=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/tricorder_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_TRICORDER=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/tricorder_flash_defconfig +0 -3
@@ -3,6 +3,3 @@ CONFIG_SYS_EXTRA_OPTIONS="FLASHCARD" CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_TRICORDER=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
configs/twister_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_ARM=y CONFIG_OMAP34XX=y CONFIG_TARGET_TWISTER=y -CONFIG_DM=n -CONFIG_DM_SERIAL=n -CONFIG_DM_GPIO=n
Signature · 1 line
1.9.1
PATCH 2/12 dm: select CONFIG_DM* options
Quoted 75 lines · Masahiro Yamada
As mentioned in the previous commit, adding default values in each
Kconfigcauses problems because it does not co-exist with the "depends on" syntax. (Please note this is not a bug ofKconfig.) We should not do so unless we have a special reason. Actually, for CONFIG_DM*, we have no good reason to do so.Generally,
CONFIG_DMis not a user-configurable option. Once we convert a driver into Driver Model, the board only works with Driver Model, i.e.CONFIG_DMmust be always enabled for that board. So, using "select DM" is more suitable rather than allowing users to modify it. Another good thing is,Kconfigwarns unmet dependencies for "select" syntax, so we easily notice bugs.Actually,
CONFIG_DMand other related options have been added without consistency: some intoarch/*/Kconfig, some into board/*/Kconfig, and some into configs/*_defconfig.This commit prefers "select" and cleans up the following issues.
[1] Never use "
CONFIG_DM=n" in defconfig filesIt is really rare to add "
CONFIG_FOO=n" to disable CONFIG options. It is more common to use "#CONFIG_FOOis not set". But here, we do not even have to do it.
Less than half of OMAP3 boards have been converted to Driver Model. Adding the default values toarch/arm/cpu/armv7/omap3/Kconfigis weird. Instead, add "select DM" only to appropriate boards, which eventually eliminates "CONFIG_DM=n", etc.[2] Delete redundant CONFIGs
Sandbox sets
CONFIG_DMinarch/sandbox/Kconfigand defines it again in configs/sandbox_defconfig.
Likewise, OMAP3 setsCONFIG_DMarch/arm/cpu/armv7/omap3/Kconfigand defines it also inomap3_beagle_defconfiganddevkit8000_defconfig.Signed-off-by Masahiro Yamada <[email protected]>---
arch/Kconfig | 9 ++++++++ arch/arm/Kconfig | 35 ++++++++++++++++++++++++++++++++ arch/arm/cpu/armv7/exynos/Kconfig | 15 -------------- arch/arm/cpu/armv7/omap3/Kconfig | 27 ++++++++++++++++-------- arch/arm/mach-bcm283x/Kconfig | 9 -------- arch/arm/mach-tegra/Kconfig | 18 ---------------- arch/powerpc/cpu/ppc4xx/Kconfig | 2 ++ arch/sandbox/Kconfig | 18 ---------------- arch/x86/Kconfig | 9 -------- board/amcc/canyonlands/Kconfig | 6 ------ board/compulab/cm_t335/Kconfig | 9 -------- board/gumstix/pepper/Kconfig | 9 -------- board/isee/igep0033/Kconfig | 9 -------- board/phytec/pcm051/Kconfig | 9 -------- board/samsung/goni/Kconfig | 9 -------- board/samsung/smdkc100/Kconfig | 9 -------- board/silica/pengwyn/Kconfig | 9 -------- board/ti/am335x/Kconfig | 9 -------- configs/am335x_boneblack_vboot_defconfig | 1 - configs/am3517_crane_defconfig | 3 --- configs/am3517_evm_defconfig | 3 --- configs/cm_t3517_defconfig | 3 --- configs/cm_t35_defconfig | 3 --- configs/devkit8000_defconfig | 3 --- configs/dig297_defconfig | 3 --- configs/eco5pk_defconfig | 3 --- configs/mcx_defconfig | 3 --- configs/mt_ventoux_defconfig | 3 --- configs/nokia_rx51_defconfig | 3 --- configs/omap3_beagle_defconfig | 3 --- configs/omap3_evm_defconfig | 3 --- configs/omap3_evm_quick_mmc_defconfig | 3 --- configs/omap3_evm_quick_nand_defconfig | 3 --- configs/omap3_ha_defconfig | 3 --- configs/omap3_logic_defconfig | 3 --- configs/omap3_mvblx_defconfig | 3 ---
Quoted 8 lines
configs/omap3_pandora_defconfig | 3 --- configs/omap3_sdp3430_defconfig | 3 --- configs/sandbox_defconfig | 1 - configs/tao3530_defconfig | 3 --- configs/tricorder_defconfig | 3 --- configs/tricorder_flash_defconfig | 3 --- configs/twister_defconfig | 3 --- 43 files changed, 64 insertions(+), 227 deletions(-)
PATCH 2/12 dm: select CONFIG_DM* options
Quoted 86 lines · Simon Glass
Quoted 75 lines · Masahiro Yamada
As mentioned in the previous commit, adding default values in each
Kconfigcauses problems because it does not co-exist with the "depends on" syntax. (Please note this is not a bug ofKconfig.) We should not do so unless we have a special reason. Actually, for CONFIG_DM*, we have no good reason to do so.Generally,
CONFIG_DMis not a user-configurable option. Once we convert a driver into Driver Model, the board only works with Driver Model, i.e.CONFIG_DMmust be always enabled for that board. So, using "select DM" is more suitable rather than allowing users to modify it. Another good thing is,Kconfigwarns unmet dependencies for "select" syntax, so we easily notice bugs.Actually,
CONFIG_DMand other related options have been added without consistency: some intoarch/*/Kconfig, some into board/*/Kconfig, and some into configs/*_defconfig.This commit prefers "select" and cleans up the following issues.
[1] Never use "
CONFIG_DM=n" in defconfig filesIt is really rare to add "
CONFIG_FOO=n" to disable CONFIG options. It is more common to use "#CONFIG_FOOis not set". But here, we do not even have to do it.
Less than half of OMAP3 boards have been converted to Driver Model. Adding the default values toarch/arm/cpu/armv7/omap3/Kconfigis weird. Instead, add "select DM" only to appropriate boards, which eventually eliminates "CONFIG_DM=n", etc.[2] Delete redundant CONFIGs
Sandbox sets
CONFIG_DMinarch/sandbox/Kconfigand defines it again in configs/sandbox_defconfig.
Likewise, OMAP3 setsCONFIG_DMarch/arm/cpu/armv7/omap3/Kconfigand defines it also inomap3_beagle_defconfiganddevkit8000_defconfig.Signed-off-by Masahiro Yamada <[email protected]>---
arch/Kconfig | 9 ++++++++ arch/arm/Kconfig | 35 ++++++++++++++++++++++++++++++++ arch/arm/cpu/armv7/exynos/Kconfig | 15 -------------- arch/arm/cpu/armv7/omap3/Kconfig | 27 ++++++++++++++++-------- arch/arm/mach-bcm283x/Kconfig | 9 -------- arch/arm/mach-tegra/Kconfig | 18 ---------------- arch/powerpc/cpu/ppc4xx/Kconfig | 2 ++ arch/sandbox/Kconfig | 18 ---------------- arch/x86/Kconfig | 9 -------- board/amcc/canyonlands/Kconfig | 6 ------ board/compulab/cm_t335/Kconfig | 9 -------- board/gumstix/pepper/Kconfig | 9 -------- board/isee/igep0033/Kconfig | 9 -------- board/phytec/pcm051/Kconfig | 9 -------- board/samsung/goni/Kconfig | 9 -------- board/samsung/smdkc100/Kconfig | 9 -------- board/silica/pengwyn/Kconfig | 9 -------- board/ti/am335x/Kconfig | 9 -------- configs/am335x_boneblack_vboot_defconfig | 1 - configs/am3517_crane_defconfig | 3 --- configs/am3517_evm_defconfig | 3 --- configs/cm_t3517_defconfig | 3 --- configs/cm_t35_defconfig | 3 --- configs/devkit8000_defconfig | 3 --- configs/dig297_defconfig | 3 --- configs/eco5pk_defconfig | 3 --- configs/mcx_defconfig | 3 --- configs/mt_ventoux_defconfig | 3 --- configs/nokia_rx51_defconfig | 3 --- configs/omap3_beagle_defconfig | 3 --- configs/omap3_evm_defconfig | 3 --- configs/omap3_evm_quick_mmc_defconfig | 3 --- configs/omap3_evm_quick_nand_defconfig | 3 --- configs/omap3_ha_defconfig | 3 --- configs/omap3_logic_defconfig | 3 --- configs/omap3_mvblx_defconfig | 3 ---Quoted 8 lines
configs/omap3_pandora_defconfig | 3 --- configs/omap3_sdp3430_defconfig | 3 --- configs/sandbox_defconfig | 1 - configs/tao3530_defconfig | 3 --- configs/tricorder_defconfig | 3 --- configs/tricorder_flash_defconfig | 3 --- configs/twister_defconfig | 3 --- 43 files changed, 64 insertions(+), 227 deletions(-)
Quoted 1 line
Acked-by Simon Glass <[email protected]>
Applied to u-boot-dm/next, thanks!
PATCH 3/12 ARM: UniPhier: use "select" instead of default value in defconfig
In reply to Masahiro YamadaAll the UniPhier boards have switch to Driver Model. "select DM" is better than default value in each defconfig.
---
arch/arm/Kconfig | 3 +++ configs/ph1_ld4_defconfig | 3 --- configs/ph1_pro4_defconfig | 3 --- configs/ph1_sld8_defconfig | 3 --- 4 files changed, 3 insertions(+), 9 deletions(-)
arch/arm/Kconfig +3 -0
@@ -748,6 +748,9 @@ config ARCH_UNIPHIER select SUPPORT_SPL select SPL select OF_CONTROL + select DM + select DM_SERIAL + select DM_I2C endchoice
configs/ph1_ld4_defconfig +0 -3
@@ -1,9 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_UNIPHIER=y -CONFIG_DM=y -CONFIG_DM_SERIAL=y CONFIG_SPL_DM=y -CONFIG_DM_I2C=y CONFIG_MACH_PH1_LD4=y CONFIG_PFC_MICRO_SUPPORT_CARD=y CONFIG_DEFAULT_DEVICE_TREE="uniphier-ph1-ld4-ref"
configs/ph1_pro4_defconfig +0 -3
@@ -1,9 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_UNIPHIER=y -CONFIG_DM=y -CONFIG_DM_SERIAL=y CONFIG_SPL_DM=y -CONFIG_DM_I2C=y CONFIG_MACH_PH1_PRO4=y CONFIG_PFC_MICRO_SUPPORT_CARD=y CONFIG_DEFAULT_DEVICE_TREE="uniphier-ph1-pro4-ref"
configs/ph1_sld8_defconfig +0 -3
@@ -1,9 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_UNIPHIER=y -CONFIG_DM=y -CONFIG_DM_SERIAL=y CONFIG_SPL_DM=y -CONFIG_DM_I2C=y CONFIG_MACH_PH1_SLD8=y CONFIG_PFC_MICRO_SUPPORT_CARD=y CONFIG_DEFAULT_DEVICE_TREE="uniphier-ph1-sld8-ref"
Signature · 1 line
1.9.1
PATCH 3/12 ARM: UniPhier: use "select" instead of default value in defconfig
Quoted 11 lines · Masahiro Yamada
All the UniPhier boards have switch to Driver Model. "select DM" is better than default value in each defconfig.
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 3 +++ configs/ph1_ld4_defconfig | 3 --- configs/ph1_pro4_defconfig | 3 --- configs/ph1_sld8_defconfig | 3 --- 4 files changed, 3 insertions(+), 9 deletions(-)
PATCH 3/12 ARM: UniPhier: use "select" instead of default value in defconfig
Quoted 8 lines · Simon Glass
Quoted 6 lines · Masahiro Yamada
All the UniPhier boards have switch to Driver Model. "select DM" is better than default value in each defconfig.
Signed-off-by Masahiro Yamada <[email protected]>---
Quoted 7 lines
Quoted 5 lines
arch/arm/Kconfig | 3 +++ configs/ph1_ld4_defconfig | 3 --- configs/ph1_pro4_defconfig | 3 --- configs/ph1_sld8_defconfig | 3 --- 4 files changed, 3 insertions(+), 9 deletions(-)Acked-by Simon Glass <[email protected]>
Applied to u-boot-dm/next, thanks!
PATCH 4/12 ARM: zynq: use "select" instead of default value in defconfig
In reply to Masahiro YamadaAll the Zynq boards have switch to Driver Model. "select DM" is better than default value in each defconfig.
---
arch/arm/Kconfig | 1 + configs/zynq_microzed_defconfig | 1 - configs/zynq_zc70x_defconfig | 1 - configs/zynq_zc770_xm010_defconfig | 1 - configs/zynq_zc770_xm012_defconfig | 1 - configs/zynq_zc770_xm013_defconfig | 1 - configs/zynq_zed_defconfig | 1 - configs/zynq_zybo_defconfig | 1 - 8 files changed, 1 insertion(+), 7 deletions(-)
arch/arm/Kconfig +1 -0
@@ -637,6 +637,7 @@ config ZYNQ bool "Xilinx Zynq Platform" select CPU_V7 select SUPPORT_SPL + select DM config TARGET_XILINX_ZYNQMP bool "Support Xilinx ZynqMP Platform"
configs/zynq_microzed_defconfig +0 -1
@@ -6,5 +6,4 @@ CONFIG_OF_CONTROL=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y -CONFIG_DM=y CONFIG_DEFAULT_DEVICE_TREE="zynq-microzed"
configs/zynq_zc70x_defconfig +0 -1
@@ -7,4 +7,3 @@ CONFIG_DEFAULT_DEVICE_TREE="zynq-zc702" CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y -CONFIG_DM=y
configs/zynq_zc770_xm010_defconfig +0 -1
@@ -8,4 +8,3 @@ CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm010" CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y -CONFIG_DM=y
configs/zynq_zc770_xm012_defconfig +0 -1
@@ -8,4 +8,3 @@ CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm012" CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y -CONFIG_DM=y
configs/zynq_zc770_xm013_defconfig +0 -1
@@ -8,4 +8,3 @@ CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm013" CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y -CONFIG_DM=y
configs/zynq_zed_defconfig +0 -1
@@ -7,4 +7,3 @@ CONFIG_DEFAULT_DEVICE_TREE="zynq-zed" CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y -CONFIG_DM=y
configs/zynq_zybo_defconfig +0 -1
@@ -7,4 +7,3 @@ CONFIG_DEFAULT_DEVICE_TREE="zynq-zybo" CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y -CONFIG_DM=y
Signature · 1 line
1.9.1
PATCH 4/12 ARM: zynq: use "select" instead of default value in defconfig
Quoted 6 lines · Masahiro Yamada
All the Zynq boards have switch to Driver Model. "select DM" is better than default value in each defconfig.
Signed-off-by Masahiro Yamada <[email protected]>---
Quoted 9 lines
arch/arm/Kconfig | 1 + configs/zynq_microzed_defconfig | 1 - configs/zynq_zc70x_defconfig | 1 - configs/zynq_zc770_xm010_defconfig | 1 - configs/zynq_zc770_xm012_defconfig | 1 - configs/zynq_zc770_xm013_defconfig | 1 - configs/zynq_zed_defconfig | 1 - configs/zynq_zybo_defconfig | 1 - 8 files changed, 1 insertion(+), 7 deletions(-)
PATCH 4/12 ARM: zynq: use "select" instead of default value in defconfig
Quoted 18 lines · Simon Glass
Quoted 6 lines · Masahiro Yamada
All the Zynq boards have switch to Driver Model. "select DM" is better than default value in each defconfig.
Signed-off-by Masahiro Yamada <[email protected]>---
Quoted 9 lines
arch/arm/Kconfig | 1 + configs/zynq_microzed_defconfig | 1 - configs/zynq_zc70x_defconfig | 1 - configs/zynq_zc770_xm010_defconfig | 1 - configs/zynq_zc770_xm012_defconfig | 1 - configs/zynq_zc770_xm013_defconfig | 1 - configs/zynq_zed_defconfig | 1 - configs/zynq_zybo_defconfig | 1 - 8 files changed, 1 insertion(+), 7 deletions(-)
Quoted 1 line
Acked-by Simon Glass <[email protected]>
Applied to u-boot-dm/next, thanks!
PATCH 5/12 ARM: rmobile: use "select" instead of default value in defconfig
In reply to Masahiro Yamada---
arch/arm/cpu/armv7/rmobile/Kconfig | 12 ++++++++++++ configs/alt_defconfig | 2 -- configs/gose_defconfig | 2 -- configs/koelsch_defconfig | 2 -- configs/lager_defconfig | 2 -- configs/porter_defconfig | 2 -- configs/silk_defconfig | 2 -- 7 files changed, 12 insertions(+), 12 deletions(-)
arch/arm/cpu/armv7/rmobile/Kconfig +12 -0
@@ -8,24 +8,36 @@ config TARGET_ARMADILLO_800EVA config TARGET_GOSE bool "Gose board" + select DM + select DM_SERIAL config TARGET_KOELSCH bool "Koelsch board" + select DM + select DM_SERIAL config TARGET_LAGER bool "Lager board" + select DM + select DM_SERIAL config TARGET_KZM9G bool "KZM9D board" config TARGET_ALT bool "Alt board" + select DM + select DM_SERIAL config TARGET_SILK bool "Silk board" + select DM + select DM_SERIAL config TARGET_PORTER bool "Porter board" + select DM + select DM_SERIAL endchoice
configs/alt_defconfig +0 -2
@@ -1,6 +1,4 @@ CONFIG_ARM=y CONFIG_RMOBILE=y CONFIG_TARGET_ALT=y -CONFIG_DM=y -CONFIG_DM_SERIAL=y CONFIG_SH_SDHI=y
configs/gose_defconfig +0 -2
@@ -1,6 +1,4 @@ CONFIG_ARM=y CONFIG_RMOBILE=y CONFIG_TARGET_GOSE=y -CONFIG_DM=y -CONFIG_DM_SERIAL=y CONFIG_SH_SDHI=y
configs/koelsch_defconfig +0 -2
@@ -1,6 +1,4 @@ CONFIG_ARM=y CONFIG_RMOBILE=y CONFIG_TARGET_KOELSCH=y -CONFIG_DM=y -CONFIG_DM_SERIAL=y CONFIG_SH_SDHI=y
configs/lager_defconfig +0 -2
@@ -1,6 +1,4 @@ CONFIG_ARM=y CONFIG_RMOBILE=y CONFIG_TARGET_LAGER=y -CONFIG_DM=y -CONFIG_DM_SERIAL=y CONFIG_SH_SDHI=y
configs/porter_defconfig +0 -2
@@ -1,6 +1,4 @@ CONFIG_ARM=y CONFIG_RMOBILE=y CONFIG_TARGET_PORTER=y -CONFIG_DM=y -CONFIG_DM_SERIAL=y CONFIG_SH_SDHI=y
configs/silk_defconfig +0 -2
@@ -1,6 +1,4 @@ CONFIG_ARM=y CONFIG_RMOBILE=y CONFIG_TARGET_SILK=y -CONFIG_DM=y -CONFIG_DM_SERIAL=y CONFIG_SH_SDHI=y
Signature · 1 line
1.9.1
PATCH 5/12 ARM: rmobile: use "select" instead of default value in defconfig
Quoted 11 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/cpu/armv7/rmobile/Kconfig | 12 ++++++++++++ configs/alt_defconfig | 2 -- configs/gose_defconfig | 2 -- configs/koelsch_defconfig | 2 -- configs/lager_defconfig | 2 -- configs/porter_defconfig | 2 -- configs/silk_defconfig | 2 -- 7 files changed, 12 insertions(+), 12 deletions(-)
PATCH 5/12 ARM: rmobile: use "select" instead of default value in defconfig
Quoted 14 lines · Simon Glass
Quoted 11 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/cpu/armv7/rmobile/Kconfig | 12 ++++++++++++ configs/alt_defconfig | 2 -- configs/gose_defconfig | 2 -- configs/koelsch_defconfig | 2 -- configs/lager_defconfig | 2 -- configs/porter_defconfig | 2 -- configs/silk_defconfig | 2 -- 7 files changed, 12 insertions(+), 12 deletions(-)
Quoted 1 line
Acked-by Simon Glass <[email protected]>
Applied to u-boot-dm/next, thanks!
PATCH 6/12 ARM: snapper9260: use "select" instead of default value in defconfig
In reply to Masahiro Yamada---
arch/arm/mach-at91/Kconfig | 3 +++ configs/snapper9260_defconfig | 3 --- configs/snapper9g20_defconfig | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-)
arch/arm/mach-at91/Kconfig +3 -0
@@ -30,6 +30,9 @@ config TARGET_TNY_A9260 config TARGET_SNAPPER9260 bool "Support snapper9260" select CPU_ARM926EJS + select DM + select DM_SERIAL + select DM_GPIO config TARGET_AFEB9260 bool "Support afeb9260"
configs/snapper9260_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SYS_EXTRA_OPTIONS="AT91SAM9260" CONFIG_ARM=y CONFIG_ARCH_AT91=y CONFIG_TARGET_SNAPPER9260=y -CONFIG_DM=y -CONFIG_DM_GPIO=y -CONFIG_DM_SERIAL=y
configs/snapper9g20_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SYS_EXTRA_OPTIONS="AT91SAM9G20" CONFIG_ARM=y CONFIG_ARCH_AT91=y CONFIG_TARGET_SNAPPER9260=y -CONFIG_DM=y -CONFIG_DM_GPIO=y -CONFIG_DM_SERIAL=y
Signature · 1 line
1.9.1
PATCH 6/12 ARM: snapper9260: use "select" instead of default value in defconfig
Quoted 7 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/mach-at91/Kconfig | 3 +++ configs/snapper9260_defconfig | 3 --- configs/snapper9g20_defconfig | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-)
PATCH 6/12 ARM: snapper9260: use "select" instead of default value in defconfig
Quoted 11 lines · Simon Glass
Quoted 7 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/mach-at91/Kconfig | 3 +++ configs/snapper9260_defconfig | 3 --- configs/snapper9g20_defconfig | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-)Acked-by Simon Glass <[email protected]>
Applied to u-boot-dm/next, thanks!
PATCH 7/12 ARM: mx6: use "select" instead of default value in defconfig
In reply to Masahiro Yamada---
arch/arm/Kconfig | 6 ++++++ configs/mx6dlsabreauto_defconfig | 2 -- configs/mx6dlsabresd_defconfig | 2 -- configs/mx6qsabreauto_defconfig | 2 -- configs/mx6qsabresd_defconfig | 2 -- configs/mx6sabresd_spl_defconfig | 2 -- configs/mx6sxsabresd_defconfig | 2 -- configs/mx6sxsabresd_spl_defconfig | 2 -- 8 files changed, 6 insertions(+), 14 deletions(-)
arch/arm/Kconfig +6 -0
@@ -533,11 +533,15 @@ config TARGET_MX6QARM2 config TARGET_MX6QSABREAUTO bool "Support mx6qsabreauto" select CPU_V7 + select DM + select DM_THERMAL config TARGET_MX6SABRESD bool "Support mx6sabresd" select CPU_V7 select SUPPORT_SPL + select DM + select DM_THERMAL config TARGET_MX6SLEVK bool "Support mx6slevk"
@@ -547,6 +551,8 @@ config TARGET_MX6SXSABRESD bool "Support mx6sxsabresd" select CPU_V7 select SUPPORT_SPL + select DM + select DM_THERMAL config TARGET_GW_VENTANA bool "Support gw_ventana"
configs/mx6dlsabreauto_defconfig +0 -2
@@ -1,5 +1,3 @@ CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6qsabreauto/mx6dl.cfg,MX6DL" CONFIG_ARM=y CONFIG_TARGET_MX6QSABREAUTO=y -CONFIG_DM=y -CONFIG_DM_THERMAL=y
configs/mx6dlsabresd_defconfig +0 -2
@@ -1,5 +1,3 @@ CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabresd/mx6dlsabresd.cfg,MX6DL" CONFIG_ARM=y CONFIG_TARGET_MX6SABRESD=y -CONFIG_DM=y -CONFIG_DM_THERMAL=y
configs/mx6qsabreauto_defconfig +0 -2
@@ -1,5 +1,3 @@ CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6qsabreauto/imximage.cfg,MX6Q" CONFIG_ARM=y CONFIG_TARGET_MX6QSABREAUTO=y -CONFIG_DM=y -CONFIG_DM_THERMAL=y
configs/mx6qsabresd_defconfig +0 -2
@@ -1,5 +1,3 @@ CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg,MX6Q" CONFIG_ARM=y CONFIG_TARGET_MX6SABRESD=y -CONFIG_DM=y -CONFIG_DM_THERMAL=y
configs/mx6sabresd_spl_defconfig +0 -2
@@ -2,5 +2,3 @@ CONFIG_SPL=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,SPL,MX6Q" CONFIG_ARM=y CONFIG_TARGET_MX6SABRESD=y -CONFIG_DM=y -CONFIG_DM_THERMAL=y
configs/mx6sxsabresd_defconfig +0 -2
@@ -1,5 +1,3 @@ CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sxsabresd/imximage.cfg,MX6SX" CONFIG_ARM=y CONFIG_TARGET_MX6SXSABRESD=y -CONFIG_DM=y -CONFIG_DM_THERMAL=y
configs/mx6sxsabresd_spl_defconfig +0 -2
@@ -2,5 +2,3 @@ CONFIG_SPL=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6SX" CONFIG_ARM=y CONFIG_TARGET_MX6SXSABRESD=y -CONFIG_DM=y -CONFIG_DM_THERMAL=y
Signature · 1 line
1.9.1
PATCH 7/12 ARM: mx6: use "select" instead of default value in defconfig
Quoted 12 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 6 ++++++ configs/mx6dlsabreauto_defconfig | 2 -- configs/mx6dlsabresd_defconfig | 2 -- configs/mx6qsabreauto_defconfig | 2 -- configs/mx6qsabresd_defconfig | 2 -- configs/mx6sabresd_spl_defconfig | 2 -- configs/mx6sxsabresd_defconfig | 2 -- configs/mx6sxsabresd_spl_defconfig | 2 -- 8 files changed, 6 insertions(+), 14 deletions(-)
PATCH 7/12 ARM: mx6: use "select" instead of default value in defconfig
Quoted 15 lines · Simon Glass
Quoted 12 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 6 ++++++ configs/mx6dlsabreauto_defconfig | 2 -- configs/mx6dlsabresd_defconfig | 2 -- configs/mx6qsabreauto_defconfig | 2 -- configs/mx6qsabresd_defconfig | 2 -- configs/mx6sabresd_spl_defconfig | 2 -- configs/mx6sxsabresd_defconfig | 2 -- configs/mx6sxsabresd_spl_defconfig | 2 -- 8 files changed, 6 insertions(+), 14 deletions(-)
Quoted 1 line
Acked-by Simon Glass <[email protected]>
Applied to u-boot-dm/next, thanks!
PATCH 8/12 ARM: socfpga: use "select" instead of default value in defconfig
In reply to Masahiro Yamada---
arch/arm/Kconfig | 6 ++++++ configs/socfpga_arria5_defconfig | 3 --- configs/socfpga_cyclone5_defconfig | 3 --- configs/socfpga_socrates_defconfig | 3 --- 4 files changed, 6 insertions(+), 9 deletions(-)
arch/arm/Kconfig +6 -0
@@ -618,11 +618,17 @@ config TARGET_SOCFPGA_ARRIA5 bool "Support socfpga_arria5" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SPI_FLASH + select DM_SPI config TARGET_SOCFPGA_CYCLONE5 bool "Support socfpga_cyclone5" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SPI_FLASH + select DM_SPI config ARCH_SUNXI bool "Support sunxi (Allwinner) SoCs"
configs/socfpga_arria5_defconfig +0 -3
@@ -3,6 +3,3 @@ CONFIG_ARM=y CONFIG_TARGET_SOCFPGA_ARRIA5=y CONFIG_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="socfpga_arria5_socdk" -CONFIG_DM=y -CONFIG_DM_SPI=y -CONFIG_DM_SPI_FLASH=y
configs/socfpga_cyclone5_defconfig +0 -3
@@ -3,6 +3,3 @@ CONFIG_ARM=y CONFIG_TARGET_SOCFPGA_CYCLONE5=y CONFIG_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_socdk" -CONFIG_DM=y -CONFIG_DM_SPI=y -CONFIG_DM_SPI_FLASH=y
configs/socfpga_socrates_defconfig +0 -3
@@ -3,6 +3,3 @@ CONFIG_ARM=y CONFIG_TARGET_SOCFPGA_CYCLONE5=y CONFIG_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_socrates" -CONFIG_DM=y -CONFIG_DM_SPI=y -CONFIG_DM_SPI_FLASH=y
Signature · 1 line
1.9.1
PATCH 8/12 ARM: socfpga: use "select" instead of default value in defconfig
Hi!
Quoted 14 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 6 ++++++ configs/socfpga_arria5_defconfig | 3 --- configs/socfpga_cyclone5_defconfig | 3 --- configs/socfpga_socrates_defconfig | 3 --- 4 files changed, 6 insertions(+), 9 deletions(-)arch/arm/Kconfig +0
-0
arch/arm/Kconfig config TARGET_SOCFPGA_ARRIA5 · line 624
Quoted 7 lines
arch/arm/Kconfig +3
-0@@ -618,11 +618,17 @@ config TARGET_SOCFPGA_ARRIA5 bool "Support socfpga_arria5" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SPI_FLASH + select DM_SPI
Are you sure?
config DM_SPI_FLASH
bool "Enable Driver Model for SPI flash"
depends on DM && SPI
help
DM_SPI_FLASH depends on SPI, you can't just select it...
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
PATCH 8/12 ARM: socfpga: use "select" instead of default value in defconfig
Hi Pavel,
2015-04-01 5:40 GMT+09:00 Pavel Machek <[email protected]>:
Quoted 11 lines
Hi!
Quoted 9 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 6 ++++++ configs/socfpga_arria5_defconfig | 3 --- configs/socfpga_cyclone5_defconfig | 3 --- configs/socfpga_socrates_defconfig | 3 --- 4 files changed, 6 insertions(+), 9 deletions(-)
Quoted 14 lines
arch/arm/Kconfig config TARGET_SOCFPGA_ARRIA5 · line 624
Quoted 12 lines
arch/arm/Kconfig +3
-0@@ -618,11 +618,17 @@ config TARGET_SOCFPGA_ARRIA5 bool "Support socfpga_arria5" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SPI_FLASH + select DM_SPIAre you sure?
Yes, I'm sure.
Quoted 7 lines
config
DM_SPI_FLASH
bool "Enable Driver Model for SPI flash"
depends on DM && SPI
help
DM_SPI_FLASHdepends on SPI, you can't just select it...
This dependency is wrong.
Before this patch, it must be fixed.
Please see 01/12 of this series:
http://patchwork.ozlabs.org/patch/456458/
Signature · 2 lines
Best Regards Masahiro Yamada
PATCH 8/12 ARM: socfpga: use "select" instead of default value in defconfig
Hi!
Quoted 34 lines
Quoted 9 lines
Quoted 9 lines
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 6 ++++++ configs/socfpga_arria5_defconfig | 3 --- configs/socfpga_cyclone5_defconfig | 3 --- configs/socfpga_socrates_defconfig | 3 --- 4 files changed, 6 insertions(+), 9 deletions(-)Quoted 13 lines
arch/arm/Kconfig config TARGET_SOCFPGA_ARRIA5 · line 623
Quoted 11 lines
arch/arm/Kconfig +3
-0@@ -618,11 +618,17 @@ config TARGET_SOCFPGA_ARRIA5 bool "Support socfpga_arria5" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SPI_FLASH + select DM_SPIAre you sure?
Yes, I'm sure.
Quoted 7 lines
config
DM_SPI_FLASH
bool "Enable Driver Model for SPI flash"
depends on DM && SPI
help
DM_SPI_FLASHdepends on SPI, you can't just select it...
Quoted 5 lines
This dependency is wrong.
Before this patch, it must be fixed.Please see 01/12 of this series:
http://patchwork.ozlabs.org/patch/456458/
But I'm not sure.
With this, you made CONFIG_DM_SPI_FLASH mandatory... even for users that have no SPI flash. There must be better solution...?
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
PATCH 8/12 ARM: socfpga: use "select" instead of default value in defconfig
Hi Pavel,
2015-04-02 21:47 GMT+09:00 Pavel Machek <[email protected]>:
Quoted 39 lines
Hi!
Quoted 37 lines
Quoted 9 lines
Quoted 9 lines
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 6 ++++++ configs/socfpga_arria5_defconfig | 3 --- configs/socfpga_cyclone5_defconfig | 3 --- configs/socfpga_socrates_defconfig | 3 --- 4 files changed, 6 insertions(+), 9 deletions(-)Quoted 13 lines
arch/arm/Kconfig config TARGET_SOCFPGA_ARRIA5 · line 623
Quoted 11 lines
arch/arm/Kconfig +3
-0@@ -618,11 +618,17 @@ config TARGET_SOCFPGA_ARRIA5 bool "Support socfpga_arria5" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SPI_FLASH + select DM_SPIAre you sure?
Yes, I'm sure.
Quoted 7 lines
config
DM_SPI_FLASH
bool "Enable Driver Model for SPI flash"
depends on DM && SPI
help
DM_SPI_FLASHdepends on SPI, you can't just select it...This dependency is wrong.
Before this patch, it must be fixed.
Quoted 7 lines
Quoted 2 lines
Please see 01/12 of this series:
http://patchwork.ozlabs.org/patch/456458/But I'm not sure.
With this, you made
CONFIG_DM_SPI_FLASHmandatory... even for users that have no SPI flash. There must be better solution...?
In my opinion,
CONFIG_DM_* should be user-unconfigurable.
CONFIG_DM_* should not enable/disable a feature,
but should define how it is implemented.
For example,
!defined(CONFIG_SPI) --> SPI is disabled
defined(CONFIG_SPI) && defined(CONFIG_DM_SPI) --> Driver Model SPI is enabled
defined(CONFIG_SPI) && !defined(CONFIG_DM_SPI) --> ad-hoc SPI is enabled
Likewise, I think CONFIG_SPI_FLASH should decide if the system has SPI flash.
Signature · 2 lines
Best Regards Masahiro Yamada
PATCH 8/12 ARM: socfpga: use "select" instead of default value in defconfig
Hi Masahiro,
Quoted 61 lines · Masahiro Yamada
Hi Pavel,
2015-04-02 21:47 GMT+09:00 Pavel Machek <[email protected]>:
Quoted 39 lines
Hi!
Quoted 37 lines
Quoted 9 lines
Quoted 9 lines
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 6 ++++++ configs/socfpga_arria5_defconfig | 3 --- configs/socfpga_cyclone5_defconfig | 3 --- configs/socfpga_socrates_defconfig | 3 --- 4 files changed, 6 insertions(+), 9 deletions(-)Quoted 13 lines
arch/arm/Kconfig config TARGET_SOCFPGA_ARRIA5 · line 623
Quoted 11 lines
arch/arm/Kconfig +3
-0@@ -618,11 +618,17 @@ config TARGET_SOCFPGA_ARRIA5 bool "Support socfpga_arria5" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SPI_FLASH + select DM_SPIAre you sure?
Yes, I'm sure.
Quoted 7 lines
config
DM_SPI_FLASH
bool "Enable Driver Model for SPI flash"
depends on DM && SPI
help
DM_SPI_FLASHdepends on SPI, you can't just select it...This dependency is wrong.
Before this patch, it must be fixed.Quoted 7 lines
Quoted 2 lines
Please see 01/12 of this series:
http://patchwork.ozlabs.org/patch/456458/But I'm not sure.
With this, you made
CONFIG_DM_SPI_FLASHmandatory... even for users that have no SPI flash. There must be better solution...?In my opinion,
CONFIG_DM_* should be user-unconfigurable.
CONFIG_DM_* should not enable/disable a feature,
but should define how it is implemented.For example,
Quoted 8 lines
!defined(CONFIG_SPI) --> SPI is disabled
defined(CONFIG_SPI)&&defined(CONFIG_DM_SPI)--> Driver Model SPI is enabled
defined(CONFIG_SPI)&& !defined(CONFIG_DM_SPI) --> ad-hoc SPI is enabledLikewise, I think
CONFIG_SPI_FLASHshould decide if the system has SPI flash.
This sounds right to me. In fact it is important, since we want to remove the CONFIG_DM options eventually. There are only there as a migration aid.
Regards,
Simon
PATCH 8/12 ARM: socfpga: use "select" instead of default value in defconfig
Quoted 68 lines · Simon Glass
Hi Masahiro,
Quoted 65 lines · Masahiro Yamada
Hi Pavel,
2015-04-02 21:47 GMT+09:00 Pavel Machek <[email protected]>:
Quoted 39 lines
Hi!
Quoted 37 lines
Quoted 9 lines
Quoted 9 lines
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 6 ++++++ configs/socfpga_arria5_defconfig | 3 --- configs/socfpga_cyclone5_defconfig | 3 --- configs/socfpga_socrates_defconfig | 3 --- 4 files changed, 6 insertions(+), 9 deletions(-)Quoted 13 lines
arch/arm/Kconfig config TARGET_SOCFPGA_ARRIA5 · line 623
Quoted 11 lines
arch/arm/Kconfig +3
-0@@ -618,11 +618,17 @@ config TARGET_SOCFPGA_ARRIA5 bool "Support socfpga_arria5" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SPI_FLASH + select DM_SPIAre you sure?
Yes, I'm sure.
Quoted 7 lines
config
DM_SPI_FLASH
bool "Enable Driver Model for SPI flash"
depends on DM && SPI
help
DM_SPI_FLASHdepends on SPI, you can't just select it...This dependency is wrong.
Before this patch, it must be fixed.Quoted 7 lines
Quoted 2 lines
Please see 01/12 of this series:
http://patchwork.ozlabs.org/patch/456458/But I'm not sure.
With this, you made
CONFIG_DM_SPI_FLASHmandatory... even for users that have no SPI flash. There must be better solution...?In my opinion,
CONFIG_DM_* should be user-unconfigurable.
CONFIG_DM_* should not enable/disable a feature,
but should define how it is implemented.For example,
!defined(CONFIG_SPI) --> SPI is disabled
defined(CONFIG_SPI)&&defined(CONFIG_DM_SPI)--> Driver Model SPI is enabled
Quoted 8 lines
Quoted 4 lines
defined(CONFIG_SPI)&& !defined(CONFIG_DM_SPI) --> ad-hoc SPI is enabledLikewise, I think
CONFIG_SPI_FLASHshould decide if the system has SPI flash.This sounds right to me. In fact it is important, since we want to remove the
CONFIG_DMoptions eventually. There are only there as a migration aid.
PATCH 8/12 ARM: socfpga: use "select" instead of default value in defconfig
Quoted 72 lines · Simon Glass
Quoted 71 lines · Simon Glass
Hi Masahiro,
Quoted 68 lines · Masahiro Yamada
Hi Pavel,
2015-04-02 21:47 GMT+09:00 Pavel Machek <[email protected]>:
Quoted 39 lines
Hi!
Quoted 37 lines
Quoted 9 lines
Quoted 9 lines
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 6 ++++++ configs/socfpga_arria5_defconfig | 3 --- configs/socfpga_cyclone5_defconfig | 3 --- configs/socfpga_socrates_defconfig | 3 --- 4 files changed, 6 insertions(+), 9 deletions(-)Quoted 13 lines
arch/arm/Kconfig config TARGET_SOCFPGA_ARRIA5 · line 623
Quoted 11 lines
arch/arm/Kconfig +3
-0@@ -618,11 +618,17 @@ config TARGET_SOCFPGA_ARRIA5 bool "Support socfpga_arria5" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SPI_FLASH + select DM_SPIAre you sure?
Yes, I'm sure.
Quoted 7 lines
config
DM_SPI_FLASH
bool "Enable Driver Model for SPI flash"
depends on DM && SPI
help
DM_SPI_FLASHdepends on SPI, you can't just select it...This dependency is wrong.
Before this patch, it must be fixed.Quoted 7 lines
Quoted 2 lines
Please see 01/12 of this series:
http://patchwork.ozlabs.org/patch/456458/But I'm not sure.
With this, you made
CONFIG_DM_SPI_FLASHmandatory... even for users that have no SPI flash. There must be better solution...?In my opinion,
CONFIG_DM_* should be user-unconfigurable.
CONFIG_DM_* should not enable/disable a feature,
but should define how it is implemented.For example,
!defined(CONFIG_SPI) --> SPI is disabled
defined(CONFIG_SPI)&&defined(CONFIG_DM_SPI)--> Driver Model SPI is enabled
defined(CONFIG_SPI)&& !defined(CONFIG_DM_SPI) --> ad-hoc SPI is enabled
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Likewise, I think
CONFIG_SPI_FLASHshould decide if the system has SPI flash.This sounds right to me. In fact it is important, since we want to remove the
CONFIG_DMoptions eventually. There are only there as a migration aid.Acked-by Simon Glass <[email protected]>
Applied to u-boot-dm/next, thanks!
PATCH 9/12 ARM: bav335x: use "select" instead of default value in defconfig
In reply to Masahiro Yamada---
arch/arm/Kconfig | 2 ++ configs/birdland_bav335a_defconfig | 3 --- configs/birdland_bav335b_defconfig | 3 --- 3 files changed, 2 insertions(+), 6 deletions(-)
arch/arm/Kconfig +2 -0
@@ -401,6 +401,8 @@ config TARGET_BAV335X bool "Support bav335x" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SERIAL help The BAV335x OEM Network Processor integrates all the functions of an embedded network computer in a small, easy to use SODIMM module which
configs/birdland_bav335a_defconfig +0 -3
@@ -1,8 +1,5 @@ CONFIG_ARM=y CONFIG_TARGET_BAV335X=y -CONFIG_DM=y -CONFIG_DM_SERIAL=y -CONFIG_SYS_MALLOC_F=y CONFIG_BAV_VERSION=1 CONFIG_SPL=y CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1"
configs/birdland_bav335b_defconfig +0 -3
@@ -1,8 +1,5 @@ CONFIG_ARM=y CONFIG_TARGET_BAV335X=y -CONFIG_DM=y -CONFIG_DM_SERIAL=y -CONFIG_SYS_MALLOC_F=y CONFIG_BAV_VERSION=2 CONFIG_SPL=y CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1"
Signature · 1 line
1.9.1
PATCH 9/12 ARM: bav335x: use "select" instead of default value in defconfig
Quoted 7 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 2 ++ configs/birdland_bav335a_defconfig | 3 --- configs/birdland_bav335b_defconfig | 3 --- 3 files changed, 2 insertions(+), 6 deletions(-)
PATCH 9/12 ARM: bav335x: use "select" instead of default value in defconfig
Quoted 11 lines · Simon Glass
Quoted 7 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 2 ++ configs/birdland_bav335a_defconfig | 3 --- configs/birdland_bav335b_defconfig | 3 --- 3 files changed, 2 insertions(+), 6 deletions(-)Acked-by Simon Glass <[email protected]>
Applied to u-boot-dm/next, thanks!
PATCH 10/12 ARM: stv0991: use "select" instead of default value in defconfig
In reply to Masahiro Yamada---
arch/arm/Kconfig | 2 ++ configs/stv0991_defconfig | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/Kconfig +2 -0
@@ -230,6 +230,8 @@ config TARGET_SPEAR600 config TARGET_STV0991 bool "Support stv0991" select CPU_V7 + select DM + select DM_SERIAL config TARGET_X600 bool "Support x600"
configs/stv0991_defconfig +0 -2
@@ -2,5 +2,3 @@ CONFIG_SYS_EXTRA_OPTIONS="stv0991" CONFIG_ARM=y CONFIG_TARGET_STV0991=y CONFIG_SYS_MALLOC_F_LEN=0x2000 -CONFIG_DM=y -CONFIG_DM_SERIAL=y
Signature · 1 line
1.9.1
PATCH 10/12 ARM: stv0991: use "select" instead of default value in defconfig
Quoted 6 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 2 ++ configs/stv0991_defconfig | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-)
PATCH 10/12 ARM: stv0991: use "select" instead of default value in defconfig
Quoted 10 lines · Simon Glass
Quoted 6 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 2 ++ configs/stv0991_defconfig | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-)Acked-by Simon Glass <[email protected]>
Applied to u-boot-dm/next, thanks!
PATCH 10/12 ARM: stv0991: use "select" instead of default value in defconfig
In reply to Masahiro YamadaQuoted 6 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 2 ++ configs/stv0991_defconfig | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-)
PATCH 11/12 ARM: cm_fx6: use "select" instead of default value in defconfig
In reply to Masahiro Yamada---
arch/arm/Kconfig | 3 +++ configs/cm_fx6_defconfig | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/Kconfig +3 -0
@@ -617,6 +617,9 @@ config TARGET_CM_FX6 bool "Support cm_fx6" select CPU_V7 select SUPPORT_SPL + select DM + select DM_SERIAL + select DM_GPIO config TARGET_SOCFPGA_ARRIA5 bool "Support socfpga_arria5"
configs/cm_fx6_defconfig +0 -3
@@ -2,6 +2,3 @@ CONFIG_SPL=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6QDL,SPL" CONFIG_ARM=y CONFIG_TARGET_CM_FX6=y -CONFIG_DM=y -CONFIG_DM_GPIO=y -CONFIG_DM_SERIAL=y
Signature · 1 line
1.9.1
PATCH 11/12 ARM: cm_fx6: use "select" instead of default value in defconfig
Quoted 6 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 3 +++ configs/cm_fx6_defconfig | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-)
PATCH 11/12 ARM: cm_fx6: use "select" instead of default value in defconfig
Quoted 10 lines · Simon Glass
Quoted 6 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/Kconfig | 3 +++ configs/cm_fx6_defconfig | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-)Acked-by Simon Glass <[email protected]>
Applied to u-boot-dm/next, thanks!
PATCH 12/12 powerpc: ids8313: use "select" instead of default value in defconfig
In reply to Masahiro Yamada---
arch/powerpc/cpu/mpc83xx/Kconfig | 1 + configs/ids8313_defconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/cpu/mpc83xx/Kconfig +1 -0
@@ -49,6 +49,7 @@ config TARGET_MPC837XERDB config TARGET_IDS8313 bool "Support ids8313" + select DM config TARGET_KM8360 bool "Support km8360"
configs/ids8313_defconfig +0 -1
@@ -4,4 +4,3 @@ CONFIG_MPC83xx=y CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_TARGET_IDS8313=y -CONFIG_DM=y
Signature · 1 line
1.9.1
PATCH 12/12 powerpc: ids8313: use "select" instead of default value in defconfig
Quoted 6 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/powerpc/cpu/mpc83xx/Kconfig | 1 + configs/ids8313_defconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)
PATCH 12/12 powerpc: ids8313: use "select" instead of default value in defconfig
Quoted 10 lines · Simon Glass
Quoted 6 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
arch/powerpc/cpu/mpc83xx/Kconfig | 1 + configs/ids8313_defconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)Acked-by Simon Glass <[email protected]>
Applied to u-boot-dm/next, thanks!