Skip to contentSkip to conversation

common: Log should depends on DM not be selected by DM

PATCH New Michal Simek 4 participants 19 messages Jul 23, 2018 – Jul 30, 2018

Subsystems (18)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/5 common: Log should depends on DM not be selected by DM

Better use depends on instead of select.

---

Changes in v2: None

I found this in connection to setup imply CMD_DM and it seems to not standard that it is selecting DM which is not used anywhere else.

---
 common/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/Kconfig +1 -1
index 81e88ea77c17..eae5d80cc71b 100644
@@ -428,7 +428,7 @@ menu "Logging"
 
 config LOG
 	bool "Enable logging support"
-	select DM
+	depends on DM
 	help
 	  This enables support for logging of status and debug messages. These
 	  can be displayed on the console, recorded in a memory buffer, or
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 2/5 Kconfig: Replace spaces with tabs and missing newline

Trivial Kconfig cleanup. Use tabs instead of spaces and every Kconfig entry should be separated by newline.

---

Changes in v2:
- new patch - not to confuse script

 arch/arm/Kconfig              | 10 +++++-----
 arch/arm/mach-imx/mx6/Kconfig | 14 +++++++-------
 cmd/Kconfig                   |  5 +++--
 3 files changed, 15 insertions(+), 14 deletions(-)
arch/arm/Kconfig +5 -5
index 376851ef7aa9..ce619641b753 100644
@@ -169,7 +169,7 @@ config ARM_ERRATA_833471
 	bool
 
 config ARM_ERRATA_845369
-       bool
+	bool
 
 config ARM_ERRATA_852421
 	bool
@@ -683,7 +683,7 @@ config ARCH_MX31
 	select CPU_ARM1136
 
 config ARCH_MX7ULP
-        bool "NXP MX7ULP"
+	bool "NXP MX7ULP"
 	select CPU_V7A
 	select ROM_UNIFIED_SECTIONS
 	imply MXC_GPIO
@@ -709,7 +709,7 @@ config ARCH_MX6
 
 if ARCH_MX6
 config SPL_LDSCRIPT
-        default "arch/arm/mach-omap2/u-boot-spl.lds"
+	default "arch/arm/mach-omap2/u-boot-spl.lds"
 endif
 
 config ARCH_MX5
@@ -1486,8 +1486,8 @@ source "arch/arm/Kconfig.debug"
 endmenu
 
 config SPL_LDSCRIPT
-        default "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds" if (ARCH_MX23 || ARCH_MX28) && !SPL_FRAMEWORK
-        default "arch/arm/cpu/arm1136/u-boot-spl.lds" if CPU_ARM1136
+	default "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds" if (ARCH_MX23 || ARCH_MX28) && !SPL_FRAMEWORK
+	default "arch/arm/cpu/arm1136/u-boot-spl.lds" if CPU_ARM1136
 	default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64
 
 
arch/arm/mach-imx/mx6/Kconfig +7 -7
index 521fad74b5a2..b7b77cc51b97 100644
@@ -293,11 +293,11 @@ config TARGET_MX6SLEVK
 	select SUPPORT_SPL
 
 config TARGET_MX6SLLEVK
-        bool "mx6sll evk"
+	bool "mx6sll evk"
 	select BOARD_LATE_INIT
-        select MX6SLL
-        select DM
-        select DM_THERMAL
+	select MX6SLL
+	select DM
+	select DM_THERMAL
 
 config TARGET_MX6SXSABRESD
 	bool "mx6sxsabresd"
@@ -309,11 +309,11 @@ config TARGET_MX6SXSABRESD
 	select BOARD_EARLY_INIT_F
 
 config TARGET_MX6SXSABREAUTO
-        bool "mx6sxsabreauto"
+	bool "mx6sxsabreauto"
 	select BOARD_LATE_INIT
 	select MX6SX
-        select DM
-        select DM_THERMAL
+	select DM
+	select DM_THERMAL
 	select BOARD_EARLY_INIT_F
 
 config TARGET_MX6UL_9X9_EVK
cmd/Kconfig +3 -2
index 2fa0829925c1..b359ac7118b0 100644
@@ -1012,11 +1012,12 @@ config CMD_USB_SDP
 	help
 	  Enables the command "sdp" which is used to have U-Boot emulating the
 	  Serial Download Protocol (SDP) via USB.
+
 config CMD_ROCKUSB
 	bool "rockusb"
 	depends on USB_FUNCTION_ROCKUSB
 	help
-          Rockusb protocol is widely used by Rockchip SoC based devices. It can
+	  Rockusb protocol is widely used by Rockchip SoC based devices. It can
 	  read/write info, image to/from devices. This enable rockusb command
 	  support to communication with rockusb device. for more detail about
 	  this command, please read doc/README.rockusb.
@@ -1489,7 +1490,7 @@ config CMD_BLOB
 	  the original data.
 
 	  Sub-commands:
-            blob enc - encapsulating data as a cryptgraphic blob
+	    blob enc - encapsulating data as a cryptgraphic blob
 	    blob dec - decapsulating cryptgraphic blob to get the data
 
 	  Syntax:
Signature · 1 line
1.9.1
#2 lore raw

PATCH v2 2/5 Kconfig: Replace spaces with tabs and missing newline

Quoted 4 lines · Michal Simek

Trivial Kconfig cleanup. Use tabs instead of spaces and every Kconfig entry should be separated by newline.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180723/f95e0013/attachment.sig>
#4 lore raw

PATCH v2 2/5 Kconfig: Replace spaces with tabs and missing newline

In reply to Michal Simek
Quoted 6 lines · Michal Simek

Trivial Kconfig cleanup. Use tabs instead of spaces and every Kconfig entry should be separated by newline.

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: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180730/58f442b2/attachment.sig>
#5 lore raw

PATCH v2 3/5 Kconfig: Sort bool, default, select and imply options

In reply to Michal Simek

Fix Kconfig bool, default, select and imply options to be alphabetically sorted.

---

Changes in v2:
- new patch

I have sorted only Kconfig which I need for the next patch.

---
 arch/Kconfig                       |  54 +++++-----
 arch/arm/Kconfig                   | 206 ++++++++++++++++++-------------------
 arch/arm/mach-at91/Kconfig         |  60 +++++------
 arch/arm/mach-imx/mx5/Kconfig      |  12 +--
 arch/arm/mach-imx/mx6/Kconfig      | 158 ++++++++++++++--------------
 arch/arm/mach-imx/mx7/Kconfig      |  18 ++--
 arch/arm/mach-omap2/am33xx/Kconfig |  46 ++++-----
 arch/arm/mach-omap2/omap3/Kconfig  |  20 ++--
 arch/arm/mach-rmobile/Kconfig.32   |  14 +--
 arch/arm/mach-tegra/Kconfig        |   8 +-
 arch/microblaze/Kconfig            |   4 +-
 arch/mips/Kconfig                  |  50 ++++-----
 arch/powerpc/cpu/mpc83xx/Kconfig   |   6 +-
 cmd/Kconfig                        |  14 +--
 14 files changed, 335 insertions(+), 335 deletions(-)
arch/Kconfig +27 -27
index cbeb9f67348f..7967fa50ac22 100644
@@ -10,12 +10,12 @@ choice
 
 config ARC
 	bool "ARC architecture"
-	select HAVE_PRIVATE_LIBGCC
-	select SUPPORT_OF_CONTROL
 	select ARCH_EARLY_INIT_R
+	select ARC_TIMER
 	select CLK
+	select HAVE_PRIVATE_LIBGCC
+	select SUPPORT_OF_CONTROL
 	select TIMER
-	select ARC_TIMER
 
 config ARM
 	bool "ARM architecture"
@@ -46,10 +46,10 @@ config NDS32
 
 config NIOS2
 	bool "Nios II architecture"
-	select SUPPORT_OF_CONTROL
-	select OF_CONTROL
-	select DM
 	select CPU
+	select DM
+	select OF_CONTROL
+	select SUPPORT_OF_CONTROL
 
 config PPC
 	bool "PowerPC architecture"
@@ -65,30 +65,30 @@ config RISCV
 config SANDBOX
 	bool "Sandbox"
 	select BOARD_LATE_INIT
-	select SUPPORT_OF_CONTROL
 	select DM
+	select DM_GPIO
+	select DM_I2C
 	select DM_KEYBOARD
-	select DM_SPI_FLASH
+	select DM_MMC
 	select DM_SERIAL
-	select DM_I2C
 	select DM_SPI
-	select DM_GPIO
-	select DM_MMC
+	select DM_SPI_FLASH
 	select HAVE_BLOCK_DEVICE
-	select SPI
 	select LZO
+	select SPI
+	select SUPPORT_OF_CONTROL
 	imply CMD_GETTIME
 	imply CMD_HASH
 	imply CMD_IO
 	imply CMD_IOTRACE
 	imply CMD_LZMADEC
+	imply CMD_SATA
+	imply CMD_SF_TEST
 	imply CRC32_VERIFY
 	imply FAT_WRITE
 	imply HASH_VERIFY
 	imply LZMA
 	imply SCSI
-	imply CMD_SATA
-	imply CMD_SF_TEST
 
 config SH
 	bool "SuperH architecture"
@@ -97,39 +97,39 @@ config SH
 config X86
 	bool "x86 architecture"
 	select CREATE_ARCH_SYMLINK
-	select HAVE_PRIVATE_LIBGCC
-	select USE_PRIVATE_LIBGCC
-	select SUPPORT_OF_CONTROL
-	select OF_CONTROL
 	select DM
 	select DM_PCI
+	select HAVE_PRIVATE_LIBGCC
+	select OF_CONTROL
 	select PCI
+	select SUPPORT_OF_CONTROL
 	select TIMER
+	select USE_PRIVATE_LIBGCC
 	select X86_TSC_TIMER
 	imply BLK
+	imply CMD_FPGA_LOADMK
+	imply CMD_GETTIME
+	imply CMD_IO
+	imply CMD_IRQ
+	imply CMD_PCI
+	imply CMD_SF_TEST
+	imply CMD_ZBOOT
 	imply DM_ETH
 	imply DM_GPIO
 	imply DM_KEYBOARD
 	imply DM_MMC
 	imply DM_RTC
-	imply DM_SERIAL
 	imply DM_SCSI
+	imply DM_SERIAL
 	imply DM_SPI
 	imply DM_SPI_FLASH
 	imply DM_USB
 	imply DM_VIDEO
 	imply SYSRESET
 	imply SYSRESET_X86
-	imply CMD_FPGA_LOADMK
-	imply CMD_GETTIME
-	imply CMD_IO
-	imply CMD_IRQ
-	imply CMD_PCI
-	imply CMD_SF_TEST
-	imply CMD_ZBOOT
-	imply USB_HOST_ETHER
 	imply USB_ETHER_ASIX
 	imply USB_ETHER_SMSC95XX
+	imply USB_HOST_ETHER
 
 config XTENSA
 	bool "Xtensa architecture"
arch/arm/Kconfig +103 -103

624 lines not on this page · raw message

arch/arm/mach-at91/Kconfig +30 -30

171 lines not on this page · raw message

arch/arm/mach-imx/mx5/Kconfig +6 -6
index 3654670442fb..1bb373bf2d1c 100644
@@ -1,14 +1,14 @@
 if ARCH_MX5
 
 config MX5
-	select GPT_TIMER
 	bool
 	default y
+	select GPT_TIMER
 
 config MX51
 	bool
-	select SYS_FSL_ERRATUM_ESDHC_A001
 	select ARM_CORTEX_A8_CVE_2017_5715
+	select SYS_FSL_ERRATUM_ESDHC_A001
 
 config MX53
 	bool
@@ -21,13 +21,13 @@ choice
 config TARGET_KP_IMX53
 	bool "Support K+P imx53 board"
 	select BOARD_LATE_INIT
-	select MX53
 	select DM
-	select DM_SERIAL
 	select DM_ETH
-	select DM_I2C
 	select DM_GPIO
+	select DM_I2C
 	select DM_PMIC
+	select DM_SERIAL
+	select MX53
 
 config TARGET_MX51EVK
 	bool "Support mx51evk"
@@ -41,9 +41,9 @@ config TARGET_MX53ARD
 config TARGET_MX53CX9020
 	bool "Support CX9020"
 	select BOARD_LATE_INIT
-	select MX53
 	select DM
 	select DM_SERIAL
+	select MX53
 
 config TARGET_MX53EVK
 	bool "Support mx53evk"
arch/arm/mach-imx/mx6/Kconfig +79 -79

448 lines not on this page · raw message

arch/arm/mach-imx/mx7/Kconfig +9 -9
index 2a3db860bbcf..f618a7bb9d1f 100644
@@ -2,19 +2,19 @@ if ARCH_MX7
 
 config MX7
 	bool
+	default y
+	select ARCH_SUPPORT_PSCI
+	select CPU_V7_HAS_NONSEC
+	select CPU_V7_HAS_VIRT
 	select ROM_UNIFIED_SECTIONS
 	select SYSCOUNTER_TIMER
-	select CPU_V7_HAS_VIRT
-	select CPU_V7_HAS_NONSEC
-	select ARCH_SUPPORT_PSCI
 	imply CMD_FUSE
-	default y
 
 config MX7D
+	bool
 	select HAS_CAAM
 	select ROM_UNIFIED_SECTIONS
 	imply CMD_FUSE
-	bool
 
 choice
 	prompt "MX7 board select"
@@ -22,31 +22,31 @@ choice
 
 config TARGET_CL_SOM_IMX7
 	bool "CL-SOM-iMX7"
-	select MX7D
 	select DM
 	select DM_THERMAL
+	select MX7D
 	select SUPPORT_SPL
 
 config TARGET_MX7DSABRESD
 	bool "mx7dsabresd"
 	select BOARD_LATE_INIT
-	select MX7D
 	select DM
 	select DM_THERMAL
+	select MX7D
 
 config TARGET_PICO_IMX7D
 	bool "pico-imx7d"
 	select BOARD_LATE_INIT
-	select MX7D
 	select DM
 	select DM_THERMAL
+	select MX7D
 
 config TARGET_WARP7
 	bool "warp7"
 	select BOARD_LATE_INIT
-	select MX7D
 	select DM
 	select DM_THERMAL
+	select MX7D
 
 config TARGET_COLIBRI_IMX7
 	bool "Support Colibri iMX7S/iMX7D modules"
arch/arm/mach-omap2/am33xx/Kconfig +23 -23

167 lines not on this page · raw message

arch/arm/mach-omap2/omap3/Kconfig +10 -10
index 6d714f6cdb2c..9e4227d8266b 100644
@@ -23,10 +23,10 @@ choice
 config TARGET_AM3517_EVM
 	bool "AM3517 EVM"
 	select DM
-	select DM_SERIAL
 	select DM_GPIO
 	select DM_I2C
 	select DM_MMC
+	select DM_SERIAL
 
 config TARGET_MT_VENTOUX
 	bool "TeeJet Mt.Ventoux"
@@ -36,8 +36,8 @@ config TARGET_MT_VENTOUX
 config TARGET_OMAP3_BEAGLE
 	bool "TI OMAP3 BeagleBoard"
 	select DM
-	select DM_SERIAL
 	select DM_GPIO
+	select DM_SERIAL
 	select OMAP3_GPIO_5
 	select OMAP3_GPIO_6
 
@@ -56,21 +56,21 @@ config TARGET_CM_T3517
 config TARGET_DEVKIT8000
 	bool "TimLL OMAP3 Devkit8000"
 	select DM
-	select DM_SERIAL
 	select DM_GPIO
+	select DM_SERIAL
 
 config TARGET_OMAP3_EVM
 	bool "TI OMAP3 EVM"
 	select DM
-	select DM_SERIAL
 	select DM_GPIO
+	select DM_SERIAL
 	select OMAP3_GPIO_3
 
 config TARGET_OMAP3_IGEP00X0
 	bool "IGEP"
 	select DM
-	select DM_SERIAL
 	select DM_GPIO
+	select DM_SERIAL
 	select OMAP3_GPIO_3
 	select OMAP3_GPIO_5
 	select OMAP3_GPIO_6
@@ -78,8 +78,8 @@ config TARGET_OMAP3_IGEP00X0
 config TARGET_OMAP3_OVERO
 	bool "OMAP35xx Gumstix Overo"
 	select DM
-	select DM_SERIAL
 	select DM_GPIO
+	select DM_SERIAL
 	select OMAP3_GPIO_2
 	select OMAP3_GPIO_3
 	select OMAP3_GPIO_4
@@ -89,8 +89,8 @@ config TARGET_OMAP3_OVERO
 config TARGET_OMAP3_ZOOM1
 	bool "TI Zoom1"
 	select DM
-	select DM_SERIAL
 	select DM_GPIO
+	select DM_SERIAL
 
 config TARGET_AM3517_CRANE
 	bool "am3517_crane"
@@ -118,8 +118,8 @@ config TARGET_OMAP3_LOGIC
 	bool "OMAP3 Logic"
 	select BOARD_LATE_INIT
 	select DM
-	select DM_SERIAL
 	select DM_GPIO
+	select DM_SERIAL
 	select OMAP3_GPIO_3
 	select OMAP3_GPIO_4
 	select OMAP3_GPIO_6
@@ -143,14 +143,14 @@ config TARGET_TWISTER
 config TARGET_OMAP3_CAIRO
 	bool "QUIPOS CAIRO"
 	select DM
-	select DM_SERIAL
 	select DM_GPIO
+	select DM_SERIAL
 
 config TARGET_SNIPER
 	bool "LG Optimus Black"
 	select DM
-	select DM_SERIAL
 	select DM_GPIO
+	select DM_SERIAL
 	select OMAP3_GPIO_2
 	select OMAP3_GPIO_3
 	select OMAP3_GPIO_4
arch/arm/mach-rmobile/Kconfig.32 +7 -7
index c0b5b2457cb1..dc517350ee19 100644
@@ -47,25 +47,25 @@ config TARGET_GOSE
 	bool "Gose board"
 	select DM
 	select DM_SERIAL
+	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
-	select SPL_TINY_MEMSET
 
 config TARGET_KOELSCH
 	bool "Koelsch board"
 	select DM
 	select DM_SERIAL
+	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
-	select SPL_TINY_MEMSET
 
 config TARGET_LAGER
 	bool "Lager board"
 	select DM
 	select DM_SERIAL
+	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
-	select SPL_TINY_MEMSET
 
 config TARGET_KZM9G
 	bool "KZM9D board"
@@ -74,33 +74,33 @@ config TARGET_ALT
 	bool "Alt board"
 	select DM
 	select DM_SERIAL
+	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
-	select SPL_TINY_MEMSET
 
 config TARGET_SILK
 	bool "Silk board"
 	select DM
 	select DM_SERIAL
+	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
-	select SPL_TINY_MEMSET
 
 config TARGET_PORTER
 	bool "Porter board"
 	select DM
 	select DM_SERIAL
+	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
-	select SPL_TINY_MEMSET
 
 config TARGET_STOUT
 	bool "Stout board"
 	select DM
 	select DM_SERIAL
+	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
-	select SPL_TINY_MEMSET
 
 endchoice
 
arch/arm/mach-tegra/Kconfig +4 -4
index 0fb0c6339018..cd03705b64c0 100644
@@ -22,6 +22,8 @@ config TEGRA_IVC
 
 config TEGRA_COMMON
 	bool "Tegra common options"
+	select BINMAN
+	select BOARD_EARLY_INIT_F
 	select CLK
 	select DM
 	select DM_ETH
@@ -35,11 +37,9 @@ config TEGRA_COMMON
 	select DM_SPI
 	select DM_SPI_FLASH
 	select MISC
-	select SPI
 	select OF_CONTROL
+	select SPI
 	select VIDCONSOLE_AS_LCD if DM_VIDEO
-	select BOARD_EARLY_INIT_F
-	select BINMAN
 	imply CRC32_VERIFY
 
 config TEGRA_NO_BPMP
@@ -98,8 +98,8 @@ config TEGRA124
 
 config TEGRA210
 	bool "Tegra210 family"
-	select TEGRA_GPIO
 	select TEGRA_ARMV8_COMMON
+	select TEGRA_GPIO
 	select TEGRA_NO_BPMP
 
 config TEGRA186
arch/microblaze/Kconfig +2 -2
index c56459345136..1df1ecf72d19 100644
@@ -11,10 +11,10 @@ choice
 config TARGET_MICROBLAZE_GENERIC
 	bool "Support microblaze-generic"
 	select BOARD_LATE_INIT
-	select SUPPORT_SPL
-	select OF_CONTROL
 	select DM
 	select DM_SERIAL
+	select OF_CONTROL
+	select SUPPORT_SPL
 	select SYSRESET
 
 endchoice
arch/mips/Kconfig +25 -25

136 lines not on this page · raw message

arch/powerpc/cpu/mpc83xx/Kconfig +3 -3
index 05d29d2fd95f..385a7a6e2172 100644
@@ -26,8 +26,8 @@ config TARGET_MPC8308RDB
 
 config TARGET_MPC8313ERDB
 	bool "Support MPC8313ERDB"
-	select SUPPORT_SPL
 	select BOARD_EARLY_INIT_F
+	select SUPPORT_SPL
 
 config TARGET_MPC8315ERDB
 	bool "Support MPC8315ERDB"
@@ -42,10 +42,10 @@ config TARGET_MPC832XEMDS
 
 config TARGET_MPC8349EMDS
 	bool "Support MPC8349EMDS"
+	select BOARD_EARLY_INIT_F
 	select SYS_FSL_DDR
-	select SYS_FSL_HAS_DDR2
 	select SYS_FSL_DDR_BE
-	select BOARD_EARLY_INIT_F
+	select SYS_FSL_HAS_DDR2
 
 config TARGET_MPC8349ITX
 	bool "Support MPC8349ITX"
cmd/Kconfig +7 -7
index b359ac7118b0..e1c45eeb5ce4 100644
@@ -152,8 +152,8 @@ config CMD_BDI
 
 config CMD_CONFIG
 	bool "config"
-	select BUILD_BIN2C
 	default SANDBOX
+	select BUILD_BIN2C
 	help
 	  Print ".config" contents.
 
@@ -429,8 +429,8 @@ config CMD_BINOP
 
 config CMD_CRC32
 	bool "crc32"
-	select HASH
 	default y
+	select HASH
 	help
 	  Compute CRC32.
 
@@ -737,9 +737,9 @@ config CMD_GPIO
 
 config CMD_GPT
 	bool "GPT (GUID Partition Table) command"
-	select PARTITION_UUIDS
 	select EFI_PARTITION
 	select HAVE_BLOCK_DEVICE
+	select PARTITION_UUIDS
 	imply RANDOM_UUID
 	help
 	  Enable the 'gpt' command to ready and write GPT style partition
@@ -899,8 +899,8 @@ config CMD_ONENAND
 
 config CMD_PART
 	bool "part"
-	select PARTITION_UUIDS
 	select HAVE_BLOCK_DEVICE
+	select PARTITION_UUIDS
 	help
 	  Read and display information about the partition table on
 	  various media.
@@ -1797,10 +1797,10 @@ endmenu
 
 config CMD_UBI
 	tristate "Enable UBI - Unsorted block images commands"
+	default y if NAND_SUNXI
+	select CMD_MTDPARTS
 	select CRC32
 	select MTD_UBI
-	select CMD_MTDPARTS
-	default y if NAND_SUNXI
 	help
 	  UBI is a software layer above MTD layer which admits use of LVM-like
 	  logical volumes on top of MTD devices, hides some complexities of
@@ -1812,9 +1812,9 @@ config CMD_UBI
 config CMD_UBIFS
 	tristate "Enable UBIFS - Unsorted block images filesystem commands"
 	depends on CMD_UBI
+	default y if CMD_UBI
 	select CRC32
 	select LZO
-	default y if CMD_UBI
 	help
 	  UBIFS is a file system for flash devices which works on top of UBI.
 
Signature · 1 line
1.9.1
#6 lore raw

PATCH v2 3/5 Kconfig: Sort bool, default, select and imply options

Quoted 4 lines · Michal Simek

Fix Kconfig bool, default, select and imply options to be alphabetically sorted.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180723/9c29e192/attachment.sig>
#7 lore raw

PATCH v2 3/5 Kconfig: Sort bool, default, select and imply options

In reply to Michal Simek
Quoted 5 lines · Michal Simek

Fix Kconfig bool, default, select and imply options to be alphabetically sorted.

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: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180730/2f71af57/attachment.sig>
#8 lore raw

PATCH v2 4/5 dm: Change CMD_DM enabling

In reply to Michal Simek

CMD_DM is used for debug purpose and it shouldn't be enabled by default via Kconfig. Unfortunately this is in the tree for quite a long time that's why solution is to use imply DM for all targets which are enabling DM.

---

Changes in v2:
- sort them

Based on this discussion:
https://lists.denx.de/pipermail/u-boot/2018-July/334952.html

Done by:
for i in git grep "select DM" | grep -v DM_ | cut -d ':' -f 1 | sort | uniq; do

	sed -i 's/select DM$/select DM\n\timply CMD_DM/g' $i;

done

And sort:

And checked by
for i in ls configs/*; do

	NAME=`basename $i`; echo $NAME;
	make $NAME;
	make savedefconfig;
	cp defconfig $i;

done

---
 arch/Kconfig                       |  3 +++
 arch/arm/Kconfig                   | 25 +++++++++++++++++++++++++
 arch/arm/mach-at91/Kconfig         |  6 ++++++
 arch/arm/mach-imx/mx5/Kconfig      |  2 ++
 arch/arm/mach-imx/mx6/Kconfig      | 25 +++++++++++++++++++++++++
 arch/arm/mach-imx/mx7/Kconfig      |  5 +++++
 arch/arm/mach-meson/Kconfig        |  2 ++
 arch/arm/mach-omap2/am33xx/Kconfig | 18 ++++++++++++++++++
 arch/arm/mach-omap2/omap3/Kconfig  | 10 ++++++++++
 arch/arm/mach-rmobile/Kconfig.32   |  8 ++++++++
 arch/arm/mach-tegra/Kconfig        |  1 +
 arch/microblaze/Kconfig            |  1 +
 arch/mips/Kconfig                  |  6 ++++++
 arch/powerpc/cpu/mpc83xx/Kconfig   |  1 +
 cmd/Kconfig                        |  1 -
 15 files changed, 113 insertions(+), 1 deletion(-)
arch/Kconfig +3 -0
index 7967fa50ac22..bf1b4a9afac6 100644
@@ -50,6 +50,7 @@ config NIOS2
 	select DM
 	select OF_CONTROL
 	select SUPPORT_OF_CONTROL
+	imply CMD_DM
 
 config PPC
 	bool "PowerPC architecture"
@@ -77,6 +78,7 @@ config SANDBOX
 	select LZO
 	select SPI
 	select SUPPORT_OF_CONTROL
+	imply CMD_DM
 	imply CMD_GETTIME
 	imply CMD_HASH
 	imply CMD_IO
@@ -107,6 +109,7 @@ config X86
 	select USE_PRIVATE_LIBGCC
 	select X86_TSC_TIMER
 	imply BLK
+	imply CMD_DM
 	imply CMD_FPGA_LOADMK
 	imply CMD_GETTIME
 	imply CMD_IO
arch/arm/Kconfig +25 -0
index 0c43c58ef0ed..6eaaa1f14826 100644
@@ -441,6 +441,7 @@ config ARCH_MVEBU
 	select OF_CONTROL
 	select OF_SEPARATE
 	select SPI
+	imply CMD_DM
 
 config TARGET_DEVKIT3250
 	bool "Support devkit3250"
@@ -499,6 +500,7 @@ config TARGET_STV0991
 	select PL01X_SERIAL
 	select SPI
 	select SPI_FLASH
+	imply CMD_DM
 
 config TARGET_X600
 	bool "Support x600"
@@ -533,6 +535,7 @@ config ARCH_BCM283X
 	select OF_CONTROL
 	select PL01X_SERIAL
 	select SERIAL_SEARCH_ALL
+	imply CMD_DM
 	imply FAT_WRITE
 
 config TARGET_VEXPRESS_CA15_TC2
@@ -548,6 +551,7 @@ config ARCH_BCMSTB
 	select DM
 	select OF_CONTROL
 	select OF_PRIOR_STAGE
+	imply CMD_DM
 	help
 	  This enables support for Broadcom ARM-based set-top box
 	  chipsets, including the 7445 family of chips.
@@ -607,6 +611,7 @@ config ARCH_EXYNOS
 	select DM_SPI
 	select DM_SPI_FLASH
 	select SPI
+	imply CMD_DM
 	imply FAT_WRITE
 
 config ARCH_S5PC1XX
@@ -616,6 +621,7 @@ config ARCH_S5PC1XX
 	select DM_GPIO
 	select DM_I2C
 	select DM_SERIAL
+	imply CMD_DM
 
 config ARCH_HIGHBANK
 	bool "Calxeda Highbank"
@@ -627,6 +633,7 @@ config ARCH_INTEGRATOR
 	select DM
 	select DM_SERIAL
 	select PL01X_SERIAL
+	imply CMD_DM
 
 config ARCH_KEYSTONE
 	bool "TI Keystone"
@@ -660,6 +667,7 @@ config ARCH_MX8M
 	select ARM64
 	select DM
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config ARCH_MX23
 	bool "NXP i.MX23 family"
@@ -724,6 +732,7 @@ config ARCH_OWL
 	select DM
 	select DM_SERIAL
 	select OF_CONTROL
+	imply CMD_DM
 
 config ARCH_QEMU
 	bool "QEMU Virtual Platform"
@@ -731,12 +740,14 @@ config ARCH_QEMU
 	select DM_SERIAL
 	select OF_CONTROL
 	select PL01X_SERIAL
+	imply CMD_DM
 
 config ARCH_RMOBILE
 	bool "Renesas ARM SoCs"
 	select BOARD_EARLY_INIT_F
 	select DM
 	select DM_SERIAL
+	imply CMD_DM
 	imply FAT_WRITE
 	imply SYS_THUMB_BUILD
 
@@ -756,6 +767,7 @@ config ARCH_SNAPDRAGON
 	select OF_SEPARATE
 	select SMEM
 	select SPMI
+	imply CMD_DM
 
 config ARCH_SOCFPGA
 	bool "Altera SOCFPGA family"
@@ -784,6 +796,7 @@ config ARCH_SOCFPGA
 	select SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
 	select SYS_NS16550
 	select SYS_THUMB_BUILD if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
+	imply CMD_DM
 	imply CMD_MTDPARTS
 	imply CRC32_VERIFY
 	imply DM_SPI
@@ -816,6 +829,7 @@ config ARCH_SUNXI
 	select USB_KEYBOARD if DISTRO_DEFAULTS
 	select USB_STORAGE if DISTRO_DEFAULTS
 	select USE_TINY_PRINTF
+	imply CMD_DM
 	imply CMD_GPT
 	imply DISTRO_DEFAULTS
 	imply FAT_WRITE
@@ -861,6 +875,7 @@ config ARCH_ZYNQ
 	select SUPPORT_SPL
 	imply ARCH_EARLY_INIT_R
 	imply CMD_CLK
+	imply CMD_DM
 	imply CMD_SPL
 	imply FAT_WRITE
 
@@ -871,6 +886,7 @@ config ARCH_ZYNQMP_R5
 	select DM
 	select DM_SERIAL
 	select OF_CONTROL
+	imply CMD_DM
 
 config ARCH_ZYNQMP
 	bool "Xilinx ZynqMP based platform"
@@ -884,6 +900,7 @@ config ARCH_ZYNQMP
 	select SPL_BOARD_INIT if SPL
 	select SPL_CLK if SPL
 	select SUPPORT_SPL
+	imply CMD_DM
 	imply FAT_WRITE
 
 config TEGRA
@@ -1010,6 +1027,7 @@ config TARGET_HIKEY
 	select OF_CONTROL
 	select PL01X_SERIAL
 	select SPECIFY_CONSOLE_INDEX
+	imply CMD_DM
 	  help
 	  Support for HiKey 96boards platform. It features a HI6220
 	  SoC, with 8xA53 CPU, mali450 gpu, and 1GB RAM.
@@ -1022,6 +1040,7 @@ config TARGET_POPLAR
 	select DM_USB
 	select OF_CONTROL
 	select PL01X_SERIAL
+	imply CMD_DM
 	  help
 	  Support for Poplar 96boards EE platform. It features a HI3798cv200
 	  SoC, with 4xA53 CPU, 1GB RAM and the high performance Mali T720 GPU
@@ -1233,6 +1252,7 @@ config ARCH_UNIPHIER
 	select SPL_OF_CONTROL if SPL
 	select SPL_PINCTRL if SPL
 	select SUPPORT_SPL
+	imply CMD_DM
 	imply FAT_WRITE
 	help
 	  Support for UniPhier SoC family developed by Socionext Inc.
@@ -1244,6 +1264,7 @@ config STM32
 	select DM
 	select DM_SERIAL
 	select SYS_THUMB_BUILD
+	imply CMD_DM
 
 config ARCH_STI
 	bool "Support STMicrolectronics SoCs"
@@ -1253,6 +1274,7 @@ config ARCH_STI
 	select DM_MMC
 	select DM_RESET
 	select DM_SERIAL
+	imply CMD_DM
 	help
 	  Support for STMicroelectronics STiH407/10 SoC family.
 	  This SoC is used on Linaro 96Board STiH410-B2260
@@ -1275,6 +1297,7 @@ config ARCH_STM32MP
 	select SYSCON
 	select SYSRESET
 	select SYS_THUMB_BUILD
+	imply CMD_DM
 	help
 	  Support for STM32MP SoC family developed by STMicroelectronics,
 	  MPUs based on ARM cortex A core
@@ -1302,6 +1325,7 @@ config ARCH_ROCKCHIP
 	select SYS_MALLOC_F
 	select SYS_THUMB_BUILD if !ARM64
 	imply ADC
+	imply CMD_DM
 	imply DISTRO_DEFAULTS
 	imply FAT_WRITE
 	imply SARADC_ROCKCHIP
@@ -1321,6 +1345,7 @@ config ARCH_ASPEED
 	bool "Support Aspeed SoCs"
 	select DM
 	select OF_CONTROL
+	imply CMD_DM
 
 endchoice
 
arch/arm/mach-at91/Kconfig +6 -0
index 1a56957cf9d1..69856c894285 100644
@@ -78,6 +78,7 @@ config TARGET_SNAPPER9260
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_GURNARD
 	bool "Support gurnard"
@@ -89,6 +90,7 @@ config TARGET_GURNARD
 	select DM_SERIAL
 	select DM_SPI
 	select SPI
+	imply CMD_DM
 
 config TARGET_AT91SAM9261EK
 	bool "Atmel at91sam9261 reference board"
@@ -209,6 +211,7 @@ config TARGET_CORVUS
 	select DM_GPIO
 	select DM_SERIAL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_TAURUS
 	bool "Support taurus"
@@ -220,6 +223,7 @@ config TARGET_TAURUS
 	select DM_SPI
 	select SPI
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_SMARTWEB
 	bool "Support smartweb"
@@ -229,6 +233,7 @@ config TARGET_SMARTWEB
 	select DM_GPIO
 	select DM_SERIAL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_VINCO
 	bool "Support VINCO"
@@ -237,6 +242,7 @@ config TARGET_VINCO
 	select SAMA5D4
 	select SPI
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_WB45N
 	bool "Support Laird WB45N"
arch/arm/mach-imx/mx5/Kconfig +2 -0
index 1bb373bf2d1c..051b15dbff1c 100644
@@ -28,6 +28,7 @@ config TARGET_KP_IMX53
 	select DM_PMIC
 	select DM_SERIAL
 	select MX53
+	imply CMD_DM
 
 config TARGET_MX51EVK
 	bool "Support mx51evk"
@@ -44,6 +45,7 @@ config TARGET_MX53CX9020
 	select DM
 	select DM_SERIAL
 	select MX53
+	imply CMD_DM
 
 config TARGET_MX53EVK
 	bool "Support mx53evk"
arch/arm/mach-imx/mx6/Kconfig +25 -0
index 5cce9ce23c0e..6009a96531ac 100644
@@ -64,6 +64,7 @@ config MX6UL_LITESOM
 	select DM_THERMAL
 	select MX6UL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config MX6UL_OPOS6UL
 	bool
@@ -78,6 +79,7 @@ config MX6UL_OPOS6UL
 	select SPL_PINCTRL if SPL
 	select SPL_SEPARATE_BSS if SPL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config MX6ULL
 	bool
@@ -110,6 +112,7 @@ config TARGET_APALIS_IMX6
 	select DM_SERIAL
 	select DM_THERMAL
 	select SUPPORT_SPL
+	imply CMD_DM
 	imply CMD_SATA
 
 config TARGET_ARISTAINETOS
@@ -130,6 +133,7 @@ config TARGET_CGTQMX6EVAL
 	select DM_THERMAL
 	select MX6QDL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_CM_FX6
 	bool "CM-FX6"
@@ -139,6 +143,7 @@ config TARGET_CM_FX6
 	select DM_SERIAL
 	select MX6QDL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_COLIBRI_IMX6
 	bool "Toradex Colibri iMX6 board"
@@ -147,6 +152,7 @@ config TARGET_COLIBRI_IMX6
 	select DM_SERIAL
 	select DM_THERMAL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_DHCOMIMX6
 	bool "dh_imx6"
@@ -156,6 +162,7 @@ config TARGET_DHCOMIMX6
 	select DM_THERMAL
 	select MX6QDL
 	select SUPPORT_SPL
+	imply CMD_DM
 	imply CMD_SPL
 
 config TARGET_DISPLAY5
@@ -163,6 +170,7 @@ config TARGET_DISPLAY5
 	select DM
 	select DM_SERIAL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_EMBESTMX6BOARDS
 	bool "embestmx6boards"
@@ -208,6 +216,7 @@ config TARGET_MX6LOGICPD
 	select DM_PMIC
 	select DM_REGULATOR
 	select OF_CONTROL
+	imply CMD_DM
 
 config TARGET_MX6MEMCAL
 	bool "mx6memcal"
@@ -250,6 +259,7 @@ config TARGET_MX6DL_MAMOJ
 	select SPL_USB_SDP_SUPPORT if SPL
 	select SPL_WATCHDOG_SUPPORT if SPL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_MX6Q_ENGICAM
 	bool "Support Engicam i.Core(RQS)"
@@ -268,6 +278,7 @@ config TARGET_MX6Q_ENGICAM
 	select SPL_PINCTRL if SPL
 	select SPL_SEPARATE_BSS if SPL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_MX6SABREAUTO
 	bool "mx6sabreauto"
@@ -277,6 +288,7 @@ config TARGET_MX6SABREAUTO
 	select DM_THERMAL
 	select MX6QDL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_MX6SABRESD
 	bool "mx6sabresd"
@@ -286,6 +298,7 @@ config TARGET_MX6SABRESD
 	select DM_THERMAL
 	select MX6QDL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_MX6SLEVK
 	bool "mx6slevk"
@@ -298,6 +311,7 @@ config TARGET_MX6SLLEVK
 	select DM
 	select DM_THERMAL
 	select MX6SLL
+	imply CMD_DM
 
 config TARGET_MX6SXSABRESD
 	bool "mx6sxsabresd"
@@ -315,6 +329,7 @@ config TARGET_MX6SXSABREAUTO
 	select DM
 	select DM_THERMAL
 	select MX6SX
+	imply CMD_DM
 
 config TARGET_MX6UL_9X9_EVK
 	bool "mx6ul_9x9_evk"
@@ -323,6 +338,7 @@ config TARGET_MX6UL_9X9_EVK
 	select DM_THERMAL
 	select MX6UL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_MX6UL_14X14_EVK
 	bool "mx6ul_14x14_evk"
@@ -331,6 +347,7 @@ config TARGET_MX6UL_14X14_EVK
 	select DM_THERMAL
 	select MX6UL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_MX6UL_ENGICAM
 	bool "Support Engicam GEAM6UL/Is.IoT"
@@ -348,6 +365,7 @@ config TARGET_MX6UL_ENGICAM
 	select SPL_PINCTRL if SPL
 	select SPL_SEPARATE_BSS if SPL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_MX6ULL_14X14_EVK
 	bool "Support mx6ull_14x14_evk"
@@ -355,6 +373,7 @@ config TARGET_MX6ULL_14X14_EVK
 	select DM
 	select DM_THERMAL
 	select MX6ULL
+	imply CMD_DM
 
 config TARGET_NITROGEN6X
 	bool "nitrogen6x"
@@ -421,6 +440,7 @@ config TARGET_KP_IMX6Q_TPC
 	select DM_THERMAL
 	select MX6QDL
 	select SUPPORT_SPL
+	imply CMD_DM
 	imply CMD_SPL
 
 config TARGET_TQMA6
@@ -440,6 +460,7 @@ config TARGET_UDOO_NEO
 	select DM_THERMAL
 	select MX6SX
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_SAMTEC_VINING_2000
 	bool "samtec VIN|ING 2000"
@@ -447,6 +468,7 @@ config TARGET_SAMTEC_VINING_2000
 	select DM
 	select DM_THERMAL
 	select MX6SX
+	imply CMD_DM
 
 config TARGET_WANDBOARD
 	bool "wandboard"
@@ -466,6 +488,7 @@ config TARGET_XPRESS
 	select DM_THERMAL
 	select MX6UL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_ZC5202
 	bool "zc5202"
@@ -473,6 +496,7 @@ config TARGET_ZC5202
 	select DM
 	select DM_THERMAL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_ZC5601
 	bool "zc5601"
@@ -480,6 +504,7 @@ config TARGET_ZC5601
 	select DM
 	select DM_THERMAL
 	select SUPPORT_SPL
+	imply CMD_DM
 
 endchoice
 
arch/arm/mach-imx/mx7/Kconfig +5 -0
index f618a7bb9d1f..e75e43dc8ffc 100644
@@ -26,6 +26,7 @@ config TARGET_CL_SOM_IMX7
 	select DM_THERMAL
 	select MX7D
 	select SUPPORT_SPL
+	imply CMD_DM
 
 config TARGET_MX7DSABRESD
 	bool "mx7dsabresd"
@@ -33,6 +34,7 @@ config TARGET_MX7DSABRESD
 	select DM
 	select DM_THERMAL
 	select MX7D
+	imply CMD_DM
 
 config TARGET_PICO_IMX7D
 	bool "pico-imx7d"
@@ -40,6 +42,7 @@ config TARGET_PICO_IMX7D
 	select DM
 	select DM_THERMAL
 	select MX7D
+	imply CMD_DM
 
 config TARGET_WARP7
 	bool "warp7"
@@ -47,6 +50,7 @@ config TARGET_WARP7
 	select DM
 	select DM_THERMAL
 	select MX7D
+	imply CMD_DM
 
 config TARGET_COLIBRI_IMX7
 	bool "Support Colibri iMX7S/iMX7D modules"
@@ -54,6 +58,7 @@ config TARGET_COLIBRI_IMX7
 	select DM
 	select DM_SERIAL
 	select DM_THERMAL
+	imply CMD_DM
 
 endchoice
 
arch/arm/mach-meson/Kconfig +2 -0
index 76622567907b..ee8b1cdcf674 100644
@@ -6,6 +6,7 @@ config MESON_GXBB
 	select CLK
 	select DM
 	select DM_SERIAL
+	imply CMD_DM
 	help
 	  The Amlogic Meson GXBaby (S905) is an ARM SoC with a
 	  quad-core Cortex-A53 CPU and a Mali-450 GPU.
@@ -16,6 +17,7 @@ config MESON_GXL
 	select CLK
 	select DM
 	select DM_SERIAL
+	imply CMD_DM
 	help
 	  The Amlogic Meson GXL (S905X and S905D) is an ARM SoC with a
 	  quad-core Cortex-A53 CPU and a Mali-450 GPU.
arch/arm/mach-omap2/am33xx/Kconfig +18 -0
index 94d9d868f893..3529607479d2 100644
@@ -34,6 +34,7 @@ config TARGET_AM335X_EVM
 	select DM_GPIO
 	select DM_SERIAL
 	select TI_I2C_BOARD_DETECT
+	imply CMD_DM
 	imply SPL_DM
 	imply SPL_DM_SEQ_ALIAS
 	imply SPL_ENV_SUPPORT
@@ -67,6 +68,7 @@ config TARGET_AM335X_BALTOS
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_AM335X_IGEP003X
 	bool "Support am335x_igep003x"
@@ -74,6 +76,7 @@ config TARGET_AM335X_IGEP003X
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_AM335X_SHC
 	bool "Support am335x based shc board from bosch"
@@ -81,6 +84,7 @@ config TARGET_AM335X_SHC
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 	imply CMD_SPL
 
 config TARGET_AM335X_SL50
@@ -89,12 +93,14 @@ config TARGET_AM335X_SL50
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_BAV335X
 	bool "Support bav335x"
 	select BOARD_LATE_INIT
 	select DM
 	select DM_SERIAL
+	imply CMD_DM
 	help
 	  The BAV335x OEM Network Processor integrates all the functions of an
 	  embedded network computer in a small, easy to use SODIMM module which
@@ -118,12 +124,14 @@ config TARGET_CHILIBOARD
 	select BOARD_LATE_INIT
 	select DM
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_CM_T335
 	bool "Support cm_t335"
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_DRACO
 	bool "Support draco"
@@ -131,6 +139,7 @@ config TARGET_DRACO
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_ETAMIN
 	bool "Support etamin"
@@ -138,24 +147,28 @@ config TARGET_ETAMIN
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_PCM051
 	bool "Support pcm051"
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_PENGWYN
 	bool "Support pengwyn"
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_PEPPER
 	bool "Support pepper"
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_PXM2
 	bool "Support pxm2"
@@ -163,6 +176,7 @@ config TARGET_PXM2
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_RASTABAN
 	bool "Support rastaban"
@@ -170,6 +184,7 @@ config TARGET_RASTABAN
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_RUT
 	bool "Support rut"
@@ -177,6 +192,7 @@ config TARGET_RUT
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_THUBAN
 	bool "Support thuban"
@@ -184,11 +200,13 @@ config TARGET_THUBAN
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_PDU001
 	bool "Support PDU001"
 	select DM
 	select DM_SERIAL
+	imply CMD_DM
 	help
 	  Support for PDU001 platform developed by EETS GmbH.
 	  The PDU001 is a processor and display unit developed around
arch/arm/mach-omap2/omap3/Kconfig +10 -0
index 9e4227d8266b..e0d02fb4e59a 100644
@@ -27,6 +27,7 @@ config TARGET_AM3517_EVM
 	select DM_I2C
 	select DM_MMC
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_MT_VENTOUX
 	bool "TeeJet Mt.Ventoux"
@@ -40,6 +41,7 @@ config TARGET_OMAP3_BEAGLE
 	select DM_SERIAL
 	select OMAP3_GPIO_5
 	select OMAP3_GPIO_6
+	imply CMD_DM
 
 config TARGET_CM_T35
 	bool "CompuLab CM-T3530 and CM-T3730 boards"
@@ -58,6 +60,7 @@ config TARGET_DEVKIT8000
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_OMAP3_EVM
 	bool "TI OMAP3 EVM"
@@ -65,6 +68,7 @@ config TARGET_OMAP3_EVM
 	select DM_GPIO
 	select DM_SERIAL
 	select OMAP3_GPIO_3
+	imply CMD_DM
 
 config TARGET_OMAP3_IGEP00X0
 	bool "IGEP"
@@ -74,6 +78,7 @@ config TARGET_OMAP3_IGEP00X0
 	select OMAP3_GPIO_3
 	select OMAP3_GPIO_5
 	select OMAP3_GPIO_6
+	imply CMD_DM
 
 config TARGET_OMAP3_OVERO
 	bool "OMAP35xx Gumstix Overo"
@@ -85,12 +90,14 @@ config TARGET_OMAP3_OVERO
 	select OMAP3_GPIO_4
 	select OMAP3_GPIO_5
 	select OMAP3_GPIO_6
+	imply CMD_DM
 
 config TARGET_OMAP3_ZOOM1
 	bool "TI Zoom1"
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_AM3517_CRANE
 	bool "am3517_crane"
@@ -123,6 +130,7 @@ config TARGET_OMAP3_LOGIC
 	select OMAP3_GPIO_3
 	select OMAP3_GPIO_4
 	select OMAP3_GPIO_6
+	imply CMD_DM
 
 config TARGET_NOKIA_RX51
 	bool "Nokia RX51"
@@ -145,6 +153,7 @@ config TARGET_OMAP3_CAIRO
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	imply CMD_DM
 
 config TARGET_SNIPER
 	bool "LG Optimus Black"
@@ -156,6 +165,7 @@ config TARGET_SNIPER
 	select OMAP3_GPIO_4
 	select OMAP3_GPIO_5
 	select OMAP3_GPIO_6
+	imply CMD_DM
 
 endchoice
 
arch/arm/mach-rmobile/Kconfig.32 +8 -0
index dc517350ee19..c005ce2a286b 100644
@@ -42,6 +42,7 @@ config TARGET_BLANCHE
 	select DM
 	select DM_SERIAL
 	select USE_TINY_PRINTF
+	imply CMD_DM
 
 config TARGET_GOSE
 	bool "Gose board"
@@ -50,6 +51,7 @@ config TARGET_GOSE
 	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
+	imply CMD_DM
 
 config TARGET_KOELSCH
 	bool "Koelsch board"
@@ -58,6 +60,7 @@ config TARGET_KOELSCH
 	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
+	imply CMD_DM
 
 config TARGET_LAGER
 	bool "Lager board"
@@ -66,6 +69,7 @@ config TARGET_LAGER
 	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
+	imply CMD_DM
 
 config TARGET_KZM9G
 	bool "KZM9D board"
@@ -77,6 +81,7 @@ config TARGET_ALT
 	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
+	imply CMD_DM
 
 config TARGET_SILK
 	bool "Silk board"
@@ -85,6 +90,7 @@ config TARGET_SILK
 	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
+	imply CMD_DM
 
 config TARGET_PORTER
 	bool "Porter board"
@@ -93,6 +99,7 @@ config TARGET_PORTER
 	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
+	imply CMD_DM
 
 config TARGET_STOUT
 	bool "Stout board"
@@ -101,6 +108,7 @@ config TARGET_STOUT
 	select SPL_TINY_MEMSET
 	select SUPPORT_SPL
 	select USE_TINY_PRINTF
+	imply CMD_DM
 
 endchoice
 
arch/arm/mach-tegra/Kconfig +1 -0
index cd03705b64c0..86b1cd11f752 100644
@@ -40,6 +40,7 @@ config TEGRA_COMMON
 	select OF_CONTROL
 	select SPI
 	select VIDCONSOLE_AS_LCD if DM_VIDEO
+	imply CMD_DM
 	imply CRC32_VERIFY
 
 config TEGRA_NO_BPMP
arch/microblaze/Kconfig +1 -0
index 1df1ecf72d19..5cc68d63c4f7 100644
@@ -16,6 +16,7 @@ config TARGET_MICROBLAZE_GENERIC
 	select OF_CONTROL
 	select SUPPORT_SPL
 	select SYSRESET
+	imply CMD_DM
 
 endchoice
 
arch/mips/Kconfig +6 -0
index 315d89dbeb3f..31b622ff5108 100644
@@ -42,6 +42,7 @@ config TARGET_MALTA
 	select SUPPORTS_CPU_MIPS64_R6
 	select SUPPORTS_LITTLE_ENDIAN
 	select SWAP_IO_SPACE
+	imply CMD_DM
 
 config TARGET_VCT
 	bool "Support vct"
@@ -74,6 +75,7 @@ config ARCH_ATH79
 	bool "Support QCA/Atheros ath79"
 	select DM
 	select OF_CONTROL
+	imply CMD_DM
 
 config ARCH_BMIPS
 	bool "Support BMIPS SoCs"
@@ -83,11 +85,13 @@ config ARCH_BMIPS
 	select OF_CONTROL
 	select RAM
 	select SYSRESET
+	imply CMD_DM
 
 config MACH_PIC32
 	bool "Support Microchip PIC32"
 	select DM
 	select OF_CONTROL
+	imply CMD_DM
 
 config TARGET_BOSTON
 	bool "Support Boston"
@@ -107,6 +111,7 @@ config TARGET_BOSTON
 	select SUPPORTS_CPU_MIPS64_R2
 	select SUPPORTS_CPU_MIPS64_R6
 	select SUPPORTS_LITTLE_ENDIAN
+	imply CMD_DM
 
 config TARGET_XILFPGA
 	bool "Support Imagination Xilfpga"
@@ -120,6 +125,7 @@ config TARGET_XILFPGA
 	select SUPPORTS_CPU_MIPS32_R1
 	select SUPPORTS_CPU_MIPS32_R2
 	select SUPPORTS_LITTLE_ENDIAN
+	imply CMD_DM
 	help
 	  This supports IMGTEC MIPSfpga platform
 
arch/powerpc/cpu/mpc83xx/Kconfig +1 -0
index 385a7a6e2172..571cf8fc2ef8 100644
@@ -64,6 +64,7 @@ config TARGET_MPC837XERDB
 config TARGET_IDS8313
 	bool "Support ids8313"
 	select DM
+	imply CMD_DM
 
 config TARGET_KM8360
 	bool "Support km8360"
cmd/Kconfig +0 -1
index e1c45eeb5ce4..6394c3c8e179 100644
@@ -640,7 +640,6 @@ config CMD_DFU
 config CMD_DM
 	bool "dm - Access to driver model information"
 	depends on DM
-	default y
 	help
 	  Provides access to driver model data structures and information,
 	  such as a list of devices, list of uclasses and the state of each
Signature · 1 line
1.9.1
#9 lore raw

PATCH v2 4/5 dm: Change CMD_DM enabling

Quoted 6 lines · Michal Simek

CMD_DM is used for debug purpose and it shouldn't be enabled by default via Kconfig. Unfortunately this is in the tree for quite a long time that's why solution is to use imply DM for all targets which are enabling DM.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180723/80c6a72c/attachment.sig>
#11 lore raw

PATCH v2 4/5 dm: Change CMD_DM enabling

In reply to Michal Simek
Quoted 8 lines · Michal Simek

CMD_DM is used for debug purpose and it shouldn't be enabled by default via Kconfig. Unfortunately this is in the tree for quite a long time that's why solution is to use imply DM for all targets which are enabling DM.

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: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180730/d1ec924e/attachment.sig>
#12 lore raw

PATCH v2 5/5 Kconfig: Sort bool, default, select and imply options

In reply to Michal Simek

Another round of sorting Kconfig entries aplhabetically.

---

Changes in v2: None

 Kconfig                               | 22 ++++++++++-----------
 arch/arc/Kconfig                      | 10 +++++-----
 arch/arm/cpu/armv7/ls102xa/Kconfig    | 10 +++++-----
 arch/arm/cpu/armv8/Kconfig            |  4 ++--
 arch/arm/mach-davinci/Kconfig         |  4 ++--
 arch/arm/mach-exynos/Kconfig          | 30 ++++++++++++++---------------
 arch/arm/mach-imx/mx3/Kconfig         |  2 +-
 arch/arm/mach-mvebu/Kconfig           |  6 +++---
 arch/arm/mach-omap2/Kconfig           |  6 +++---
 arch/arm/mach-omap2/omap5/Kconfig     | 12 ++++++------
 arch/arm/mach-qemu/Kconfig            |  2 +-
 arch/arm/mach-rockchip/rk3288/Kconfig | 20 +++++++++----------
 arch/arm/mach-socfpga/Kconfig         |  4 ++--
 arch/arm/mach-stm32/Kconfig           | 20 +++++++++----------
 arch/arm/mach-tegra/tegra124/Kconfig  |  4 ++--
 arch/arm/mach-uniphier/Kconfig        |  8 ++++----
 arch/mips/mach-ath79/Kconfig          | 10 +++++-----
 arch/mips/mach-bmips/Kconfig          | 36 +++++++++++++++++------------------
 arch/mips/mach-pic32/Kconfig          |  6 +++---
 arch/powerpc/Kconfig                  |  2 +-
 20 files changed, 109 insertions(+), 109 deletions(-)
Kconfig +11 -11
index c8b86cd3843d..62235cae96cf 100644
@@ -68,25 +68,25 @@ config CC_COVERAGE
 
 config DISTRO_DEFAULTS
 	bool "Select defaults suitable for booting general purpose Linux distributions"
-	imply USE_BOOTCOMMAND
-	select CMD_BOOTZ if ARM && !ARM64
+	select AUTO_COMPLETE
+	select CMDLINE_EDITING
 	select CMD_BOOTI if ARM64
+	select CMD_BOOTZ if ARM && !ARM64
 	select CMD_DHCP if CMD_NET
-	select CMD_PING if CMD_NET
-	select CMD_PXE if NET
 	select CMD_ENV_EXISTS
 	select CMD_EXT2
 	select CMD_EXT4
 	select CMD_FAT
 	select CMD_FS_GENERIC
-	imply CMD_MII if NET
 	select CMD_PART if PARTITIONS
+	select CMD_PING if CMD_NET
+	select CMD_PXE if NET
+	select ENV_VARS_UBOOT_CONFIG
 	select HUSH_PARSER
-	select CMDLINE_EDITING
-	select AUTO_COMPLETE
-	select SYS_LONGHELP
 	select SUPPORT_RAW_INITRD
-	select ENV_VARS_UBOOT_CONFIG
+	select SYS_LONGHELP
+	imply CMD_MII if NET
+	imply USE_BOOTCOMMAND
 	help
 	  Select this to enable various options and commands which are suitable
 	  for building u-boot for booting general purpose Linux distributions.
@@ -237,8 +237,8 @@ if FIT
 
 config FIT_ENABLE_SHA256_SUPPORT
 	bool "Support SHA256 checksum of FIT image contents"
-	select SHA256
 	default y
+	select SHA256
 	help
 	  Enable this to support SHA256 checksum of FIT image contents. A
 	  SHA256 checksum is a 256-bit (32-byte) hash value used to check that
@@ -252,8 +252,8 @@ config FIT_ENABLE_SHA256_SUPPORT
 config FIT_SIGNATURE
 	bool "Enable signature verification of FIT uImages"
 	depends on DM
-	select RSA
 	select HASH
+	select RSA
 	help
 	  This option enables signature verification of FIT uImages,
 	  using a hash signed and verified using RSA. If
arch/arc/Kconfig +5 -5
index 6f139d5bdc52..d59aa3ae291e 100644
@@ -31,36 +31,36 @@ choice
 
 config CPU_ARC750D
 	bool "ARC 750D"
-	select ARC_MMU_V2
 	depends on ISA_ARCOMPACT
+	select ARC_MMU_V2
 	help
 	  Choose this option to build an U-Boot for ARC750D CPU.
 
 config CPU_ARC770D
 	bool "ARC 770D"
-	select ARC_MMU_V3
 	depends on ISA_ARCOMPACT
+	select ARC_MMU_V3
 	help
 	  Choose this option to build an U-Boot for ARC770D CPU.
 
 config CPU_ARCEM6
 	bool "ARC EM6"
-	select ARC_MMU_ABSENT
 	depends on ISA_ARCV2
+	select ARC_MMU_ABSENT
 	help
 	  Next Generation ARC Core based on ISA-v2 ISA without MMU.
 
 config CPU_ARCHS36
 	bool "ARC HS36"
-	select ARC_MMU_ABSENT
 	depends on ISA_ARCV2
+	select ARC_MMU_ABSENT
 	help
 	  Next Generation ARC Core based on ISA-v2 ISA without MMU.
 
 config CPU_ARCHS38
 	bool "ARC HS38"
-	select ARC_MMU_V4
 	depends on ISA_ARCV2
+	select ARC_MMU_V4
 	help
 	  Next Generation ARC Core based on ISA-v2 ISA with MMU.
 
arch/arm/cpu/armv7/ls102xa/Kconfig +5 -5
index 635358e32838..5d6a711c140c 100644
@@ -1,5 +1,7 @@
 config ARCH_LS1021A
 	bool
+	select SYS_FSL_DDR_BE if SYS_FSL_DDR
+	select SYS_FSL_DDR_VER_50 if SYS_FSL_DDR
 	select SYS_FSL_ERRATUM_A008378
 	select SYS_FSL_ERRATUM_A008407
 	select SYS_FSL_ERRATUM_A008997
@@ -10,18 +12,16 @@ config ARCH_LS1021A
 	select SYS_FSL_ERRATUM_A009942
 	select SYS_FSL_ERRATUM_A010315
 	select SYS_FSL_HAS_CCI400
-	select SYS_FSL_SRDS_1
-	select SYS_HAS_SERDES
-	select SYS_FSL_DDR_BE if SYS_FSL_DDR
-	select SYS_FSL_DDR_VER_50 if SYS_FSL_DDR
 	select SYS_FSL_HAS_DDR3 if SYS_FSL_DDR
 	select SYS_FSL_HAS_DDR4 if SYS_FSL_DDR
 	select SYS_FSL_HAS_SEC
 	select SYS_FSL_SEC_COMPAT_5
 	select SYS_FSL_SEC_LE
+	select SYS_FSL_SRDS_1
+	select SYS_HAS_SERDES
+	imply CMD_PCI
 	imply SCSI
 	imply SCSI_AHCI
-	imply CMD_PCI
 
 menu "LS102xA architecture"
 	depends on ARCH_LS1021A
arch/arm/cpu/armv8/Kconfig +2 -2
index 22d2f295487c..741e15c77378 100644
@@ -44,8 +44,8 @@ config ARMV8_SPIN_TABLE
 menu "ARMv8 secure monitor firmware"
 config ARMV8_SEC_FIRMWARE_SUPPORT
 	bool "Enable ARMv8 secure monitor firmware framework support"
-	select OF_LIBFDT
 	select FIT
+	select OF_LIBFDT
 	help
 	  This framework is aimed at making secure monitor firmware load
 	  process brief.
@@ -60,8 +60,8 @@ config ARMV8_SEC_FIRMWARE_SUPPORT
 
 config SPL_ARMV8_SEC_FIRMWARE_SUPPORT
 	bool "Enable ARMv8 secure monitor firmware framework support for SPL"
-	select SPL_OF_LIBFDT
 	select SPL_FIT
+	select SPL_OF_LIBFDT
 	help
 	  Say Y here to support this framework in SPL phase.
 
arch/arm/mach-davinci/Kconfig +2 -2
index 5e7baba3fe49..12b1e682e6a2 100644
@@ -18,9 +18,9 @@ config TARGET_DA850EVM
 
 config TARGET_EA20
 	bool "EA20 board"
+	select BOARD_LATE_INIT
 	select MACH_DAVINCI_DA850_EVM
 	select SOC_DA850
-	select BOARD_LATE_INIT
 
 config TARGET_OMAPL138_LCDK
 	bool "OMAPL138 LCDK"
@@ -57,8 +57,8 @@ config SOC_DA850
 
 config SOC_DA8XX
 	bool
-	select SYS_DA850_PLL_INIT if SUPPORT_SPL || DA850_LOWLEVEL
 	select SYS_DA850_DDR_INIT if SUPPORT_SPL || DA850_LOWLEVEL
+	select SYS_DA850_PLL_INIT if SUPPORT_SPL || DA850_LOWLEVEL
 
 config MACH_DAVINCI_DA850_EVM
 	bool
arch/arm/mach-exynos/Kconfig +15 -15
index 65d9168ae2f3..ed04369cfae3 100644
@@ -6,8 +6,8 @@ choice
 
 config ARCH_EXYNOS4
 	bool "Exynos4 SoC family"
-	select CPU_V7A
 	select BOARD_EARLY_INIT_F
+	select CPU_V7A
 	help
 	  Samsung Exynos4 SoC family are based on ARM Cortex-A9 CPU. There
 	  are multiple SoCs in this family including Exynos4210, Exynos4412,
@@ -15,14 +15,14 @@ config ARCH_EXYNOS4
 
 config ARCH_EXYNOS5
 	bool "Exynos5 SoC family"
-	select CPU_V7A
 	select BOARD_EARLY_INIT_F
+	select CPU_V7A
 	select SHA_HW_ACCEL
-	imply CRC32_VERIFY
 	imply CMD_HASH
+	imply CRC32_VERIFY
 	imply HASH_VERIFY
-	imply USB_ETHER_RTL8152
 	imply USB_ETHER_ASIX
+	imply USB_ETHER_RTL8152
 	imply USB_ETHER_SMSC95XX
 	help
 	  Samsung Exynos5 SoC family are based on ARM Cortex-A15 CPU (and
@@ -46,9 +46,9 @@ choice
 	prompt "EXYNOS4 board select"
 
 config TARGET_SMDKV310
-	select SUPPORT_SPL
 	bool "Exynos4210 SMDKV310 board"
 	select OF_CONTROL
+	select SUPPORT_SPL
 
 config TARGET_TRATS
 	bool "Exynos4210 Trats board"
@@ -93,39 +93,39 @@ config TARGET_ARNDALE
 	select ARM_ERRATA_774769
 	select CPU_V7_HAS_NONSEC
 	select CPU_V7_HAS_VIRT
-	select SUPPORT_SPL
 	select OF_CONTROL
+	select SUPPORT_SPL
 
 config TARGET_SMDK5250
 	bool "SMDK5250 board"
-	select SUPPORT_SPL
 	select OF_CONTROL
+	select SUPPORT_SPL
 
 config TARGET_SNOW
 	bool "Snow board"
-	select SUPPORT_SPL
 	select OF_CONTROL
+	select SUPPORT_SPL
 
 config TARGET_SPRING
 	bool "Spring board"
-	select SUPPORT_SPL
 	select OF_CONTROL
 	select SPL_DISABLE_OF_CONTROL
+	select SUPPORT_SPL
 
 config TARGET_SMDK5420
 	bool "SMDK5420 board"
-	select SUPPORT_SPL
 	select OF_CONTROL
+	select SUPPORT_SPL
 
 config TARGET_PEACH_PI
 	bool "Peach Pi board"
-	select SUPPORT_SPL
 	select OF_CONTROL
+	select SUPPORT_SPL
 
 config TARGET_PEACH_PIT
 	bool "Peach Pit board"
-	select SUPPORT_SPL
 	select OF_CONTROL
+	select SUPPORT_SPL
 
 endchoice
 endif
@@ -139,12 +139,12 @@ config  TARGET_ESPRESSO7420
 	bool "ESPRESSO7420 board"
 	select ARM64
 	select ARMV8_MULTIENTRY
-	select SUPPORT_SPL
+	select CLK_EXYNOS
 	select OF_CONTROL
-	select SPL_DISABLE_OF_CONTROL
 	select PINCTRL
 	select PINCTRL_EXYNOS7420
-	select CLK_EXYNOS
+	select SPL_DISABLE_OF_CONTROL
+	select SUPPORT_SPL
 
 endchoice
 endif
arch/arm/mach-imx/mx3/Kconfig +1 -1
index 6cc970fc4992..5028d5ea568a 100644
@@ -9,9 +9,9 @@ choice
 
 config TARGET_MX31PDK
 	bool "Support the i.MX31 PDK board from Freescale/NXP"
+	select BOARD_EARLY_INIT_F
 	select BOARD_LATE_INIT
 	select SUPPORT_SPL
-	select BOARD_EARLY_INIT_F
 
 endchoice
 
arch/arm/mach-mvebu/Kconfig +3 -3
index 5415b5a7bfe2..3df124c6a8ad 100644
@@ -6,14 +6,14 @@ config HAVE_MVEBU_EFUSE
 
 config ARMADA_32BIT
 	bool
+	select ARCH_MISC_INIT
+	select BOARD_EARLY_INIT_F
 	select CPU_V7A
-	select SUPPORT_SPL
 	select SPL_DM
 	select SPL_DM_SEQ_ALIAS
 	select SPL_OF_CONTROL
 	select SPL_SIMPLE_BUS
-	select BOARD_EARLY_INIT_F
-	select ARCH_MISC_INIT
+	select SUPPORT_SPL
 
 config ARMADA_64BIT
 	bool
arch/arm/mach-omap2/Kconfig +3 -3
index f4babc8d2600..76a19064c9b1 100644
@@ -6,11 +6,11 @@ choice
 
 config OMAP34XX
 	bool "OMAP34XX SoC"
+	select ARM_CORTEX_A8_CVE_2017_5715
 	select ARM_ERRATA_430973
 	select ARM_ERRATA_454179
 	select ARM_ERRATA_621766
 	select ARM_ERRATA_725233
-	select ARM_CORTEX_A8_CVE_2017_5715
 	select USE_TINY_PRINTF
 	imply NAND_OMAP_GPMC
 	imply SPL_EXT_SUPPORT
@@ -52,9 +52,9 @@ config OMAP44XX
 
 config OMAP54XX
 	bool "OMAP54XX SoC"
+	select ARM_CORTEX_A15_CVE_2017_5715
 	select ARM_ERRATA_798870
 	select SYS_THUMB_BUILD
-	select ARM_CORTEX_A15_CVE_2017_5715
 	imply NAND_OMAP_ELM
 	imply NAND_OMAP_GPMC
 	imply SPL_DISPLAY_PRINT
@@ -116,8 +116,8 @@ config AM43XX
 
 config AM33XX
 	bool "AM33XX SoC"
-	select SPECIFY_CONSOLE_INDEX
 	select ARM_CORTEX_A8_CVE_2017_5715
+	select SPECIFY_CONSOLE_INDEX
 	imply NAND_OMAP_ELM
 	imply NAND_OMAP_GPMC
 	imply SPL_NAND_AM33XX_BCH
arch/arm/mach-omap2/omap5/Kconfig +6 -6
index deb9873cc537..f083a4a385c5 100644
@@ -23,26 +23,26 @@ config TARGET_DRA7XX_EVM
 	bool "TI DRA7XX"
 	select BOARD_LATE_INIT
 	select DRA7XX
-	select TI_I2C_BOARD_DETECT
 	select PHYS_64BIT
-	imply SCSI
+	select TI_I2C_BOARD_DETECT
 	imply DM_PMIC
-	imply PMIC_LP87565
 	imply DM_REGULATOR
 	imply DM_REGULATOR_LP87565
-	imply SPL_THERMAL
 	imply DM_THERMAL
+	imply PMIC_LP87565
+	imply SCSI
+	imply SPL_THERMAL
 	imply TI_DRA7_THERMAL
 
 config TARGET_AM57XX_EVM
 	bool "AM57XX"
 	select BOARD_LATE_INIT
+	select CMD_DDR3
 	select DRA7XX
 	select TI_I2C_BOARD_DETECT
-	select CMD_DDR3
+	imply DM_THERMAL
 	imply SCSI
 	imply SPL_THERMAL
-	imply DM_THERMAL
 	imply TI_DRA7_THERMAL
 
 endchoice
arch/arm/mach-qemu/Kconfig +1 -1
index 726f8a7d3140..a2e4b98b8887 100644
@@ -14,8 +14,8 @@ endif
 config TARGET_QEMU_ARM_32BIT
 	bool "Support qemu_arm"
 	depends on ARCH_QEMU
-	select CPU_V7A
 	select ARCH_SUPPORT_PSCI
+	select CPU_V7A
 	select SYS_ARCH_TIMER
 
 config TARGET_QEMU_ARM_64BIT
arch/arm/mach-rockchip/rk3288/Kconfig +10 -10
index 6beb26fd7a68..b5447e5b6587 100644
@@ -87,22 +87,22 @@ config TARGET_POPMETAL_RK3288
 config TARGET_VYASA_RK3288
 	bool "Vyasa-RK3288"
 	select BOARD_LATE_INIT
-	select TPL
+	select ROCKCHIP_BROM_HELPER
 	select SUPPORT_TPL
-	select TPL_DM
-	select TPL_REGMAP
-	select TPL_SYSCON
-	select TPL_CLK
-	select TPL_RAM
-	select TPL_OF_PLATDATA
-	select TPL_OF_CONTROL
+	select TPL
 	select TPL_BOOTROM_SUPPORT
-	select TPL_NEEDS_SEPARATE_TEXT_BASE if SPL
-	select ROCKCHIP_BROM_HELPER
+	select TPL_CLK
+	select TPL_DM
 	select TPL_DRIVERS_MISC_SUPPORT
 	select TPL_LIBCOMMON_SUPPORT
 	select TPL_LIBGENERIC_SUPPORT
+	select TPL_NEEDS_SEPARATE_TEXT_BASE if SPL
+	select TPL_OF_CONTROL
+	select TPL_OF_PLATDATA
+	select TPL_RAM
+	select TPL_REGMAP
 	select TPL_SERIAL_SUPPORT
+	select TPL_SYSCON
 	help
 	  Vyasa is a RK3288-based development board with 2 USB ports,
 	  HDMI, VGA, micro-SD card, audio, WiFi  and Gigabit Ethernet, It
arch/arm/mach-socfpga/Kconfig +2 -2
index 91ea742f3b10..5c1df2cf1f81 100644
@@ -9,8 +9,8 @@ config TARGET_SOCFPGA_ARRIA5
 
 config TARGET_SOCFPGA_ARRIA10
 	bool
-	select SPL_BOARD_INIT if SPL
 	select ALTERA_SDRAM
+	select SPL_BOARD_INIT if SPL
 
 config TARGET_SOCFPGA_CYCLONE5
 	bool
@@ -23,8 +23,8 @@ config TARGET_SOCFPGA_GEN5
 config TARGET_SOCFPGA_STRATIX10
 	bool
 	select ARMV8_MULTIENTRY
-	select ARMV8_SPIN_TABLE
 	select ARMV8_SET_SMPEN
+	select ARMV8_SPIN_TABLE
 
 choice
 	prompt "Altera SOCFPGA board select"
arch/arm/mach-stm32/Kconfig +10 -10
index a45f3fd77a75..cea5ee2ce54a 100644
@@ -9,9 +9,9 @@ config STM32F4
 	select PINCTRL
 	select PINCTRL_STM32
 	select RAM
-	select STM32_SDRAM
 	select STM32_RCC
 	select STM32_RESET
+	select STM32_SDRAM
 	select STM32_SERIAL
 	select STM32_TIMER
 	select TIMER
@@ -25,13 +25,6 @@ config STM32F7
 	select PINCTRL
 	select PINCTRL_STM32
 	select RAM
-	select STM32_SDRAM
-	select STM32_RCC
-	select STM32_RESET
-	select STM32_SERIAL
-	select STM32_TIMER
-	select TIMER
-	select SUPPORT_SPL
 	select SPL
 	select SPL_BOARD_INIT
 	select SPL_CLK
@@ -46,13 +39,20 @@ config STM32F7
 	select SPL_OF_CONTROL
 	select SPL_OF_LIBFDT
 	select SPL_OF_TRANSLATE
-	imply SPL_OS_BOOT
 	select SPL_PINCTRL
 	select SPL_RAM
 	select SPL_SERIAL_SUPPORT
 	select SPL_SYS_MALLOC_SIMPLE
 	select SPL_TIMER
 	select SPL_XIP_SUPPORT
+	select STM32_RCC
+	select STM32_RESET
+	select STM32_SDRAM
+	select STM32_SERIAL
+	select STM32_TIMER
+	select SUPPORT_SPL
+	select TIMER
+	imply SPL_OS_BOOT
 
 config STM32H7
 	bool "stm32h7 family"
@@ -64,9 +64,9 @@ config STM32H7
 	select PINCTRL_STM32
 	select RAM
 	select REGMAP
-	select STM32_SDRAM
 	select STM32_RCC
 	select STM32_RESET
+	select STM32_SDRAM
 	select STM32_SERIAL
 	select STM32_TIMER
 	select SYSCON
arch/arm/mach-tegra/tegra124/Kconfig +2 -2
index a07add68fd20..6fa31ea0a16c 100644
@@ -6,16 +6,16 @@ choice
 
 config TARGET_APALIS_TK1
 	bool "Toradex Apalis TK1 module"
+	select ARCH_SUPPORT_PSCI
 	select CPU_V7_HAS_NONSEC
 	select CPU_V7_HAS_VIRT
-	select ARCH_SUPPORT_PSCI
 
 config TARGET_JETSON_TK1
 	bool "NVIDIA Tegra124 Jetson TK1 board"
+	select ARCH_SUPPORT_PSCI
 	select BOARD_LATE_INIT
 	select CPU_V7_HAS_NONSEC
 	select CPU_V7_HAS_VIRT
-	select ARCH_SUPPORT_PSCI
 
 config TARGET_CEI_TK1_SOM
 	bool "Colorado Engineering Inc Tegra124 TK1-som board"
arch/arm/mach-uniphier/Kconfig +4 -4
index 91bea776e6cb..bfb445a60296 100644
@@ -5,10 +5,10 @@ config SYS_CONFIG_NAME
 
 config ARCH_UNIPHIER_32BIT
 	bool
+	select ARCH_SUPPORT_PSCI
+	select ARMV7_NONSEC
 	select CPU_V7A
 	select CPU_V7_HAS_NONSEC
-	select ARMV7_NONSEC
-	select ARCH_SUPPORT_PSCI
 
 choice
         prompt "UniPhier SoC select"
@@ -68,8 +68,8 @@ config ARCH_UNIPHIER_LD11
 config ARCH_UNIPHIER_LD20
 	bool "Enable UniPhier LD20 SoC support"
 	depends on ARCH_UNIPHIER_V8_MULTI
-	select OF_BOARD_SETUP
 	default y
+	select OF_BOARD_SETUP
 
 config ARCH_UNIPHIER_PXS3
 	bool "Enable UniPhier PXs3 SoC support"
@@ -79,8 +79,8 @@ config ARCH_UNIPHIER_PXS3
 config CACHE_UNIPHIER
 	bool "Enable the UniPhier L2 cache controller"
 	depends on ARCH_UNIPHIER_32BIT
-	select SYS_CACHE_SHIFT_7
 	default y
+	select SYS_CACHE_SHIFT_7
 	help
 	  This option allows to use the UniPhier System Cache as L2 cache.
 
arch/mips/mach-ath79/Kconfig +5 -5
index d982b0f8e697..bc86f591df83 100644
@@ -6,30 +6,30 @@ config SYS_SOC
 
 config SOC_AR933X
 	bool
+	select MIPS_TUNE_24KC
+	select ROM_EXCEPTION_VECTORS
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
 	select SUPPORTS_CPU_MIPS32_R2
-	select ROM_EXCEPTION_VECTORS
-	select MIPS_TUNE_24KC
 	help
 	  This supports QCA/Atheros ar933x family SOCs.
 
 config SOC_AR934X
 	bool
+	select MIPS_TUNE_74KC
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
 	select SUPPORTS_CPU_MIPS32_R2
-	select MIPS_TUNE_74KC
 	help
 	  This supports QCA/Atheros ar934x family SOCs.
 
 config SOC_QCA953X
 	bool
+	select MIPS_TUNE_24KC
+	select ROM_EXCEPTION_VECTORS
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
 	select SUPPORTS_CPU_MIPS32_R2
-	select ROM_EXCEPTION_VECTORS
-	select MIPS_TUNE_24KC
 	help
 	  This supports QCA/Atheros qca953x family SOCs.
 
arch/mips/mach-bmips/Kconfig +18 -18
index 10900bf6045a..5968d5345ed7 100644
@@ -20,10 +20,10 @@ choice
 
 config SOC_BMIPS_BCM3380
 	bool "BMIPS BCM3380 family"
+	select MIPS_L1_CACHE_SHIFT_4
+	select MIPS_TUNE_4KC
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
-	select MIPS_TUNE_4KC
-	select MIPS_L1_CACHE_SHIFT_4
 	select SWAP_IO_SPACE
 	select SYSRESET_WATCHDOG
 	help
@@ -31,10 +31,10 @@ config SOC_BMIPS_BCM3380
 
 config SOC_BMIPS_BCM6318
 	bool "BMIPS BCM6318 family"
+	select MIPS_L1_CACHE_SHIFT_4
+	select MIPS_TUNE_4KC
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
-	select MIPS_TUNE_4KC
-	select MIPS_L1_CACHE_SHIFT_4
 	select SWAP_IO_SPACE
 	select SYSRESET_SYSCON
 	help
@@ -42,10 +42,10 @@ config SOC_BMIPS_BCM6318
 
 config SOC_BMIPS_BCM6328
 	bool "BMIPS BCM6328 family"
+	select MIPS_L1_CACHE_SHIFT_4
+	select MIPS_TUNE_4KC
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
-	select MIPS_TUNE_4KC
-	select MIPS_L1_CACHE_SHIFT_4
 	select SWAP_IO_SPACE
 	select SYSRESET_SYSCON
 	help
@@ -53,10 +53,10 @@ config SOC_BMIPS_BCM6328
 
 config SOC_BMIPS_BCM6338
 	bool "BMIPS BCM6338 family"
+	select MIPS_L1_CACHE_SHIFT_4
+	select MIPS_TUNE_4KC
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
-	select MIPS_TUNE_4KC
-	select MIPS_L1_CACHE_SHIFT_4
 	select SWAP_IO_SPACE
 	select SYSRESET_SYSCON
 	help
@@ -64,10 +64,10 @@ config SOC_BMIPS_BCM6338
 
 config SOC_BMIPS_BCM6348
 	bool "BMIPS BCM6348 family"
+	select MIPS_L1_CACHE_SHIFT_4
+	select MIPS_TUNE_4KC
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
-	select MIPS_TUNE_4KC
-	select MIPS_L1_CACHE_SHIFT_4
 	select SWAP_IO_SPACE
 	select SYSRESET_WATCHDOG
 	help
@@ -75,10 +75,10 @@ config SOC_BMIPS_BCM6348
 
 config SOC_BMIPS_BCM6358
 	bool "BMIPS BCM6358 family"
+	select MIPS_L1_CACHE_SHIFT_4
+	select MIPS_TUNE_4KC
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
-	select MIPS_TUNE_4KC
-	select MIPS_L1_CACHE_SHIFT_4
 	select SWAP_IO_SPACE
 	select SYSRESET_SYSCON
 	help
@@ -86,10 +86,10 @@ config SOC_BMIPS_BCM6358
 
 config SOC_BMIPS_BCM6368
 	bool "BMIPS BCM6368 family"
+	select MIPS_L1_CACHE_SHIFT_4
+	select MIPS_TUNE_4KC
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
-	select MIPS_TUNE_4KC
-	select MIPS_L1_CACHE_SHIFT_4
 	select SWAP_IO_SPACE
 	select SYSRESET_SYSCON
 	help
@@ -97,10 +97,10 @@ config SOC_BMIPS_BCM6368
 
 config SOC_BMIPS_BCM6362
 	bool "BMIPS BCM6362 family"
+	select MIPS_L1_CACHE_SHIFT_4
+	select MIPS_TUNE_4KC
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
-	select MIPS_TUNE_4KC
-	select MIPS_L1_CACHE_SHIFT_4
 	select SWAP_IO_SPACE
 	select SYSRESET_SYSCON
 	help
@@ -108,10 +108,10 @@ config SOC_BMIPS_BCM6362
 
 config SOC_BMIPS_BCM63268
 	bool "BMIPS BCM63268 family"
+	select MIPS_L1_CACHE_SHIFT_4
+	select MIPS_TUNE_4KC
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
-	select MIPS_TUNE_4KC
-	select MIPS_L1_CACHE_SHIFT_4
 	select SWAP_IO_SPACE
 	select SYSRESET_SYSCON
 	help
arch/mips/mach-pic32/Kconfig +3 -3
index 8fad4cff9126..5f13bf14ed6b 100644
@@ -9,12 +9,12 @@ choice
 
 config SOC_PIC32MZDA
 	bool "Microchip PIC32MZ[DA] family"
-	select SUPPORTS_LITTLE_ENDIAN
+	select MIPS_L1_CACHE_SHIFT_4
+	select ROM_EXCEPTION_VECTORS
 	select SUPPORTS_CPU_MIPS32_R1
 	select SUPPORTS_CPU_MIPS32_R2
-	select MIPS_L1_CACHE_SHIFT_4
+	select SUPPORTS_LITTLE_ENDIAN
 	select SYS_MIPS_CACHE_INIT_RAM_LOAD
-	select ROM_EXCEPTION_VECTORS
 	help
 	  This supports Microchip PIC32MZ[DA] family of microcontrollers.
 
arch/powerpc/Kconfig +1 -1
index 13a79560b24b..8faef0ba9fc3 100644
@@ -20,9 +20,9 @@ config MPC85xx
 	select CREATE_ARCH_SYMLINK
 	select SYS_FSL_DDR
 	select SYS_FSL_DDR_BE
-	imply USB_EHCI_HCD if USB
 	imply CMD_HASH
 	imply CMD_IRQ
+	imply USB_EHCI_HCD if USB
 
 config MPC86xx
 	bool "MPC86xx"
Signature · 1 line
1.9.1
#13 lore raw

PATCH v2 5/5 Kconfig: Sort bool, default, select and imply options

Quoted 3 lines · Michal Simek

Another round of sorting Kconfig entries aplhabetically.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180723/47cf8cca/attachment.sig>
#16 lore raw

PATCH v2 5/5 Kconfig: Sort bool, default, select and imply options

In reply to Michal Simek
Quoted 6 lines · Michal Simek

Another round of sorting Kconfig entries aplhabetically.

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: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180730/76d3a57a/attachment.sig>
#17 lore raw

PATCH v2 1/5 common: Log should depends on DM not be selected by DM

In reply to Michal Simek
Quoted 4 lines · Michal Simek

Better use depends on instead of select.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180723/940b4c49/attachment.sig>
#18 lore raw

PATCH v2 1/5 common: Log should depends on DM not be selected by DM

In reply to Michal Simek
Quoted 5 lines · Michal Simek

Better use depends on instead of select.

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: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180730/7a1db88e/attachment.sig>