All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Kconfig: Remove all default n/no options
@ 2021-08-27  6:48 Michal Simek
  2021-08-31 22:10 ` Tom Rini
  0 siblings, 1 reply; 9+ messages in thread
From: Michal Simek @ 2021-08-27  6:48 UTC (permalink / raw)
  To: u-boot, trini; +Cc: git

default n/no doesn't need to be specified. It is default option anyway.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 Kconfig                                   |  6 ------
 api/Kconfig                               |  1 -
 arch/arc/Kconfig                          |  5 -----
 arch/arm/Kconfig                          |  4 ----
 arch/arm/cpu/armv8/Kconfig                |  3 ---
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig |  1 -
 arch/arm/mach-at91/Kconfig                |  1 -
 arch/arm/mach-imx/mx6/Kconfig             |  1 -
 arch/arm/mach-mediatek/Kconfig            |  1 -
 arch/arm/mach-mvebu/Kconfig               |  3 ---
 arch/arm/mach-rmobile/Kconfig.32          |  1 -
 arch/arm/mach-stm32mp/Kconfig             |  1 -
 arch/arm/mach-sunxi/Kconfig               | 13 -------------
 arch/mips/Kconfig                         |  9 ---------
 arch/mips/mach-mtmips/mt7628/Kconfig      |  1 -
 arch/nds32/Kconfig                        |  2 --
 arch/riscv/Kconfig                        |  2 --
 arch/x86/Kconfig                          |  7 -------
 arch/x86/cpu/ivybridge/Kconfig            |  2 --
 arch/xtensa/Kconfig                       |  2 --
 board/beacon/imx8mn/Kconfig               |  2 --
 board/congatec/common/Kconfig             |  3 ---
 board/freescale/common/Kconfig            |  1 -
 board/freescale/imx8mn_evk/Kconfig        |  1 -
 board/freescale/ls1028a/Kconfig           |  2 --
 board/freescale/ls1043ardb/Kconfig        |  1 -
 board/freescale/t208xrdb/Kconfig          |  1 -
 board/keymile/km_arm/Kconfig              |  6 ------
 board/toradex/apalis_imx6/Kconfig         |  1 -
 cmd/Kconfig                               |  9 ---------
 cmd/mvebu/Kconfig                         |  1 -
 common/Kconfig                            |  5 -----
 common/Kconfig.boot                       | 11 -----------
 common/spl/Kconfig                        |  7 -------
 drivers/block/Kconfig                     |  2 --
 drivers/core/Kconfig                      |  4 ----
 drivers/dfu/Kconfig                       |  1 -
 drivers/dma/ti/Kconfig                    |  1 -
 drivers/fastboot/Kconfig                  |  1 -
 drivers/gpio/Kconfig                      | 10 ----------
 drivers/i2c/Kconfig                       |  2 --
 drivers/mmc/Kconfig                       |  5 -----
 drivers/mtd/nand/raw/Kconfig              |  3 ---
 drivers/mtd/spi/Kconfig                   |  2 --
 drivers/mtd/ubi/Kconfig                   |  1 -
 drivers/net/Kconfig                       |  3 ---
 drivers/net/phy/Kconfig                   |  3 ---
 drivers/pci/Kconfig                       |  8 --------
 drivers/phy/marvell/Kconfig               |  1 -
 drivers/power/Kconfig                     |  2 --
 drivers/ram/aspeed/Kconfig                |  3 ---
 drivers/ram/octeon/Kconfig                |  2 --
 drivers/ram/stm32mp1/Kconfig              |  1 -
 drivers/reboot-mode/Kconfig               |  3 ---
 drivers/rng/Kconfig                       |  3 ---
 drivers/serial/Kconfig                    |  2 --
 drivers/usb/host/Kconfig                  |  4 ----
 drivers/usb/musb-new/Kconfig              |  2 --
 drivers/video/Kconfig                     | 13 -------------
 drivers/w1/Kconfig                        |  3 ---
 env/Kconfig                               |  3 ---
 lib/Kconfig                               |  3 ---
 lib/efi_loader/Kconfig                    | 10 ----------
 lib/optee/Kconfig                         |  1 -
 net/Kconfig                               |  1 -
 65 files changed, 220 deletions(-)

diff --git a/Kconfig b/Kconfig
index a6c42b902f7d..25465583a9d9 100644
--- a/Kconfig
+++ b/Kconfig
@@ -83,7 +83,6 @@ config CC_OPTIMIZE_FOR_SIZE
 
 config OPTIMIZE_INLINING
 	bool "Allow compiler to uninline functions marked 'inline' in full U-Boot"
-	default n
 	help
 	  This option determines if U-Boot forces gcc to inline the functions
 	  developers have marked 'inline'. Doing so takes away freedom from gcc to
@@ -93,7 +92,6 @@ config OPTIMIZE_INLINING
 config SPL_OPTIMIZE_INLINING
 	bool "Allow compiler to uninline functions marked 'inline' in SPL"
 	depends on SPL
-	default n
 	help
 	  This option determines if U-Boot forces gcc to inline the functions
 	  developers have marked 'inline'. Doing so takes away freedom from gcc to
@@ -106,7 +104,6 @@ config ARCH_SUPPORTS_LTO
 config LTO
 	bool "Enable Link Time Optimizations"
 	depends on ARCH_SUPPORTS_LTO
-	default n
 	help
 	  This option enables Link Time Optimization (LTO), a mechanism which
 	  allows the compiler to optimize between different compilation units.
@@ -127,7 +124,6 @@ config LTO
 config TPL_OPTIMIZE_INLINING
 	bool "Allow compiler to uninline functions marked 'inline' in TPL"
 	depends on TPL
-	default n
 	help
 	  This option determines if U-Boot forces gcc to inline the functions
 	  developers have marked 'inline'. Doing so takes away freedom from gcc to
@@ -307,7 +303,6 @@ if EXPERT
 
 config SYS_MALLOC_DEFAULT_TO_INIT
 	bool "Default malloc to init while reserving the memory for it"
-	default n
 	help
 	  It may happen that one needs to move the dynamic allocation
 	  from one to another memory range, eg. when moving the malloc
@@ -423,7 +418,6 @@ config SYS_HAS_SRAM
 	default y if TARGET_PIC32MZDASK
 	default y if TARGET_DEVKIT8000
 	default y if TARGET_TRICORDER
-	default n
 	help
 	  Enable this to allow support for the on board SRAM.
 	  SRAM base address is controlled by CONFIG_SYS_SRAM_BASE.
diff --git a/api/Kconfig b/api/Kconfig
index 16731d3b4b31..382aa4ad3f02 100644
--- a/api/Kconfig
+++ b/api/Kconfig
@@ -2,7 +2,6 @@ menu "API"
 
 config API
 	bool "Enable U-Boot API"
-	default n
 	help
 	  This option enables the U-Boot API. See api/README for more information.
 
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
index 6ff201fa8167..1a7c525cdb96 100644
--- a/arch/arc/Kconfig
+++ b/arch/arc/Kconfig
@@ -104,13 +104,11 @@ endchoice
 
 config CPU_BIG_ENDIAN
 	bool "Enable Big Endian Mode"
-	default n
 	help
 	  Build kernel for Big Endian Mode of ARC CPU
 
 config SYS_ICACHE_OFF
 	bool "Do not enable icache"
-	default n
 	help
 	  Do not enable instruction cache in U-Boot.
 
@@ -123,7 +121,6 @@ config SPL_SYS_ICACHE_OFF
 
 config SYS_DCACHE_OFF
 	bool "Do not enable dcache"
-	default n
 	help
 	  Do not enable data cache in U-Boot.
 
@@ -136,14 +133,12 @@ config SPL_SYS_DCACHE_OFF
 
 menuconfig ARC_DBG
 	bool "ARC debugging"
-	default n
 
 if ARC_DBG
 
 config ARC_DBG_IOC_ENABLE
 	bool "Enable IO coherency unit"
 	depends on CPU_ARCHS38
-	default n
 	help
 	  Enable IO coherency unit to debug problems with caches and
 	  DMA peripherals.
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 0cc4326f2564..19205edbeb71 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -104,7 +104,6 @@ config THUMB2_KERNEL
 
 config SYS_ICACHE_OFF
 	bool "Do not enable icache"
-	default n
 	help
 	  Do not enable instruction cache in U-Boot.
 
@@ -117,7 +116,6 @@ config SPL_SYS_ICACHE_OFF
 
 config SYS_DCACHE_OFF
 	bool "Do not enable dcache"
-	default n
 	help
 	  Do not enable data cache in U-Boot.
 
@@ -452,7 +450,6 @@ config ENABLE_ARM_SOC_BOOT0_HOOK
 
 config ARM_CORTEX_CPU_IS_UP
 	bool
-	default n
 
 config USE_ARCH_MEMCPY
 	bool "Use an assembly optimized implementation of memcpy"
@@ -1888,7 +1885,6 @@ config ARCH_SUPPORT_TFABOOT
 config TFABOOT
 	bool "Support for booting from TF-A"
 	depends on ARCH_SUPPORT_TFABOOT
-	default n
 	help
 	  Some platforms support the setup of secure registers (for instance
 	  for CPU errata handling) or provide secure services like PSCI.
diff --git a/arch/arm/cpu/armv8/Kconfig b/arch/arm/cpu/armv8/Kconfig
index b7a10a8e34e6..0a3fdfa4716e 100644
--- a/arch/arm/cpu/armv8/Kconfig
+++ b/arch/arm/cpu/armv8/Kconfig
@@ -3,7 +3,6 @@ if ARM64
 config ARMV8_SPL_EXCEPTION_VECTORS
 	bool "Install crash dump exception vectors"
 	depends on SPL
-	default n
 	help
 	  The default exception vector table is only used for the crash
 	  dump, but still takes quite a lot of space in the image size.
@@ -128,7 +127,6 @@ config PSCI_RESET
 
 config ARMV8_PSCI
 	bool "Enable PSCI support" if EXPERT
-	default n
 	help
 	  PSCI is Power State Coordination Interface defined by ARM.
 	  The PSCI in U-boot provides a general framework and each platform
@@ -156,7 +154,6 @@ config ARMV8_PSCI_CPUS_PER_CLUSTER
 
 config ARMV8_EA_EL3_FIRST
 	bool "External aborts and SError interrupt exception are taken in EL3"
-	default n
 	help
 	  Exception handling at all exception levels for External Abort and
 	  SError interrupt exception are taken in EL3.
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
index 9c58f69dbd0d..981c67957e8d 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
+++ b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
@@ -426,7 +426,6 @@ config QSPI_AHB_INIT
 
 config FSPI_AHB_EN_4BYTE
 	bool "Enable 4-byte Fast Read command for AHB mode"
-	default n
 	help
 	  The default setting for FlexSPI AHB bus just supports 3-byte addressing.
 	  But some FlexSPI flash sizes are up to 64MBytes.
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index c90505e5edcb..4448ca1592e2 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -298,7 +298,6 @@ endchoice
 
 config ATMEL_SFR
 	bool
-	default n
 
 config SYS_SOC
 	default "at91"
diff --git a/arch/arm/mach-imx/mx6/Kconfig b/arch/arm/mach-imx/mx6/Kconfig
index 789a50d4e92c..cb85ad2ae21f 100644
--- a/arch/arm/mach-imx/mx6/Kconfig
+++ b/arch/arm/mach-imx/mx6/Kconfig
@@ -102,7 +102,6 @@ config MX6_OCRAM_256KB
 config MX6_DDRCAL
 	bool "Include dynamic DDR calibration routines"
 	depends on SPL
-	default n
 	help
 	  Say "Y" if your board uses dynamic (per-boot) DDR calibration.
 	  If unsure, say N.
diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
index e067604d9b39..134b6b17c2d3 100644
--- a/arch/arm/mach-mediatek/Kconfig
+++ b/arch/arm/mach-mediatek/Kconfig
@@ -8,7 +8,6 @@ config SYS_VENDOR
 
 config MT8512
 	bool "MediaTek MT8512 SoC"
-	default n
 
 choice
 	prompt "MediaTek board select"
diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig
index 89737a37ad9e..76de7bb41ccb 100644
--- a/arch/arm/mach-mvebu/Kconfig
+++ b/arch/arm/mach-mvebu/Kconfig
@@ -2,7 +2,6 @@ if ARCH_MVEBU
 
 config HAVE_MVEBU_EFUSE
 	bool
-	default n
 
 config ARMADA_32BIT
 	bool
@@ -284,14 +283,12 @@ endchoice
 
 config MVEBU_EFUSE
 	bool "Enable eFuse support"
-	default n
 	depends on HAVE_MVEBU_EFUSE
 	help
 	  Enable support for reading and writing eFuses on mvebu SoCs.
 
 config MVEBU_EFUSE_FAKE
 	bool "Fake eFuse access (dry run)"
-	default n
 	depends on MVEBU_EFUSE
 	help
 	  This enables a "dry run" mode where eFuses are not really programmed.
diff --git a/arch/arm/mach-rmobile/Kconfig.32 b/arch/arm/mach-rmobile/Kconfig.32
index d5e437f0d2e2..ea98bb00f3ba 100644
--- a/arch/arm/mach-rmobile/Kconfig.32
+++ b/arch/arm/mach-rmobile/Kconfig.32
@@ -133,7 +133,6 @@ config SYS_SOC
 config RMOBILE_EXTRAM_BOOT
 	bool "Enable boot from RAM"
 	depends on TARGET_ALT || TARGET_BLANCHE || TARGET_KOELSCH || TARGET_LAGER || TARGET_PORTER || TARGET_SILK || TARGET_STOUT
-	default n
 
 choice
 	prompt "Qos setting primary"
diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig
index ace07fd70f67..b0fd987bc309 100644
--- a/arch/arm/mach-stm32mp/Kconfig
+++ b/arch/arm/mach-stm32mp/Kconfig
@@ -174,7 +174,6 @@ config STM32_ETZPC
 
 config CMD_STM32KEY
 	bool "command stm32key to fuse public key hash"
-	default n
 	help
 		fuse public key hash in corresponding fuse used to authenticate
 		binary.
diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index 49f94f095c18..4530f906c894 100644
--- a/arch/arm/mach-sunxi/Kconfig
+++ b/arch/arm/mach-sunxi/Kconfig
@@ -622,7 +622,6 @@ config SYS_SOC
 
 config UART0_PORT_F
 	bool "UART0 on MicroSD breakout board"
-	default n
 	---help---
 	Repurpose the SD card slot for getting access to the UART0 serial
 	console. Primarily useful only for low level u-boot debugging on
@@ -633,7 +632,6 @@ config UART0_PORT_F
 
 config OLD_SUNXI_KERNEL_COMPAT
 	bool "Enable workarounds for booting old kernels"
-	default n
 	---help---
 	Set this to enable various workarounds for old kernels, this results in
 	sub-optimal settings for newer kernels, only enable if needed.
@@ -764,14 +762,12 @@ config I2C0_ENABLE
 
 config I2C1_ENABLE
 	bool "Enable I2C/TWI controller 1"
-	default n
 	select CMD_I2C
 	---help---
 	See I2C0_ENABLE help text.
 
 config I2C2_ENABLE
 	bool "Enable I2C/TWI controller 2"
-	default n
 	select CMD_I2C
 	---help---
 	See I2C0_ENABLE help text.
@@ -779,7 +775,6 @@ config I2C2_ENABLE
 if MACH_SUN6I || MACH_SUN7I
 config I2C3_ENABLE
 	bool "Enable I2C/TWI controller 3"
-	default n
 	select CMD_I2C
 	---help---
 	See I2C0_ENABLE help text.
@@ -798,7 +793,6 @@ endif
 if MACH_SUN7I
 config I2C4_ENABLE
 	bool "Enable I2C/TWI controller 4"
-	default n
 	select CMD_I2C
 	---help---
 	See I2C0_ENABLE help text.
@@ -806,7 +800,6 @@ endif
 
 config AXP_GPIO
 	bool "Enable support for gpio-s on axp PMICs"
-	default n
 	---help---
 	Say Y here to enable support for the gpio pins of the axp PMIC ICs.
 
@@ -838,14 +831,12 @@ config VIDEO_HDMI
 config VIDEO_VGA
 	bool "VGA output support"
 	depends on VIDEO_SUNXI && (MACH_SUN4I || MACH_SUN7I)
-	default n
 	---help---
 	Say Y here to add support for outputting video over VGA.
 
 config VIDEO_VGA_VIA_LCD
 	bool "VGA via LCD controller support"
 	depends on VIDEO_SUNXI && (MACH_SUN5I || MACH_SUN6I || MACH_SUN8I)
-	default n
 	---help---
 	Say Y here to add support for external DACs connected to the parallel
 	LCD interface driving a VGA connector, such as found on the
@@ -854,7 +845,6 @@ config VIDEO_VGA_VIA_LCD
 config VIDEO_VGA_VIA_LCD_FORCE_SYNC_ACTIVE_HIGH
 	bool "Force sync active high for VGA via LCD controller support"
 	depends on VIDEO_VGA_VIA_LCD
-	default n
 	---help---
 	Say Y here if you've a board which uses opendrain drivers for the vga
 	hsync and vsync signals. Opendrain drivers cannot generate steep enough
@@ -872,7 +862,6 @@ config VIDEO_VGA_EXTERNAL_DAC_EN
 config VIDEO_COMPOSITE
 	bool "Composite video output support"
 	depends on VIDEO_SUNXI && (MACH_SUN4I || MACH_SUN5I || MACH_SUN7I)
-	default n
 	---help---
 	Say Y here to add support for outputting composite video.
 
@@ -936,7 +925,6 @@ config VIDEO_LCD_BL_PWM_ACTIVE_LOW
 config VIDEO_LCD_PANEL_I2C
 	bool "LCD panel needs to be configured via i2c"
 	depends on VIDEO_SUNXI
-	default n
 	select CMD_I2C
 	---help---
 	Say y here if the LCD panel needs to be configured via i2c. This
@@ -969,7 +957,6 @@ config VIDEO_LCD_IF_LVDS
 
 config SUNXI_DE2
 	bool
-	default n
 
 config VIDEO_DE2
 	bool "Display Engine 2 video driver"
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 6b1f10d9a0eb..8f07189fe8e8 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -346,7 +346,6 @@ config MIPS_RELOCATION_TABLE_SIZE
 
 config RESTORE_EXCEPTION_VECTOR_BASE
 	bool "Restore exception vector base before booting linux kernel"
-	default n
 	help
 	  In U-Boot the exception vector base will be moved to top of memory,
 	  to be used to display register dump when exception occurs.
@@ -361,7 +360,6 @@ config RESTORE_EXCEPTION_VECTOR_BASE
 config OVERRIDE_EXCEPTION_VECTOR_BASE
 	bool "Override the exception vector base to be restored"
 	depends on RESTORE_EXCEPTION_VECTOR_BASE
-	default n
 	help
 	  Enable this option if you want to use a different exception vector
 	  base rather than the previously saved one.
@@ -376,7 +374,6 @@ config NEW_EXCEPTION_VECTOR_BASE
 
 config INIT_STACK_WITHOUT_MALLOC_F
 	bool "Do not reserve malloc space on initial stack"
-	default n
 	help
 	  Enable this option if you don't want to reserve malloc space on
 	  initial stack. This is useful if the initial stack can't hold large
@@ -385,7 +382,6 @@ config INIT_STACK_WITHOUT_MALLOC_F
 
 config SPL_INIT_STACK_WITHOUT_MALLOC_F
 	bool "Do not reserve malloc space on initial stack in SPL"
-	default n
 	help
 	  Enable this option if you don't want to reserve malloc space on
 	  initial stack. This is useful if the initial stack can't hold large
@@ -394,7 +390,6 @@ config SPL_INIT_STACK_WITHOUT_MALLOC_F
 
 config SPL_LOADER_SUPPORT
 	bool
-	default n
 	help
 	  Enable this option if you want to use SPL loaders without DM enabled.
 
@@ -422,7 +417,6 @@ config MIPS_BOOT_ENV_LEGACY
 
 config MIPS_BOOT_FDT
 	bool "Hand over a flattened device tree to Linux kernel"
-	default n
 	help
 	  Enable this option if you want U-Boot to hand over a flattened
 	  device tree to the kernel. According to UHI register $a0 will be set
@@ -501,7 +495,6 @@ config SYS_MIPS_CACHE_INIT_RAM_LOAD
 
 config MIPS_INIT_STACK_IN_SRAM
 	bool
-	default n
 	help
 	  Select this if the initial stack frame could be setup in SRAM.
 	  Normally the initial stack frame is set up in DRAM which is often
@@ -512,7 +505,6 @@ config MIPS_INIT_STACK_IN_SRAM
 
 config MIPS_SRAM_INIT
 	bool
-	default n
 	depends on MIPS_INIT_STACK_IN_SRAM
 	help
 	  Select this if the SRAM for initial stack needs to be initialized
@@ -604,7 +596,6 @@ config MIPS_CM
 
 config MIPS_INSERT_BOOT_CONFIG
 	bool
-	default n
 	help
 	  Enable this to insert some board-specific boot configuration in
 	  the U-Boot binary at offset 0x10.
diff --git a/arch/mips/mach-mtmips/mt7628/Kconfig b/arch/mips/mach-mtmips/mt7628/Kconfig
index e3f56e782ebb..b25b20f92ddd 100644
--- a/arch/mips/mach-mtmips/mt7628/Kconfig
+++ b/arch/mips/mach-mtmips/mt7628/Kconfig
@@ -40,7 +40,6 @@ endchoice
 config SPL_UART2_SPIS_PINMUX
 	bool "Use alternative pinmux for UART2 in SPL stage"
 	depends on SPL_SERIAL_SUPPORT
-	default n
 	help
 	  Select this if the UART2 of your board is connected to GPIO 16/17
 	  (shared with SPIS) rather than the usual GPIO 20/21.
diff --git a/arch/nds32/Kconfig b/arch/nds32/Kconfig
index b6f16bf12446..435333720c73 100644
--- a/arch/nds32/Kconfig
+++ b/arch/nds32/Kconfig
@@ -18,7 +18,6 @@ endchoice
 
 config SYS_ICACHE_OFF
 	bool "Do not enable icache"
-	default n
 	help
 	  Do not enable instruction cache in U-Boot.
 
@@ -31,7 +30,6 @@ config SPL_SYS_ICACHE_OFF
 
 config SYS_DCACHE_OFF
 	bool "Do not enable dcache"
-	default n
 	help
 	  Do not enable data cache in U-Boot.
 
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 4b0c3dffa6b1..476b7f0931c4 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -33,7 +33,6 @@ endchoice
 
 config SYS_ICACHE_OFF
 	bool "Do not enable icache"
-	default n
 	help
 	  Do not enable instruction cache in U-Boot.
 
@@ -46,7 +45,6 @@ config SPL_SYS_ICACHE_OFF
 
 config SYS_DCACHE_OFF
 	bool "Do not enable dcache"
-	default n
 	help
 	  Do not enable data cache in U-Boot.
 
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 300b48505e44..40f0e6979527 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -146,14 +146,12 @@ config HPET_ADDRESS
 
 config SMM_TSEG
 	bool
-	default n
 
 config SMM_TSEG_SIZE
 	hex
 
 config X86_RESET_VECTOR
 	bool
-	default n
 	select BINMAN
 
 # The following options control where the 16-bit and 32-bit init lies
@@ -536,7 +534,6 @@ config HAVE_MRC
 config CACHE_MRC_BIN
 	bool
 	depends on HAVE_MRC
-	default n
 	help
 	  Enable caching for the memory reference code binary. This uses an
 	  MTRR (memory type range register) to turn on caching for the section
@@ -605,7 +602,6 @@ config HAVE_MICROCODE
 
 config SMP
 	bool "Enable Symmetric Multiprocessing"
-	default n
 	help
 	  Enable use of more than one CPU in U-Boot and the Operating System
 	  when loaded. Each CPU will be started up and information can be
@@ -745,7 +741,6 @@ menu "System tables"
 
 config GENERATE_PIRQ_TABLE
 	bool "Generate a PIRQ table"
-	default n
 	help
 	  Generate a PIRQ routing table for this board. The PIRQ routing table
 	  is generated by U-Boot in the system memory from 0xf0000 to 0xfffff
@@ -769,7 +764,6 @@ config GENERATE_SFI_TABLE
 
 config GENERATE_MP_TABLE
 	bool "Generate an MP (Multi-Processor) table"
-	default n
 	help
 	  Generate an MP (Multi-Processor) table for this board. The MP table
 	  provides a way for the operating system to support for symmetric
@@ -778,7 +772,6 @@ config GENERATE_MP_TABLE
 
 config GENERATE_ACPI_TABLE
 	bool "Generate an ACPI (Advanced Configuration and Power Interface) table"
-	default n
 	select QFW if QEMU
 	help
 	  The Advanced Configuration and Power Interface (ACPI) specification
diff --git a/arch/x86/cpu/ivybridge/Kconfig b/arch/x86/cpu/ivybridge/Kconfig
index 2f4239378642..8a072df7238e 100644
--- a/arch/x86/cpu/ivybridge/Kconfig
+++ b/arch/x86/cpu/ivybridge/Kconfig
@@ -45,7 +45,6 @@ config SMM_TSEG_SIZE
 
 config ENABLE_VMX
 	bool "Enable VMX for virtualization"
-	default n
 	help
 	  Virtual Machine Extensions are provided in many x86 CPUs. These
 	  provide various facilities for allowing a host OS to provide an
@@ -66,7 +65,6 @@ config FSP_ADDR
 
 config FSP_USE_UPD
 	bool
-	default n
 
 config FSP_BROKEN_HOB
 	bool
diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig
index 6de31e8c1e05..35e5b89dda04 100644
--- a/arch/xtensa/Kconfig
+++ b/arch/xtensa/Kconfig
@@ -18,7 +18,6 @@ endchoice
 
 config SYS_ICACHE_OFF
 	bool "Do not enable icache"
-	default n
 	help
 	  Do not enable instruction cache in U-Boot.
 
@@ -31,7 +30,6 @@ config SPL_SYS_ICACHE_OFF
 
 config SYS_DCACHE_OFF
 	bool "Do not enable dcache"
-	default n
 	help
 	  Do not enable data cache in U-Boot.
 
diff --git a/board/beacon/imx8mn/Kconfig b/board/beacon/imx8mn/Kconfig
index 2bcfb25cf838..08766025a1ac 100644
--- a/board/beacon/imx8mn/Kconfig
+++ b/board/beacon/imx8mn/Kconfig
@@ -11,11 +11,9 @@ config SYS_CONFIG_NAME
 
 config IMX8MN_FORCE_NOM_SOC
 	bool "Force to use nominal mode for SOC and ARM"
-	default n
 
 config IMX8MN_BEACON_2GB_LPDDR
 	bool "Enable 2GB LPDDR"
-	default n
 
 source "board/freescale/common/Kconfig"
 
diff --git a/board/congatec/common/Kconfig b/board/congatec/common/Kconfig
index 5c205bd83043..d4a238de99bc 100644
--- a/board/congatec/common/Kconfig
+++ b/board/congatec/common/Kconfig
@@ -28,7 +28,6 @@ endif
 config VOL_MONITOR_LTC3882_READ
 	depends on VID
 	bool "Enable the LTC3882 voltage monitor read"
-	default n
 	help
 	 This option enables LTC3882 voltage monitor read
 	 functionality. It is used by common VID driver.
@@ -36,13 +35,11 @@ config VOL_MONITOR_LTC3882_READ
 config VOL_MONITOR_LTC3882_SET
 	depends on VID
 	bool "Enable the LTC3882 voltage monitor set"
-	default n
 	help
 	 This option enables LTC3882 voltage monitor set
 	 functionality. It is used by common VID driver.
 
 config USB_TCPC
 	bool "USB Typec port controller simple driver"
-	default n
 	help
 	  Enable USB type-c port controller (TCPC) driver
diff --git a/board/freescale/common/Kconfig b/board/freescale/common/Kconfig
index ab9c14ae8858..1e3bb42b7e14 100644
--- a/board/freescale/common/Kconfig
+++ b/board/freescale/common/Kconfig
@@ -23,7 +23,6 @@ config CMD_ESBC_VALIDATE
 
 config FSL_USE_PCA9547_MUX
 	bool "Enable PCA9547 I2C Mux on Freescale boards"
-	default n
 	help
 	 This option enables the PCA9547 I2C mux on Freescale boards.
 
diff --git a/board/freescale/imx8mn_evk/Kconfig b/board/freescale/imx8mn_evk/Kconfig
index 478f4ed66ed8..263d2437730c 100644
--- a/board/freescale/imx8mn_evk/Kconfig
+++ b/board/freescale/imx8mn_evk/Kconfig
@@ -11,7 +11,6 @@ config SYS_CONFIG_NAME
 
 config IMX8MN_LOW_DRIVE_MODE
 	bool "Enable the low drive mode of iMX8MN on EVK board"
-	default n
 
 source "board/freescale/common/Kconfig"
 
diff --git a/board/freescale/ls1028a/Kconfig b/board/freescale/ls1028a/Kconfig
index ca22c9220354..40939816ad89 100644
--- a/board/freescale/ls1028a/Kconfig
+++ b/board/freescale/ls1028a/Kconfig
@@ -14,7 +14,6 @@ config SYS_CONFIG_NAME
 
 config EMMC_BOOT
 	bool "Support for booting from EMMC"
-	default n
 
 config SYS_TEXT_BASE
 	default 0x96000000 if SD_BOOT || EMMC_BOOT
@@ -53,7 +52,6 @@ config SYS_CONFIG_NAME
 
 config EMMC_BOOT
 	bool "Support for booting from EMMC"
-	default n
 
 config SYS_TEXT_BASE
 	default 0x96000000 if SD_BOOT || EMMC_BOOT
diff --git a/board/freescale/ls1043ardb/Kconfig b/board/freescale/ls1043ardb/Kconfig
index 3d9e295c4e71..778b8d8d5a5a 100644
--- a/board/freescale/ls1043ardb/Kconfig
+++ b/board/freescale/ls1043ardb/Kconfig
@@ -16,7 +16,6 @@ config SYS_CONFIG_NAME
 config SYS_HAS_ARMV8_SECURE_BASE
 	bool "Enable secure address for PSCI image"
 	depends on ARMV8_PSCI
-	default n
 	help
 	  PSCI image can be re-located to secure RAM.
 	  If enabled, please also define the value for ARMV8_SECURE_BASE,
diff --git a/board/freescale/t208xrdb/Kconfig b/board/freescale/t208xrdb/Kconfig
index 8249c5df967a..d4c061a5eabc 100644
--- a/board/freescale/t208xrdb/Kconfig
+++ b/board/freescale/t208xrdb/Kconfig
@@ -11,7 +11,6 @@ config SYS_CONFIG_NAME
 
 config T2080RDB_REV_D
 	bool "Support for T2080RDB revisions D and up"
-	default n
 
 source "board/freescale/common/Kconfig"
 
diff --git a/board/keymile/km_arm/Kconfig b/board/keymile/km_arm/Kconfig
index 6f55cfab864e..c52b365b1757 100644
--- a/board/keymile/km_arm/Kconfig
+++ b/board/keymile/km_arm/Kconfig
@@ -3,37 +3,31 @@ menu "KM ARM Options"
 
 config KM_FPGA_CONFIG
 	bool "FPGA Configuration"
-	default n
 	help
 	  Include capability to change FPGA configuration.
 
 config KM_FPGA_FORCE_CONFIG
 	bool "FPGA reconfiguration"
-	default n
 	help
 	  If yes we force to reconfigure the FPGA always
 
 config KM_FPGA_NO_RESET
 	bool "FPGA skip reset"
-	default n
 	help
 	  If yes we skip triggering a reset of the FPGA
 
 config KM_ENV_IS_IN_SPI_NOR
 	bool "Environment in SPI NOR"
-	default n
 	help
 	  Put the U-Boot environment in the SPI NOR flash.
 
 config KM_PIGGY4_88E6061
 	bool "Piggy via Switch 88E6061"
-	default n
 	help
 	  The Piggy4 board is connected via a Marvell 88E6061 switch.
 
 config KM_PIGGY4_88E6352
 	bool "Piggy via Switch 88E6352"
-	default n
 	help
 	  The Piggy4 board is connected via a Marvell 88E6352 switch.
 
diff --git a/board/toradex/apalis_imx6/Kconfig b/board/toradex/apalis_imx6/Kconfig
index 14f8c10c64cf..c6ff387351c4 100644
--- a/board/toradex/apalis_imx6/Kconfig
+++ b/board/toradex/apalis_imx6/Kconfig
@@ -48,7 +48,6 @@ config TDX_APALIS_IMX6_V1_0
 	    This option configures DCE mode unconditionally. Whithout this
 	    option the config block stating V1.0 HW selects DCE mode,
 	    otherwise the UARTs are configuered in DTE mode.
-	default n
 
 source "board/toradex/common/Kconfig"
 
diff --git a/cmd/Kconfig b/cmd/Kconfig
index ffef3cc76ca4..d1bb66e7fe2c 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -471,7 +471,6 @@ config CMD_SAVEENV
 
 config CMD_ERASEENV
 	bool "eraseenv"
-	default n
 	depends on CMD_SAVEENV
 	help
 	  Erase environment variables from the compiled-in persistent
@@ -621,14 +620,12 @@ config LOOPW
 
 config CMD_MD5SUM
 	bool "md5sum"
-	default n
 	select MD5
 	help
 	  Compute MD5 checksum.
 
 config MD5SUM_VERIFY
 	bool "md5sum -v"
-	default n
 	depends on CMD_MD5SUM
 	help
 	  Add -v option to verify data against an MD5 checksum.
@@ -1088,7 +1085,6 @@ if CMD_MMC
 config CMD_BKOPS_ENABLE
 	bool "mmc bkops enable"
 	depends on CMD_MMC
-	default n
 	help
 	  Enable command for setting manual background operations handshake
 	  on a eMMC device. The feature is optionally available on eMMC devices
@@ -1416,7 +1412,6 @@ config CMD_SETEXPR
 
 config CMD_SETEXPR_FMT
 	bool "setexpr_fmt"
-	default n
 	depends on CMD_SETEXPR
 	help
 	  Evaluate format string expression and store result in an environment
@@ -1428,7 +1423,6 @@ menu "Android support commands"
 
 config CMD_AB_SELECT
 	bool "ab_select"
-	default n
 	depends on ANDROID_AB
 	help
 	  On Android devices with more than one boot slot (multiple copies of
@@ -1733,7 +1727,6 @@ config CMD_EFIDEBUG
 	bool "efidebug - display/configure UEFI environment"
 	depends on EFI_LOADER
 	select EFI_DEVICE_PATH_TO_TEXT
-	default n
 	help
 	  Enable the 'efidebug' command which provides a subset of UEFI
 	  shell utility with simplified functionality. It will be useful
@@ -2336,7 +2329,6 @@ config CMD_TRACE
 config CMD_AVB
 	bool "avb - Android Verified Boot 2.0 operations"
 	depends on AVB_VERIFY
-	default n
 	help
 	  Enables a "avb" command to perform verification of partitions using
 	  Android Verified Boot 2.0 functionality. It includes such subcommands:
@@ -2376,7 +2368,6 @@ config CMD_UBI
 config CMD_UBI_RENAME
        bool "Enable rename"
        depends on CMD_UBI
-       default n
        help
          Enable a "ubi" command to rename ubi volume:
 	   ubi rename <oldname> <newname>
diff --git a/cmd/mvebu/Kconfig b/cmd/mvebu/Kconfig
index 7c42c75afbe2..4afe0bf32ddb 100644
--- a/cmd/mvebu/Kconfig
+++ b/cmd/mvebu/Kconfig
@@ -3,7 +3,6 @@ depends on ARCH_MVEBU
 
 config CMD_MVEBU_BUBT
 	bool "bubt"
-	default n
 	help
 	  bubt - Burn a u-boot image to flash
 	  For details about bubt command please see the documentation
diff --git a/common/Kconfig b/common/Kconfig
index 2ab20a6c85b0..04dc93d1869c 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -628,7 +628,6 @@ config TPL_HASH
 
 config STACKPROTECTOR
 	bool "Stack Protector buffer overflow detection"
-	default n
 	help
 	  Enable stack smash detection through compiler's stack-protector
 	  canary logic
@@ -636,12 +635,10 @@ config STACKPROTECTOR
 config SPL_STACKPROTECTOR
 	bool "Stack Protector buffer overflow detection for SPL"
 	depends on STACKPROTECTOR && SPL
-	default n
 
 config TPL_STACKPROTECTOR
 	bool "Stack Protector buffer overflow detection for TPL"
 	depends on STACKPROTECTOR && TPL
-	default n
 
 endmenu
 
@@ -649,7 +646,6 @@ menu "Update support"
 
 config UPDATE_COMMON
 	bool
-	default n
 	select DFU_WRITE_ALT
 
 config UPDATE_TFTP
@@ -681,7 +677,6 @@ config UPDATE_FIT
 
 config ANDROID_AB
 	bool "Android A/B updates"
-	default n
 	help
 	  If enabled, adds support for the new Android A/B update model. This
 	  allows the bootloader to select which slot to boot from based on the
diff --git a/common/Kconfig.boot b/common/Kconfig.boot
index f39df04bbfac..8326bbfd2521 100644
--- a/common/Kconfig.boot
+++ b/common/Kconfig.boot
@@ -46,7 +46,6 @@ config FIT_SHA256
 
 config FIT_SHA384
 	bool "Support SHA384 checksum of FIT image contents"
-	default n
 	select SHA384
 	help
 	  Enable this to support SHA384 checksum of FIT image contents. A
@@ -56,7 +55,6 @@ config FIT_SHA384
 
 config FIT_SHA512
 	bool "Support SHA512 checksum of FIT image contents"
-	default n
 	select SHA512
 	help
 	  Enable this to support SHA512 checksum of FIT image contents. A
@@ -106,7 +104,6 @@ config FIT_SIGNATURE_MAX_SIZE
 config FIT_RSASSA_PSS
 	bool "Support rsassa-pss signature scheme of FIT image contents"
 	depends on FIT_SIGNATURE
-	default n
 	help
 	  Enable this to support the pss padding algorithm as described
 	  in the rfc8017 (https://tools.ietf.org/html/rfc8017).
@@ -707,7 +704,6 @@ config NOR_BOOT
 
 config NAND_BOOT
 	bool "Support for booting from NAND flash"
-	default n
 	imply MTD_RAW_NAND
 	help
 	  Enabling this will make a U-Boot binary that is capable of being
@@ -716,7 +712,6 @@ config NAND_BOOT
 
 config ONENAND_BOOT
 	bool "Support for booting from ONENAND"
-	default n
 	imply MTD_RAW_NAND
 	help
 	  Enabling this will make a U-Boot binary that is capable of being
@@ -725,7 +720,6 @@ config ONENAND_BOOT
 
 config QSPI_BOOT
 	bool "Support for booting from QSPI flash"
-	default n
 	help
 	  Enabling this will make a U-Boot binary that is capable of being
 	  booted via QSPI flash. This is not a must, some SoCs need this,
@@ -733,7 +727,6 @@ config QSPI_BOOT
 
 config SATA_BOOT
 	bool "Support for booting from SATA"
-	default n
 	help
 	  Enabling this will make a U-Boot binary that is capable of being
 	  booted via SATA. This is not a must, some SoCs need this,
@@ -741,7 +734,6 @@ config SATA_BOOT
 
 config SD_BOOT
 	bool "Support for booting from SD/EMMC"
-	default n
 	help
 	  Enabling this will make a U-Boot binary that is capable of being
 	  booted via SD/EMMC. This is not a must, some SoCs need this,
@@ -749,7 +741,6 @@ config SD_BOOT
 
 config SPI_BOOT
 	bool "Support for booting from SPI flash"
-	default n
 	help
 	  Enabling this will make a U-Boot binary that is capable of being
 	  booted via SPI flash. This is not a must, some SoCs need this,
@@ -783,7 +774,6 @@ config BOOTDELAY
 
 config AUTOBOOT_KEYED
 	bool "Stop autobooting via specific input key / string"
-	default n
 	help
 	  This option enables stopping (aborting) of the automatic
 	  boot feature only by issuing a specific input key or
@@ -870,7 +860,6 @@ config AUTOBOOT_STOP_STR
 config AUTOBOOT_KEYED_CTRLC
 	bool "Enable Ctrl-C autoboot interruption"
 	depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
-	default n
 	help
 	  This option allows for the boot sequence to be interrupted
 	  by ctrl-c, in addition to the "bootdelaykey" and "bootstopkey".
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index c155a3b5fcca..089774e83f46 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -722,7 +722,6 @@ config SYS_MMCSD_FS_BOOT_PARTITION
 config SPL_MMC_TINY
 	bool "Tiny MMC framework in SPL"
 	depends on SPL_MMC_SUPPORT
-	default n
 	help
 	  Enable MMC framework tinification support. This option is useful if
 	  if your SPL is extremely size constrained. Heed the warning, enable
@@ -739,7 +738,6 @@ config SPL_MMC_TINY
 config SPL_MMC_WRITE
 	bool "MMC/SD/SDIO card support for write operations in SPL"
 	depends on SPL_MMC_SUPPORT
-	default n
 	help
 	  Enable write access to MMC and SD Cards in SPL
 
@@ -912,7 +910,6 @@ config SPL_UBI_LOAD_ARGS_ID
 
 config UBI_SPL_SILENCE_MSG
 	bool "silence UBI SPL messages"
-	default n
 	help
 	  Disable messages from UBI SPL. This leaves warnings
 	  and errors enabled.
@@ -975,7 +972,6 @@ config SPL_ONENAND_SUPPORT
 config SPL_OS_BOOT
 	bool "Activate Falcon Mode"
 	depends on !TI_SECURE_DEVICE
-	default n
 	help
 	  Enable booting directly to an OS from SPL.
 	  for more info read doc/README.falcon
@@ -1422,7 +1418,6 @@ config TPL_LDSCRIPT
 
 config TPL_NEEDS_SEPARATE_TEXT_BASE
 	bool "TPL needs a separate text-base"
-	default n
 	depends on TPL
 	help
 	  Enable, if the TPL stage should not inherit its text-base
@@ -1431,7 +1426,6 @@ config TPL_NEEDS_SEPARATE_TEXT_BASE
 
 config TPL_NEEDS_SEPARATE_STACK
 	bool "TPL needs a separate initial stack-pointer"
-	default n
 	depends on TPL
 	help
 	  Enable, if the TPL stage should not inherit its initial
@@ -1638,7 +1632,6 @@ endif # TPL
 config SPL_AT91_MCK_BYPASS
 	bool "Use external clock signal as a source of main clock for AT91 platforms"
 	depends on ARCH_AT91
-	default n
 	help
 	  Use external 8 to 24 Mhz clock signal as source of main clock instead
 	  of an external crystal oscillator.
diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
index 4023332dd98c..56a4eec05ac7 100644
--- a/drivers/block/Kconfig
+++ b/drivers/block/Kconfig
@@ -52,14 +52,12 @@ config BLOCK_CACHE
 config SPL_BLOCK_CACHE
 	bool "Use block device cache in SPL"
 	depends on SPL_BLK
-	default n
 	help
 	  This option enables the disk-block cache in SPL
 
 config TPL_BLOCK_CACHE
 	bool "Use block device cache in TPL"
 	depends on TPL_BLK
-	default n
 	help
 	  This option enables the disk-block cache in TPL
 
diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig
index 9ae188c1dfc5..8f7703c8b580 100644
--- a/drivers/core/Kconfig
+++ b/drivers/core/Kconfig
@@ -80,7 +80,6 @@ config DM_DEVICE_REMOVE
 config SPL_DM_DEVICE_REMOVE
 	bool "Support device removal in SPL"
 	depends on SPL_DM
-	default n
 	help
 	  We can save some code space by dropping support for removing a
 	  device. This is not normally required in SPL, so by default this
@@ -107,7 +106,6 @@ config DM_SEQ_ALIAS
 config SPL_DM_SEQ_ALIAS
 	bool "Support numbered aliases in device tree in SPL"
 	depends on SPL_DM
-	default n
 	help
 	  Most boards will have a '/aliases' node containing the path to
 	  numbered devices (e.g. serial0 = &serial0). This feature can be
@@ -132,7 +130,6 @@ config TPL_DM_INLINE_OFNODE
 config DM_DMA
 	bool "Support per-device DMA constraints"
 	depends on DM
-	default n
 	help
 	  Enable this to extract per-device DMA constraints, only supported on
 	  device-tree systems for now. This is needed in order translate
@@ -274,7 +271,6 @@ config OF_TRANSLATE
 config SPL_OF_TRANSLATE
 	bool "Translate addresses using fdt_translate_address in SPL"
 	depends on SPL_DM && SPL_OF_CONTROL
-	default n
 	help
 	  If this option is enabled, the reg property will be translated
 	  using the fdt_translate_address() function. This is necessary
diff --git a/drivers/dfu/Kconfig b/drivers/dfu/Kconfig
index b50547476cbd..48e41bc26290 100644
--- a/drivers/dfu/Kconfig
+++ b/drivers/dfu/Kconfig
@@ -16,7 +16,6 @@ config DFU_OVER_TFTP
 if DFU
 config DFU_WRITE_ALT
 	bool
-	default n
 
 config DFU_TFTP
 	bool "DFU via TFTP"
diff --git a/drivers/dma/ti/Kconfig b/drivers/dma/ti/Kconfig
index 9cbd5f334dc8..87c026e04903 100644
--- a/drivers/dma/ti/Kconfig
+++ b/drivers/dma/ti/Kconfig
@@ -9,7 +9,6 @@ config TI_K3_NAVSS_UDMA
         select TI_K3_NAVSS_RINGACC
         select TI_K3_NAVSS_PSILCFG
         select TI_K3_PSIL
-        default n
         help
           Support for UDMA used in K3 devices.
 endif
diff --git a/drivers/fastboot/Kconfig b/drivers/fastboot/Kconfig
index 2d1836a80e09..d5e4a02098a2 100644
--- a/drivers/fastboot/Kconfig
+++ b/drivers/fastboot/Kconfig
@@ -74,7 +74,6 @@ config FASTBOOT_FLASH
 
 config FASTBOOT_UUU_SUPPORT
 	bool "Enable FASTBOOT i.MX UUU special command"
-	default n
 	help
 	  The fastboot protocol includes "UCmd" and "ACmd" command.
 	  Be aware that you provide full access to any U-Boot command,
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 09695f6c2b0d..4b190dafbaa2 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -39,7 +39,6 @@ config TPL_DM_GPIO
 config GPIO_HOG
 	bool "Enable GPIO hog support"
 	depends on DM_GPIO
-	default n
 	help
 	  Enable gpio hog support
 	  The GPIO chip may contain GPIO hog definitions. GPIO hogging
@@ -91,13 +90,11 @@ config CORTINA_GPIO
 config DWAPB_GPIO
 	bool "DWAPB GPIO driver"
 	depends on DM && DM_GPIO
-	default n
 	help
 	  Support for the Designware APB GPIO driver.
 
 config AT91_GPIO
 	bool "AT91 PIO GPIO driver"
-	default n
 	help
 	  Say yes here to select AT91 PIO GPIO driver. AT91 PIO
 	  controller manages up to 32 fully programmable input/output
@@ -110,7 +107,6 @@ config AT91_GPIO
 config ATMEL_PIO4
 	bool "ATMEL PIO4 driver"
 	depends on DM_GPIO
-	default n
 	help
 	  Say yes here to support the Atmel PIO4 driver.
 	  The PIO4 is new version of Atmel PIO controller, which manages
@@ -150,13 +146,11 @@ config INTEL_ICH6_GPIO
 config IMX_RGPIO2P
 	bool "i.MX7ULP RGPIO2P driver"
 	depends on DM
-	default n
 	help
 	  This driver supports i.MX7ULP Rapid GPIO2P controller.
 
 config IPROC_GPIO
 	bool "Broadcom iProc GPIO driver(without pinconf)"
-	default n
 	help
 	  The Broadcom iProc based SoCs- Cygnus, NS2, NS3, NSP and Stingray,
 	  use the same GPIO Controller IP hence this driver could be used
@@ -168,14 +162,12 @@ config IPROC_GPIO
 config HSDK_CREG_GPIO
 	bool "HSDK CREG GPIO griver"
 	depends on DM_GPIO
-	default n
 	help
 	  This driver supports CREG GPIOs on Synopsys HSDK SOC.
 
 config LPC32XX_GPIO
 	bool "LPC32XX GPIO driver"
 	depends on DM
-	default n
 	help
 	  Support for the LPC32XX GPIO driver.
 
@@ -193,7 +185,6 @@ config MSCC_SGPIO
 config MSM_GPIO
 	bool "Qualcomm GPIO driver"
 	depends on DM_GPIO
-	default n
 	help
 	  Support GPIO controllers on Qualcomm Snapdragon family of SoCs.
 	  This controller have single bank (default name "soc"), every
@@ -335,7 +326,6 @@ config GPIO_UNIPHIER
 config VYBRID_GPIO
 	bool "Vybrid GPIO driver"
 	depends on DM
-	default n
 	help
 	  Say yes here to support Vybrid vf610 GPIOs.
 
diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index 63d03a3cebfc..d6317831ae1c 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -139,7 +139,6 @@ config SYS_I2C_CADENCE
 config SYS_I2C_CA
 	tristate "Cortina-Access I2C Controller"
 	depends on DM_I2C && CORTINA_PLATFORM
-	default n
 	help
 	  Add support for the Cortina Access I2C host controller.
 	  Say yes here to select Cortina-Access I2C Host Controller.
@@ -152,7 +151,6 @@ config SYS_I2C_DAVINCI
 
 config SYS_I2C_DW
 	bool "Designware I2C Controller"
-	default n
 	help
 	  Say yes here to select the Designware I2C Host Controller. This
 	  controller is used in various SoCs, e.g. the ST SPEAr, Altera
diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
index 717ce5a62f4b..a35b1a98d2f4 100644
--- a/drivers/mmc/Kconfig
+++ b/drivers/mmc/Kconfig
@@ -123,7 +123,6 @@ config MMC_IO_VOLTAGE
 
 config SPL_MMC_IO_VOLTAGE
 	bool "Support IO voltage configuration in SPL"
-	default n
 	help
 	  IO voltage configuration allows selecting the voltage level of the IO
 	  lines (not the level of main supply). This is required for UHS
@@ -193,7 +192,6 @@ config MMC_VERBOSE
 
 config MMC_TRACE
 	bool "MMC debugging"
-	default n
 	help
 	  This is an option for use by developer. Enable MMC core debugging.
 
@@ -221,7 +219,6 @@ config MMC_DW_CORTINA
 	depends on DM_MMC
 	depends on MMC_DW
 	depends on BLK
-	default n
 	help
 	  This selects support for Cortina SoC specific extensions to the
 	  Synopsys DesignWare Memory Card Interface driver. Select this option
@@ -770,7 +767,6 @@ config FTSDC010
 
 config FTSDC010_SDIO
 	bool "Support ftsdc010 sdio"
-	default n
 	depends on FTSDC010
 	help
 		This can enable ftsdc010 sdio function.
@@ -805,7 +801,6 @@ config FSL_ESDHC_SUPPORT_ADMA2
 config FSL_ESDHC_33V_IO_RELIABILITY_WORKAROUND
 	bool "enable eSDHC workaround for 3.3v IO reliability issue"
 	depends on FSL_ESDHC && DM_MMC
-	default n
 	help
 	  When eSDHC operates at 3.3v, damage can accumulate in an internal
 	  level shifter at a higher than expected rate. The faster the interface
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index a901ce551117..f7b1334ddb47 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -31,12 +31,10 @@ if NAND_ATMEL
 
 config ATMEL_NAND_HWECC
 	bool "Atmel Hardware ECC"
-	default n
 
 config ATMEL_NAND_HW_PMECC
 	bool "Atmel Programmable Multibit ECC (PMECC)"
 	select ATMEL_NAND_HWECC
-	default n
 	help
 	  The Programmable Multibit ECC (PMECC) controller is a programmable
 	  binary BCH(Bose, Chaudhuri and Hocquenghem) encoder and decoder.
@@ -59,7 +57,6 @@ config SPL_GENERATE_ATMEL_PMECC_HEADER
 	bool "Atmel PMECC Header Generation"
 	select ATMEL_NAND_HWECC
 	select ATMEL_NAND_HW_PMECC
-	default n
 	help
 	  Generate Programmable Multibit ECC (PMECC) header for SPL image.
 
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
index 1b2ef37e92de..d9b68ae64cc5 100644
--- a/drivers/mtd/spi/Kconfig
+++ b/drivers/mtd/spi/Kconfig
@@ -99,7 +99,6 @@ config SPI_FLASH_SMART_HWCAPS
 
 config SPI_FLASH_SOFT_RESET
 	bool "Software Reset support for SPI NOR flashes"
-	default n
 	help
 	 Enable support for xSPI Software Reset. It will be used to switch from
 	 Octal DTR mode to legacy mode on shutdown and boot (if enabled).
@@ -107,7 +106,6 @@ config SPI_FLASH_SOFT_RESET
 config SPI_FLASH_SOFT_RESET_ON_BOOT
 	bool "Perform a Software Reset on boot on flashes that boot in stateful mode"
 	depends on SPI_FLASH_SOFT_RESET
-	default n
 	help
 	 Perform a Software Reset on boot to allow detecting flashes that are
 	 handed to us in Octal DTR mode. Do not enable this config on flashes
diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig
index a78fd51ba7dc..67a3cf1d7a50 100644
--- a/drivers/mtd/ubi/Kconfig
+++ b/drivers/mtd/ubi/Kconfig
@@ -68,7 +68,6 @@ config MTD_UBI_BEB_LIMIT
 
 config MTD_UBI_FASTMAP
 	bool "UBI Fastmap (Experimental feature)"
-	default n
 	help
 	   Important: this feature is experimental so far and the on-flash
 	   format for fastmap may change in the next kernel versions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 8b10148579e8..5ecae95e173e 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -558,7 +558,6 @@ endif #DM_ETH
 
 config SMC911X_32_BIT
 	bool "Enable SMC911X 32-bit interface"
-	default n
 	help
 	  Define this if data bus is 32 bits. If your processor use a
 	  narrower 16 bit bus or cannot convert one 32 bit word to two 16 bit
@@ -713,7 +712,6 @@ config FEC1_PHY
 config PHY_NORXERR
 	bool "PHY_NORXERR"
 	depends on ETHER_ON_FEC1
-	default n
 	help
 	  The PHY does not have a RXERR line (RMII only).
 	  (so program the FEC to ignore it).
@@ -738,7 +736,6 @@ config FEC2_PHY
 config FEC2_PHY_NORXERR
 	bool "PHY_NORXERR"
 	depends on ETHER_ON_FEC2
-	default n
 	help
 	  The PHY does not have a RXERR line (RMII only).
 	  (so program the FEC to ignore it).
diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig
index 405bf7675308..8783ea672ffb 100644
--- a/drivers/net/phy/Kconfig
+++ b/drivers/net/phy/Kconfig
@@ -71,7 +71,6 @@ menuconfig PHY_AQUANTIA
 
 config PHY_AQUANTIA_UPLOAD_FW
 	bool "Aquantia firmware loading support"
-	default n
 	depends on PHY_AQUANTIA
 	help
 		Aquantia PHYs use firmware which can be either loaded automatically
@@ -102,7 +101,6 @@ config PHY_CORTINA
 
 config SYS_CORTINA_NO_FW_UPLOAD
 	bool "Cortina firmware loading support"
-	default n
 	depends on PHY_CORTINA
 	help
 		Cortina phy has provision to store phy firmware in attached dedicated
@@ -240,7 +238,6 @@ config RTL8211X_PHY_FORCE_MASTER
 config RTL8211F_PHY_FORCE_EEE_RXC_ON
 	bool "Ethernet PHY RTL8211F: do not stop receiving the xMII clock during LPI"
 	depends on PHY_REALTEK
-	default n
 	help
 	  The IEEE 802.3az-2010 (EEE) standard provides a protocol to coordinate
 	  transitions to/from a lower power consumption level (Low Power Idle
diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig
index 2ef4d46797e0..97d0de5b11d2 100644
--- a/drivers/pci/Kconfig
+++ b/drivers/pci/Kconfig
@@ -29,7 +29,6 @@ config DM_PCI_COMPAT
 
 config PCI_AARDVARK
 	bool "Enable Aardvark PCIe driver"
-	default n
 	depends on DM_PCI
 	depends on DM_GPIO
 	depends on ARMADA_3700
@@ -48,7 +47,6 @@ config PCI_PNP
 config PCI_REGION_MULTI_ENTRY
 	bool "Enable Multiple entries of region type MEMORY in ranges for PCI"
 	depends on PCI || DM_PCI
-	default n
 	help
 	  Enable PCI memory regions to be of multiple entry. Multiple entry
 	  here refers to allow more than one count of address ranges for MEMORY
@@ -59,7 +57,6 @@ config PCI_MAP_SYSTEM_MEMORY
 	bool "Map local system memory from a virtual base address"
 	depends on PCI || DM_PCI
 	depends on MIPS
-	default n
 	help
 	  Say Y if base address of system memory is being used as a virtual address
 	  instead of a physical address (e.g. on MIPS). The PCI core will then remap
@@ -71,7 +68,6 @@ config PCI_MAP_SYSTEM_MEMORY
 config PCI_SRIOV
 	bool "Enable Single Root I/O Virtualization support for PCI"
 	depends on PCI || DM_PCI
-	default n
 	help
 	  Say Y here if you want to enable PCI Single Root I/O Virtualization
 	  capability support. This helps to enumerate Virtual Function devices
@@ -81,7 +77,6 @@ config PCI_SRIOV
 config PCI_ARID
         bool "Enable Alternate Routing-ID support for PCI"
         depends on PCI || DM_PCI
-        default n
         help
           Say Y here if you want to enable Alternate Routing-ID capability
           support on PCI devices. This helps to skip some devices in BDF
@@ -89,7 +84,6 @@ config PCI_ARID
 
 config PCIE_ECAM_GENERIC
 	bool "Generic ECAM-based PCI host controller support"
-	default n
 	depends on DM_PCI
 	help
 	  Say Y here if you want to enable support for generic ECAM-based
@@ -97,7 +91,6 @@ config PCIE_ECAM_GENERIC
 
 config PCIE_ECAM_SYNQUACER
 	bool "SynQuacer ECAM-based PCI host controller support"
-	default n
 	depends on DM_PCI
 	select PCI_INIT_R
 	select PCI_REGION_MULTI_ENTRY
@@ -209,7 +202,6 @@ config PCI_XILINX
 
 config PCIE_LAYERSCAPE
 	bool
-	default n
 
 config PCIE_LAYERSCAPE_RC
 	bool "Layerscape PCIe Root Complex mode support"
diff --git a/drivers/phy/marvell/Kconfig b/drivers/phy/marvell/Kconfig
index 424002840359..b5f69c0a96d3 100644
--- a/drivers/phy/marvell/Kconfig
+++ b/drivers/phy/marvell/Kconfig
@@ -1,6 +1,5 @@
 config MVEBU_COMPHY_SUPPORT
 	bool "ComPhy SerDes driver"
-	default n
 	help
 	  Choose this option to add support
 	  for Comphy driver.
diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig
index c5fbf1f832a9..26257a72bc69 100644
--- a/drivers/power/Kconfig
+++ b/drivers/power/Kconfig
@@ -248,7 +248,6 @@ endchoice
 config AXP_ALDO3_INRUSH_QUIRK
 	bool "axp pmic (a)ldo3 inrush quirk"
 	depends on AXP209_POWER
-	default n
 	---help---
 	The reference design denotes a value of 4.7 uF for the output capacitor
 	of LDO3. Some boards have too high capacitance causing 	an inrush current
@@ -357,7 +356,6 @@ config AXP_FLDO3_VOLT
 config AXP_SW_ON
 	bool "axp pmic sw on"
 	depends on AXP809_POWER || AXP818_POWER
-	default n
 	---help---
 	Enable to turn on axp pmic sw.
 
diff --git a/drivers/ram/aspeed/Kconfig b/drivers/ram/aspeed/Kconfig
index 049b9dc24928..576d5af8688e 100644
--- a/drivers/ram/aspeed/Kconfig
+++ b/drivers/ram/aspeed/Kconfig
@@ -3,7 +3,6 @@ if RAM || SPL_RAM
 config ASPEED_DDR4_DUALX8
 	bool "Enable Dual X8 DDR4 die"
 	depends on DM && OF_CONTROL && ARCH_ASPEED
-	default n
 	help
 		Say Y if dual X8 DDR4 die is used on the board.  The aspeed ddr sdram
 		controller needs to know if the memory chip mounted on the board is dual
@@ -42,14 +41,12 @@ endchoice
 
 config ASPEED_BYPASS_SELFTEST
 	bool "bypass self test during DRAM initialization"
-	default n
 	help
 	  Say Y here to bypass DRAM self test to speed up the boot time
 
 config ASPEED_ECC
 	bool "aspeed SDRAM error correcting code"
 	depends on DM && OF_CONTROL && ARCH_ASPEED
-	default n
 	help
 	  enable SDRAM ECC function
 
diff --git a/drivers/ram/octeon/Kconfig b/drivers/ram/octeon/Kconfig
index eb5a1208edf8..f19957293f95 100644
--- a/drivers/ram/octeon/Kconfig
+++ b/drivers/ram/octeon/Kconfig
@@ -1,7 +1,6 @@
 config RAM_OCTEON
 	bool "Ram drivers for Octeon SoCs"
 	depends on RAM && ARCH_OCTEON
-	default n
 	help
 	 This enables support for RAM drivers for Octeon SoCs.
 
@@ -9,7 +8,6 @@ if RAM_OCTEON
 
 config RAM_OCTEON_DDR4
 	bool "Octeon III DDR4 RAM support"
-	default n
 	help
 	 This enables support for DDR4 RAM suppoort for Octeon III.  This does
 	 not include support for Octeon CN70XX.
diff --git a/drivers/ram/stm32mp1/Kconfig b/drivers/ram/stm32mp1/Kconfig
index 2fd8c7b7e3b8..1aaf064c30cf 100644
--- a/drivers/ram/stm32mp1/Kconfig
+++ b/drivers/ram/stm32mp1/Kconfig
@@ -23,7 +23,6 @@ config STM32MP1_DDR_INTERACTIVE
 config STM32MP1_DDR_INTERACTIVE_FORCE
 	bool "STM32MP1 DDR driver : force interactive mode"
 	depends on STM32MP1_DDR_INTERACTIVE
-	default n
 	help
 		force interactive mode in STM32MP1 DDR controller driver
 		skip the polling of character 'd' in console
diff --git a/drivers/reboot-mode/Kconfig b/drivers/reboot-mode/Kconfig
index ac67bfcef623..63ea18cdf095 100644
--- a/drivers/reboot-mode/Kconfig
+++ b/drivers/reboot-mode/Kconfig
@@ -9,7 +9,6 @@ menu "Reboot Mode Support"
 config DM_REBOOT_MODE
 	bool "Enable reboot mode using Driver Model"
 	depends on DM
-	default n
 	help
 		Enable support for reboot mode control. This will allow users to
 		adjust the boot process based on reboot mode parameter
@@ -18,7 +17,6 @@ config DM_REBOOT_MODE
 config DM_REBOOT_MODE_GPIO
 	bool "Use GPIOs as reboot mode backend"
 	depends on DM_REBOOT_MODE
-	default n
 	help
 		Use GPIOs to control the reboot mode. This will allow users to boot
 		a device in a specific mode by using a GPIO that can be controlled
@@ -27,7 +25,6 @@ config DM_REBOOT_MODE_GPIO
 config DM_REBOOT_MODE_RTC
 	bool "Use RTC as reboot mode backend"
 	depends on DM_REBOOT_MODE
-	default n
 	help
 		Use RTC non volatile memory to control the reboot mode. This will allow users to boot
 		a device in a specific mode by using a register(s) that can be controlled
diff --git a/drivers/rng/Kconfig b/drivers/rng/Kconfig
index 94915d45b392..b1c5ab93d15d 100644
--- a/drivers/rng/Kconfig
+++ b/drivers/rng/Kconfig
@@ -34,14 +34,12 @@ config RNG_MSM
 config RNG_STM32MP1
 	bool "Enable random number generator for STM32MP1"
 	depends on ARCH_STM32MP
-	default n
 	help
 	  Enable STM32MP1 rng driver.
 
 config RNG_ROCKCHIP
 	bool "Enable random number generator for rockchip crypto rng"
 	depends on ARCH_ROCKCHIP && DM_RNG
-	default n
 	help
 	  Enable random number generator for rockchip.This driver is
 	  support rng module of crypto v1 and crypto v2.
@@ -49,7 +47,6 @@ config RNG_ROCKCHIP
 config RNG_IPROC200
 	bool "Broadcom iProc RNG200 random number generator"
 	depends on DM_RNG
-	default n
 	help
 	  Enable random number generator for RPI4.
 endif
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index 93348c0929cf..c97240882676 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -137,7 +137,6 @@ config SERIAL_SEARCH_ALL
 config SERIAL_PROBE_ALL
 	bool "Probe all available serial devices"
 	depends on DM_SERIAL
-	default n
 	help
 	  The serial subsystem only probes for a single serial device,
 	  but does not probe for other remaining serial devices.
@@ -621,7 +620,6 @@ config FSL_LPUART
 
 config MVEBU_A3700_UART
 	bool "UART support for Armada 3700"
-	default n
 	help
 	  Choose this option to add support for UART driver on the Marvell
 	  Armada 3700 SoC. The base address is configured via DT.
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index 427b360af182..8957bb56a6be 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -146,7 +146,6 @@ config USB_EHCI_MARVELL
 config USB_EHCI_MX5
 	bool "Support for i.MX5 on-chip EHCI USB controller"
 	depends on ARCH_MX5
-	default n
 	help
 	  Enables support for the on-chip EHCI controller on i.MX5 SoCs.
 
@@ -195,7 +194,6 @@ config USB_EHCI_MSM
 	depends on DM_USB
 	select USB_ULPI_VIEWPORT
 	select MSM8916_USB_PHY
-	default n
 	---help---
 	  Enables support for the on-chip EHCI controller on Qualcomm
 	  Snapdragon SoCs.
@@ -222,13 +220,11 @@ config USB_EHCI_GENERIC
 	bool "Support for generic EHCI USB controller"
 	depends on DM_USB
 	default ARCH_SUNXI
-	default n
 	---help---
 	  Enables support for generic EHCI controller.
 
 config USB_EHCI_FSL
 	bool  "Support for FSL on-chip EHCI USB controller"
-	default n
 	select  CONFIG_EHCI_HCD_INIT_AFTER_RESET
 	---help---
 	  Enables support for the on-chip EHCI controller on FSL chips.
diff --git a/drivers/usb/musb-new/Kconfig b/drivers/usb/musb-new/Kconfig
index a9a7c2675ef1..6dd830cb73b2 100644
--- a/drivers/usb/musb-new/Kconfig
+++ b/drivers/usb/musb-new/Kconfig
@@ -34,7 +34,6 @@ config USB_MUSB_TI
 	bool "Enable TI OTG USB controller"
 	depends on AM33XX
 	select USB_MUSB_DSPS
-	default n
 	help
 	  Say y here to enable support for the dual role high
 	  speed USB controller based on the Mentor Graphics
@@ -53,7 +52,6 @@ config USB_MUSB_DSPS
 config USB_MUSB_MT85XX
 	bool "Enable Mediatek MT85XX DRC USB controller"
 	depends on ARCH_MEDIATEK
-	default n
 	help
 	  Say y to enable Mediatek MT85XX USB DRC controller support
 	  if it is available on your Mediatek MUSB IP based platform.
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index b69ffcae4b2a..bcd391632bb7 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -259,7 +259,6 @@ config VIDEO_EFI
 
 config VIDEO_VESA
 	bool "Enable VESA video driver support"
-	default n
 	help
 	  Turn on this option to enable a very simple driver which uses vesa
 	  to discover the video mode and then provides a frame buffer for use
@@ -406,7 +405,6 @@ config FRAMEBUFFER_VESA_MODE
 
 config VIDEO_LCD_ANX9804
 	bool "ANX9804 bridge chip"
-	default n
 	---help---
 	Support for the ANX9804 bridge chip, which can take pixel data coming
 	from a parallel LCD interface and translate it on the fy into a DP
@@ -416,7 +414,6 @@ config VIDEO_LCD_ORISETECH_OTM8009A
 	bool "OTM8009A DSI LCD panel support"
 	depends on DM_VIDEO
 	select VIDEO_MIPI_DSI
-	default n
 	help
 	Say Y here if you want to enable support for Orise Technology
 	otm8009a 480x800 dsi 2dl panel.
@@ -425,14 +422,12 @@ config VIDEO_LCD_RAYDIUM_RM68200
 	bool "RM68200 DSI LCD panel support"
 	depends on DM_VIDEO
 	select VIDEO_MIPI_DSI
-	default n
 	help
 	Say Y here if you want to enable support for Raydium RM68200
 	720x1280 DSI video mode panel.
 
 config VIDEO_LCD_SSD2828
 	bool "SSD2828 bridge chip"
-	default n
 	---help---
 	Support for the SSD2828 bridge chip, which can take pixel data coming
 	from a parallel LCD interface and translate it on the fly into MIPI DSI
@@ -463,7 +458,6 @@ config VIDEO_LCD_TDO_TL070WSH30
 	bool "TDO TL070WSH30 DSI LCD panel support"
 	depends on DM_VIDEO
 	select VIDEO_MIPI_DSI
-	default n
 	help
 	Say Y here if you want to enable support for TDO TL070WSH30
 	1024x600 DSI video mode panel.
@@ -471,7 +465,6 @@ config VIDEO_LCD_TDO_TL070WSH30
 config VIDEO_LCD_HITACHI_TX18D42VM
 	bool "Hitachi tx18d42vm LVDS LCD panel support"
 	depends on VIDEO
-	default n
 	---help---
 	Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
 	lcd controller which needs to be initialized over SPI, once that is
@@ -524,7 +517,6 @@ source "drivers/video/meson/Kconfig"
 
 config VIDEO_MVEBU
 	bool "Armada XP LCD controller"
-	default n
 	---help---
 	Support for the LCD controller integrated in the Marvell
 	Armada XP SoC.
@@ -537,14 +529,12 @@ config VIDEO_OMAP3
 
 config I2C_EDID
 	bool "Enable EDID library"
-	default n
 	help
 	   This enables library for accessing EDID data from an LCD panel.
 
 config DISPLAY
 	bool "Enable Display support"
 	depends on DM
-	default n
 	select I2C_EDID
 	help
 	   This supports drivers that provide a display, such as eDP (Embedded
@@ -555,7 +545,6 @@ config DISPLAY
 config NXP_TDA19988
 	bool "Enable NXP TDA19988 support"
 	depends on DISPLAY
-	default n
 	help
 	  This enables support for the NXP TDA19988 HDMI encoder. This encoder
 	  will convert RGB data streams into HDMI-encoded signals.
@@ -857,7 +846,6 @@ config VIDEO_DT_SIMPLEFB
 config OSD
 	bool "Enable OSD support"
 	depends on DM
-	default n
 	help
 	   This supports drivers that provide a OSD (on-screen display), which
 	   is a (usually text-oriented) graphics buffer to show information on
@@ -997,7 +985,6 @@ config BMP_32BPP
 
 config VIDEO_VCXK
 	bool "Enable VCXK video controller driver support"
-	default n
 	help
 	  This enables VCXK driver which can be used with VC2K, VC4K
 	  and VC8K devices on various boards from BuS Elektronik GmbH.
diff --git a/drivers/w1/Kconfig b/drivers/w1/Kconfig
index 031bab25aea0..a2c51083b156 100644
--- a/drivers/w1/Kconfig
+++ b/drivers/w1/Kconfig
@@ -6,7 +6,6 @@ menu "1-Wire support"
 
 config W1
 	bool "Enable 1-wire controllers support"
-	default no
 	depends on DM
 	help
 	  Support for the Dallas 1-Wire bus.
@@ -15,14 +14,12 @@ if W1
 
 config W1_GPIO
 	bool "Enable 1-wire GPIO bitbanging"
-	default no
 	depends on DM_GPIO
 	help
 	  Emulate a 1-wire bus using a GPIO.
 
 config W1_MXC
 	bool "Enable 1-wire controller on i.MX processors"
-	default no
 	depends on ARCH_MX25 || ARCH_MX31 || ARCH_MX5
 	help
 	  Support the one wire controller found in some members of the NXP
diff --git a/env/Kconfig b/env/Kconfig
index 67ff172e3a9b..2d7aa59dddd7 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -689,7 +689,6 @@ config ENV_FDT_PATH
 
 config ENV_APPEND
 	bool "Always append the environment with new data"
-	default n
 	help
 	  If defined, the environment hash table is only ever appended with new
 	  data, but the existing hash table can never be dropped and reloaded
@@ -698,7 +697,6 @@ config ENV_APPEND
 
 config ENV_WRITEABLE_LIST
 	bool "Permit write access only to listed variables"
-	default n
 	help
 	  If defined, only environment variables which explicitly set the 'w'
 	  writeable flag can be written and modified at runtime. No variables
@@ -706,7 +704,6 @@ config ENV_WRITEABLE_LIST
 
 config ENV_ACCESS_IGNORE_FORCE
 	bool "Block forced environment operations"
-	default n
 	help
 	  If defined, don't allow the -f switch to env set override variable
 	  access flags.
diff --git a/lib/Kconfig b/lib/Kconfig
index 7b445d01641e..817952d7fc7d 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -92,7 +92,6 @@ config TPL_SPRINTF
 
 config SSCANF
 	bool
-	default n
 
 config STRTO
 	bool
@@ -347,7 +346,6 @@ menu "Android Verified Boot"
 config LIBAVB
 	bool "Android Verified Boot 2.0 support"
 	depends on ANDROID_BOOT_IMAGE
-	default n
 	help
 	  This enables support of Android Verified Boot 2.0 which can be used
 	  to assure the end user of the integrity of the software running on a
@@ -772,7 +770,6 @@ endmenu
 
 config PHANDLE_CHECK_SEQ
 	bool "Enable phandle check while getting sequence number"
-	default n
 	help
 	  When there are multiple device tree nodes with same name,
           enable this config option to distinguish them using
diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
index dacc3b58810d..0e5231b92522 100644
--- a/lib/efi_loader/Kconfig
+++ b/lib/efi_loader/Kconfig
@@ -38,7 +38,6 @@ config CMD_BOOTEFI_BOOTMGR
 
 config EFI_SETUP_EARLY
 	bool
-	default n
 
 choice
 	prompt "Store for non-volatile UEFI variables"
@@ -112,7 +111,6 @@ config EFI_SET_TIME
 	bool "SetTime() runtime service"
 	depends on EFI_GET_TIME
 	default y if ARCH_QEMU || SANDBOX
-	default n
 	help
 	  Provide the SetTime() runtime service at boottime. This service
 	  can be used by an EFI application to adjust the real time clock.
@@ -122,7 +120,6 @@ config EFI_HAVE_CAPSULE_SUPPORT
 
 config EFI_RUNTIME_UPDATE_CAPSULE
 	bool "UpdateCapsule() runtime service"
-	default n
 	select EFI_HAVE_CAPSULE_SUPPORT
 	help
 	  Select this option if you want to use UpdateCapsule and
@@ -131,7 +128,6 @@ config EFI_RUNTIME_UPDATE_CAPSULE
 config EFI_CAPSULE_ON_DISK
 	bool "Enable capsule-on-disk support"
 	select EFI_HAVE_CAPSULE_SUPPORT
-	default n
 	help
 	  Select this option if you want to use capsule-on-disk feature,
 	  that is, capsules can be fetched and executed from files
@@ -141,7 +137,6 @@ config EFI_CAPSULE_ON_DISK
 config EFI_IGNORE_OSINDICATIONS
 	bool "Ignore OsIndications for CapsuleUpdate on-disk"
 	depends on EFI_CAPSULE_ON_DISK
-	default n
 	help
 	  There are boards where U-Boot does not support SetVariable at runtime.
 	  Select this option if you want to use the capsule-on-disk feature
@@ -151,7 +146,6 @@ config EFI_IGNORE_OSINDICATIONS
 config EFI_CAPSULE_ON_DISK_EARLY
 	bool "Initiate capsule-on-disk at U-Boot boottime"
 	depends on EFI_CAPSULE_ON_DISK
-	default n
 	select EFI_SETUP_EARLY
 	help
 	  Normally, without this option enabled, capsules will be
@@ -162,7 +156,6 @@ config EFI_CAPSULE_ON_DISK_EARLY
 
 config EFI_CAPSULE_FIRMWARE
 	bool
-	default n
 
 config EFI_CAPSULE_FIRMWARE_MANAGEMENT
 	bool "Capsule: Firmware Management Protocol"
@@ -209,7 +202,6 @@ config EFI_CAPSULE_AUTHENTICATE
 	select PKCS7_VERIFY
 	select IMAGE_SIGN_INFO
 	select EFI_SIGNATURE_SUPPORT
-	default n
 	help
 	  Select this option if you want to enable capsule
 	  authentication
@@ -277,7 +269,6 @@ endif
 config EFI_LOADER_BOUNCE_BUFFER
 	bool "EFI Applications use bounce buffers for DMA operations"
 	depends on ARM64
-	default n
 	help
 	  Some hardware does not support DMA to full 64bit addresses. For this
 	  hardware we can create a bounce buffer so that payloads don't have to
@@ -364,7 +355,6 @@ config EFI_SECURE_BOOT
 	select PKCS7_MESSAGE_PARSER
 	select PKCS7_VERIFY
 	select EFI_SIGNATURE_SUPPORT
-	default n
 	help
 	  Select this option to enable EFI secure boot support.
 	  Once SecureBoot mode is enforced, any EFI binary can run only if
diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig
index c398f9b95357..3290b6656d92 100644
--- a/lib/optee/Kconfig
+++ b/lib/optee/Kconfig
@@ -34,7 +34,6 @@ config BOOTM_OPTEE
 	bool "Support OPTEE bootm command"
 	select BOOTM_LINUX
 	depends on OPTEE
-	default n
 	help
 	  Select this command to enable chain-loading of a Linux kernel
 	  via an OPTEE firmware.
diff --git a/net/Kconfig b/net/Kconfig
index ba0ca813ce52..7a2d14501881 100644
--- a/net/Kconfig
+++ b/net/Kconfig
@@ -40,7 +40,6 @@ config NETCONSOLE
 
 config IP_DEFRAG
 	bool "Support IP datagram reassembly"
-	default n
 	help
 	  Selecting this will enable IP datagram reassembly according
 	  to the algorithm in RFC815.
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] Kconfig: Remove all default n/no options
  2021-08-27  6:48 [PATCH] Kconfig: Remove all default n/no options Michal Simek
@ 2021-08-31 22:10 ` Tom Rini
  0 siblings, 0 replies; 9+ messages in thread
From: Tom Rini @ 2021-08-31 22:10 UTC (permalink / raw)
  To: Michal Simek; +Cc: u-boot, git

[-- Attachment #1: Type: text/plain, Size: 248 bytes --]

On Fri, Aug 27, 2021 at 08:48:10AM +0200, Michal Simek wrote:

> default n/no doesn't need to be specified. It is default option anyway.
> 
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Applied to u-boot/next, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Kconfig: Remove all default n/no options
  2023-10-25  7:25 Michal Simek
                   ` (2 preceding siblings ...)
  2023-10-29  8:27 ` Angelo Dureghello
@ 2023-10-30 21:35 ` Tom Rini
  3 siblings, 0 replies; 9+ messages in thread
From: Tom Rini @ 2023-10-30 21:35 UTC (permalink / raw)
  To: Michal Simek
  Cc: u-boot, git, takahiro.akashi, Abdellatif El Khlifi,
	Alexey Romanov, Andre Przywara, Angelo Dureghello,
	Balamanikandan Gunasundar, Bin Meng, Chris Packham,
	Dario Binacchi, Fabio Estevam, Gaurav Jain, Heinrich Schuchardt,
	Holger Brunck, Huan Wang, Ilias Apalodimas, Jagan Teki,
	Jean-Marie Lemetayer, Jonas Karlman, Kever Yang, Leo,
	Lukasz Majewski, Marek Vasut, Michael Trimarchi,
	NXP i.MX U-Boot Team, Neil Armstrong, Peng Fan, Philipp Tomsich,
	Qu Wenruo, Ramon Fried, Rick Chen, Roger Knecht, Roger Quadros,
	Samuel Holland, Sean Edmond, Simon Glass, Stefan Roese,
	Stefano Babic, Svyatoslav Ryhel, Tobias Waldekranz, Tom Warren,
	Vignesh R, Vladimir Zapolskiy

[-- Attachment #1: Type: text/plain, Size: 545 bytes --]

On Wed, Oct 25, 2023 at 09:25:37AM +0200, Michal Simek wrote:

> Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all
> default n/no options") and again sync is required.
> 
> default n/no doesn't need to be specified. It is default option anyway.
> 
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> Reviewed-by: Svyatoslav Ryhel <clamor95@gmail.com> # tegra
> Reviewed-by: Tom Rini <trini@konsulko.com>
> Reviewed-by: Angelo Dureghello <angelo@kernel-space.org>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Kconfig: Remove all default n/no options
  2023-10-25  7:25 Michal Simek
  2023-10-25  8:55 ` Svyatoslav Ryhel
  2023-10-25 13:40 ` Tom Rini
@ 2023-10-29  8:27 ` Angelo Dureghello
  2023-10-30 21:35 ` Tom Rini
  3 siblings, 0 replies; 9+ messages in thread
From: Angelo Dureghello @ 2023-10-29  8:27 UTC (permalink / raw)
  To: Michal Simek, u-boot, git; +Cc: Tom Rini

Hi Michal,

thanks, built all m68k stuff, no issues.
Also tested on stmark2, all is ok.

Reviewed-by: Angelo Dureghello <angelo@kernel-space.org>

On 25/10/23 9:25 AM, Michal Simek wrote:
> Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all
> default n/no options") and again sync is required.
> 
> default n/no doesn't need to be specified. It is default option anyway.
> 
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
> 
>   arch/arm/mach-imx/mxs/Kconfig      | 2 --
>   arch/arm/mach-rockchip/Kconfig     | 1 -
>   arch/arm/mach-snapdragon/Kconfig   | 1 -
>   arch/arm/mach-sunxi/Kconfig        | 1 -
>   arch/arm/mach-tegra/Kconfig        | 1 -
>   arch/m68k/Kconfig                  | 1 -
>   arch/riscv/Kconfig                 | 1 -
>   board/asus/grouper/Kconfig         | 2 --
>   board/asus/transformer-t30/Kconfig | 1 -
>   board/keymile/Kconfig              | 3 ---
>   board/lg/x3-t30/Kconfig            | 2 --
>   cmd/Kconfig                        | 3 ---
>   drivers/crypto/fsl/Kconfig         | 1 -
>   drivers/memory/Kconfig             | 1 -
>   drivers/misc/Kconfig               | 1 -
>   drivers/mtd/nand/raw/Kconfig       | 1 -
>   drivers/mtd/spi/Kconfig            | 1 -
>   drivers/sm/Kconfig                 | 1 -
>   drivers/spi/Kconfig                | 1 -
>   drivers/usb/host/Kconfig           | 2 --
>   fs/ubifs/Kconfig                   | 1 -
>   21 files changed, 29 deletions(-)
> 
> diff --git a/arch/arm/mach-imx/mxs/Kconfig b/arch/arm/mach-imx/mxs/Kconfig
> index ccce6a78caa2..d2e4205c5ce5 100644
> --- a/arch/arm/mach-imx/mxs/Kconfig
> +++ b/arch/arm/mach-imx/mxs/Kconfig
> @@ -54,7 +54,6 @@ config SYS_SOC
>   
>   config SPL_MXS_PMU_MINIMAL_VDD5V_CURRENT
>   	bool "Force minimal current draw from VDD5V by MX28 PMU"
> -	default n
>   	help
>   	  After setting this option, the current drawn from VDD5V
>   	  by the PMU is reduced to zero - the DCDC_BATT is used as
> @@ -62,7 +61,6 @@ config SPL_MXS_PMU_MINIMAL_VDD5V_CURRENT
>   
>   config SPL_MXS_PMU_DISABLE_BATT_CHARGE
>   	bool "Disable Battery Charging in MX28 PMU"
> -	default n
>   
>   config SPL_MXS_PMU_ENABLE_4P2_LINEAR_REGULATOR
>   	bool "Enable the 4P2 linear regulator in MX28 PMU"
> diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
> index c43c185c17c5..a6c69c300d00 100644
> --- a/arch/arm/mach-rockchip/Kconfig
> +++ b/arch/arm/mach-rockchip/Kconfig
> @@ -450,7 +450,6 @@ config ROCKCHIP_BOOT_MODE_REG
>   config ROCKCHIP_RK8XX_DISABLE_BOOT_ON_POWERON
>   	bool "Disable device boot on power plug-in"
>   	depends on PMIC_RK8XX
> -	default n
>   	---help---
>   	  Say Y here to prevent the device from booting up because of a plug-in
>   	  event. When set, the device will boot briefly to determine why it was
> diff --git a/arch/arm/mach-snapdragon/Kconfig b/arch/arm/mach-snapdragon/Kconfig
> index 0e073045be54..2fc1521e2d30 100644
> --- a/arch/arm/mach-snapdragon/Kconfig
> +++ b/arch/arm/mach-snapdragon/Kconfig
> @@ -14,7 +14,6 @@ config SPL_SYS_MALLOC_F_LEN
>   
>   config SDM845
>   	bool "Qualcomm Snapdragon 845 SoC"
> -	default n
>   	select LINUX_KERNEL_IMAGE_HEADER
>   
>   config LNX_KRNL_IMG_TEXT_OFFSET_BASE
> diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
> index 40ca7d7b3a99..a10e4c06b6a3 100644
> --- a/arch/arm/mach-sunxi/Kconfig
> +++ b/arch/arm/mach-sunxi/Kconfig
> @@ -811,7 +811,6 @@ config AXP_GPIO
>   config AXP_DISABLE_BOOT_ON_POWERON
>   	bool "Disable device boot on power plug-in"
>   	depends on AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
> -	default n
>   	---help---
>   	  Say Y here to prevent the device from booting up because of a plug-in
>   	  event. When set, the device will boot into the SPL briefly to
> diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
> index 464bd0798f62..0e94b84fe657 100644
> --- a/arch/arm/mach-tegra/Kconfig
> +++ b/arch/arm/mach-tegra/Kconfig
> @@ -18,7 +18,6 @@ config TEGRA_CLKRST
>   config TEGRA_CRYPTO
>   	bool "Tegra AES128 crypto module"
>   	select AES
> -	default n
>   
>   config TEGRA_GP_PADCTRL
>   	bool
> diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
> index 587edd50d7e8..b288c65e7fd1 100644
> --- a/arch/m68k/Kconfig
> +++ b/arch/m68k/Kconfig
> @@ -200,7 +200,6 @@ source "board/sysam/stmark2/Kconfig"
>   
>   config M68K_QEMU
>   	bool "Build with workarounds for incomplete QEMU emulation"
> -	default n
>   	help
>   	  QEMU 8.x currently does not implement RAMBAR accesses and
>   	  DMA timers. Enable this option for U-Boot CI purposes only
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index e291456530bd..8fc81fb284cd 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -68,7 +68,6 @@ config SPL_SYS_DCACHE_OFF
>   config SPL_ZERO_MEM_BEFORE_USE
>   	bool "Zero memory before use"
>   	depends on SPL
> -	default n
>   	help
>   	  Zero stack/GD/malloc area in SPL before using them, this is needed for
>   	  Sifive core devices that uses L2 cache to store SPL.
> diff --git a/board/asus/grouper/Kconfig b/board/asus/grouper/Kconfig
> index 912c6c5fbae8..47d9bae94682 100644
> --- a/board/asus/grouper/Kconfig
> +++ b/board/asus/grouper/Kconfig
> @@ -12,11 +12,9 @@ config SYS_CONFIG_NAME
>   config GROUPER_TPS65911
>   	bool "Enable support TI TPS65911 PMIC"
>   	select CMD_POWEROFF
> -	default n
>   
>   config GROUPER_MAX77663
>   	bool "Enable support MAXIM MAX77663 PMIC"
>   	select CMD_POWEROFF
> -	default n
>   
>   endif
> diff --git a/board/asus/transformer-t30/Kconfig b/board/asus/transformer-t30/Kconfig
> index 3c36f4ada206..accc999c435c 100644
> --- a/board/asus/transformer-t30/Kconfig
> +++ b/board/asus/transformer-t30/Kconfig
> @@ -14,7 +14,6 @@ config TRANSFORMER_SPI_BOOT
>   	select TEGRA20_SLINK
>   	select DM_SPI_FLASH
>   	select SPI_FLASH_WINBOND
> -	default n
>   	help
>   	  Tegra 3 based Transformers with Windows RT have core
>   	  boot sequence (BCT and EBT) on separate SPI FLASH
> diff --git a/board/keymile/Kconfig b/board/keymile/Kconfig
> index c6576aa6523a..f7e9b74f5782 100644
> --- a/board/keymile/Kconfig
> +++ b/board/keymile/Kconfig
> @@ -125,7 +125,6 @@ config SYS_IVM_EEPROM_PAGE_LEN
>   config PG_WCOM_UBOOT_UPDATE_SUPPORTED
>   	bool "Enable U-Boot Field Fail-Safe Update Functionality"
>   	select EVENT
> -	default n
>   	help
>   	  Indicates that field fail-safe u-boot update is supported.
>   	  This functionality works only for designs that are booting
> @@ -133,7 +132,6 @@ config PG_WCOM_UBOOT_UPDATE_SUPPORTED
>   
>   config PG_WCOM_UBOOT_BOOTPACKAGE
>   	bool "U-Boot Is Part Of Factory Boot-Package Image"
> -	default n
>   	help
>   	  Indicates that u-boot will be a part of the factory programmed
>   	  boot-package image.
> @@ -149,7 +147,6 @@ config PG_WCOM_UBOOT_UPDATE_TEXT_BASE
>   
>   config PG_WCOM_UBOOT_UPDATE
>   	bool "U-Boot Is Part Of Factory Boot-Package Image"
> -	default n
>   	help
>   	  Indicates that u-boot will be a part of the embedded software and
>   	  programmed at field.
> diff --git a/board/lg/x3-t30/Kconfig b/board/lg/x3-t30/Kconfig
> index 20ea4f5f3243..53d776019d65 100644
> --- a/board/lg/x3-t30/Kconfig
> +++ b/board/lg/x3-t30/Kconfig
> @@ -11,14 +11,12 @@ config SYS_CONFIG_NAME
>   
>   config DEVICE_P880
>   	bool "Enable support for LG Optimus 4X HD"
> -	default n
>   	help
>   	  LG Optimus 4X HD derives from x3 board but has slight
>   	  differences.
>   
>   config DEVICE_P895
>   	bool "Enable support for LG Optimus Vu"
> -	default n
>   	help
>   	  LG Optimus Vu derives from x3 board but has slight
>   	  differences.
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index 205df2f1fb65..60aed2c307ca 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -246,7 +246,6 @@ config CMD_BOOTM_PRE_LOAD
>          bool "enable pre-load on bootm"
>          depends on CMD_BOOTM
>          depends on IMAGE_PRE_LOAD
> -       default n
>          help
>            Enable support of stage pre-load for the bootm command.
>   	 This stage allow to check or modify the image provided
> @@ -2360,7 +2359,6 @@ config CMD_VIDCONSOLE
>   config CMD_SELECT_FONT
>   	bool "select font size"
>   	depends on VIDEO
> -	default n
>   	help
>   	  Enabling this will provide 'font' command.
>   	  Allows font selection at runtime.
> @@ -2880,7 +2878,6 @@ config CMD_UBIFS
>   config MMC_SPEED_MODE_SET
>   	bool "set speed mode using mmc command"
>   	depends on CMD_MMC
> -	default n
>   	help
>   	  Enable setting speed mode using mmc rescan and mmc dev commands.
>   	  The speed mode is provided as the last argument in these commands
> diff --git a/drivers/crypto/fsl/Kconfig b/drivers/crypto/fsl/Kconfig
> index 91a51cc5fe77..eaad19633f1d 100644
> --- a/drivers/crypto/fsl/Kconfig
> +++ b/drivers/crypto/fsl/Kconfig
> @@ -77,7 +77,6 @@ endif
>   config FSL_DCP_RNG
>   	bool "Enable Random Number Generator support"
>   	depends on DM_RNG
> -	default n
>   	help
>   	  Enable support for the hardware based random number generator
>   	  module of the DCP. It uses the True Random Number Generator (TRNG)
> diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig
> index 22cb9d637c5e..d10edd277467 100644
> --- a/drivers/memory/Kconfig
> +++ b/drivers/memory/Kconfig
> @@ -61,7 +61,6 @@ config TI_GPMC
>   if TI_GPMC
>   config TI_GPMC_DEBUG
>   	bool "Debug Texas Instruments GPMC timings"
> -	default n
>   	help
>   	  Enable this to print GPMC timings before and after the GPMC registers
>   	  are programmed. This should not be left enabled on production systems.
> diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
> index fccd9b89b81b..97057de8bf92 100644
> --- a/drivers/misc/Kconfig
> +++ b/drivers/misc/Kconfig
> @@ -375,7 +375,6 @@ config SPL_MXC_OCOTP
>   config NPCM_OTP
>   	bool "Nnvoton NPCM BMC On-Chip OTP Memory Support"
>   	depends on (ARM && ARCH_NPCM)
> -	default n
>   	help
>   	  Support NPCM BMC OTP memory (fuse).
>   	  To compile this driver as a module, choose M here: the module
> diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
> index 72547f00fbec..a13e6f59cbd2 100644
> --- a/drivers/mtd/nand/raw/Kconfig
> +++ b/drivers/mtd/nand/raw/Kconfig
> @@ -614,7 +614,6 @@ config ROCKCHIP_NAND
>   config ROCKCHIP_NAND_SKIP_BBTSCAN
>   	bool "Skip the automatic BBT scan with Rockchip NAND controllers"
>   	depends on ROCKCHIP_NAND
> -	default n
>   	help
>   	  Skip the automatic BBT scan with the NAND_SKIP_BBTSCAN
>   	  option when data content is not in MTD format or
> diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
> index a9617c6c58c1..76c424d75e9e 100644
> --- a/drivers/mtd/spi/Kconfig
> +++ b/drivers/mtd/spi/Kconfig
> @@ -107,7 +107,6 @@ config SPI_FLASH_SMART_HWCAPS
>   
>   config SPI_NOR_BOOT_SOFT_RESET_EXT_INVERT
>   	bool "Command extension type is INVERT for Software Reset on boot"
> -	default n
>   	help
>   	 Because of SFDP information can not be get before boot.
>   	 So define command extension type is INVERT when Software Reset on boot only.
> diff --git a/drivers/sm/Kconfig b/drivers/sm/Kconfig
> index f0987275d265..926af2863308 100644
> --- a/drivers/sm/Kconfig
> +++ b/drivers/sm/Kconfig
> @@ -4,6 +4,5 @@ config SM
>   config MESON_SM
>   	bool "Amlogic Secure Monitor driver"
>   	select SM
> -	default n
>   	help
>   	  Say y here to enable the Amlogic secure monitor driver.
> diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
> index 854b8b88daff..d1867c28758a 100644
> --- a/drivers/spi/Kconfig
> +++ b/drivers/spi/Kconfig
> @@ -451,7 +451,6 @@ config SANDBOX_SPI_MAX_CS
>   config SPI_ASPEED_SMC
>   	bool "ASPEED SPI flash controller driver"
>   	depends on DM_SPI && SPI_MEM
> -	default n
>   	help
>   	  Enable ASPEED SPI flash controller driver for AST2500
>   	  and AST2600 SoCs.
> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
> index 1a883babf4c2..b501ea514bca 100644
> --- a/drivers/usb/host/Kconfig
> +++ b/drivers/usb/host/Kconfig
> @@ -231,7 +231,6 @@ config USB_EHCI_MXS
>   config USB_EHCI_NPCM
>   	bool "Support for Nuvoton NPCM on-chip EHCI USB controller"
>   	depends on ARCH_NPCM
> -	default n
>   	---help---
>   	  Enables support for the on-chip EHCI controller on
>   	  Nuvoton NPCM chips.
> @@ -368,7 +367,6 @@ config USB_OHCI_DA8XX
>   config USB_OHCI_NPCM
>   	bool "Support for Nuvoton NPCM on-chip OHCI USB controller"
>   	depends on ARCH_NPCM
> -	default n
>   	---help---
>   	  Enables support for the on-chip OHCI controller on
>   	  Nuvoton NPCM chips.
> diff --git a/fs/ubifs/Kconfig b/fs/ubifs/Kconfig
> index 949b28841194..690e77ef8dcf 100644
> --- a/fs/ubifs/Kconfig
> +++ b/fs/ubifs/Kconfig
> @@ -8,7 +8,6 @@ config UBIFS_SILENCE_MSG
>   config UBIFS_SILENCE_DEBUG_DUMP
>   	bool "UBIFS silence debug dumps"
>   	default y if UBIFS_SILENCE_MSG
> -	default n
>   	help
>   	  Make the debug dumps from UBIFS stop printing.
>   	  This decreases size of U-Boot binary.

-- 
Angelo Dureghello
w: www.kernel-space.org
e: angelo@kernel-space.org

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Kconfig: Remove all default n/no options
  2023-10-25 13:44   ` Michal Simek
@ 2023-10-25 14:22     ` Tom Rini
  0 siblings, 0 replies; 9+ messages in thread
From: Tom Rini @ 2023-10-25 14:22 UTC (permalink / raw)
  To: Michal Simek
  Cc: u-boot, git, takahiro.akashi, Abdellatif El Khlifi,
	Alexey Romanov, Andre Przywara, Angelo Dureghello,
	Balamanikandan Gunasundar, Bin Meng, Chris Packham,
	Dario Binacchi, Fabio Estevam, Gaurav Jain, Heinrich Schuchardt,
	Holger Brunck, Huan Wang, Ilias Apalodimas, Jagan Teki,
	Jean-Marie Lemetayer, Jonas Karlman, Kever Yang, Leo,
	Lukasz Majewski, Marek Vasut, Michael Trimarchi,
	NXP i.MX U-Boot Team, Neil Armstrong, Peng Fan, Philipp Tomsich,
	Qu Wenruo, Ramon Fried, Rick Chen, Roger Knecht, Roger Quadros,
	Samuel Holland, Sean Edmond, Simon Glass, Stefan Roese,
	Stefano Babic, Svyatoslav Ryhel, Tobias Waldekranz, Tom Warren,
	Vignesh R, Vladimir Zapolskiy

[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]

On Wed, Oct 25, 2023 at 03:44:11PM +0200, Michal Simek wrote:
> 
> 
> On 10/25/23 15:40, Tom Rini wrote:
> > :n Wed, Oct 25, 2023 at 09:25:37AM +0200, Michal Simek wrote:
> > > Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all
> > 
> > > default n/no options") and again sync is required.
> > > 
> > > default n/no doesn't need to be specified. It is default option anyway.
> > > 
> > > Signed-off-by: Michal Simek <michal.simek@amd.com>
> > 
> > Thanks.  It would be good to add something to checkpatch.pl for this,
> > and it would be appropriate to do it outside of the u-boot specific
> > checks I think.  A similar patch could be done for the kernel as I see
> > 519 instances there currently.
> 
> yes that would be good.
> 
> > 
> > Reviewed-by: Tom Rini <trini@konsulko.com>
> 
> Tom: Are you using qconfig.py for defconfig syncup?

Yes, qconfig.py -sC, just like before the rename. And aside, I'm pretty
sure I remembered to run it prior to tagging -rc1 this time.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Kconfig: Remove all default n/no options
  2023-10-25 13:40 ` Tom Rini
@ 2023-10-25 13:44   ` Michal Simek
  2023-10-25 14:22     ` Tom Rini
  0 siblings, 1 reply; 9+ messages in thread
From: Michal Simek @ 2023-10-25 13:44 UTC (permalink / raw)
  To: Tom Rini
  Cc: u-boot, git, takahiro.akashi, Abdellatif El Khlifi,
	Alexey Romanov, Andre Przywara, Angelo Dureghello,
	Balamanikandan Gunasundar, Bin Meng, Chris Packham,
	Dario Binacchi, Fabio Estevam, Gaurav Jain, Heinrich Schuchardt,
	Holger Brunck, Huan Wang, Ilias Apalodimas, Jagan Teki,
	Jean-Marie Lemetayer, Jonas Karlman, Kever Yang, Leo,
	Lukasz Majewski, Marek Vasut, Michael Trimarchi,
	NXP i.MX U-Boot Team, Neil Armstrong, Peng Fan, Philipp Tomsich,
	Qu Wenruo, Ramon Fried, Rick Chen, Roger Knecht, Roger Quadros,
	Samuel Holland, Sean Edmond, Simon Glass, Stefan Roese,
	Stefano Babic, Svyatoslav Ryhel, Tobias Waldekranz, Tom Warren,
	Vignesh R, Vladimir Zapolskiy



On 10/25/23 15:40, Tom Rini wrote:
> :n Wed, Oct 25, 2023 at 09:25:37AM +0200, Michal Simek wrote:
>> Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all
> 
>> default n/no options") and again sync is required.
>>
>> default n/no doesn't need to be specified. It is default option anyway.
>>
>> Signed-off-by: Michal Simek <michal.simek@amd.com>
> 
> Thanks.  It would be good to add something to checkpatch.pl for this,
> and it would be appropriate to do it outside of the u-boot specific
> checks I think.  A similar patch could be done for the kernel as I see
> 519 instances there currently.

yes that would be good.

> 
> Reviewed-by: Tom Rini <trini@konsulko.com>

Tom: Are you using qconfig.py for defconfig syncup?

Thanks,
Michal







^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Kconfig: Remove all default n/no options
  2023-10-25  7:25 Michal Simek
  2023-10-25  8:55 ` Svyatoslav Ryhel
@ 2023-10-25 13:40 ` Tom Rini
  2023-10-25 13:44   ` Michal Simek
  2023-10-29  8:27 ` Angelo Dureghello
  2023-10-30 21:35 ` Tom Rini
  3 siblings, 1 reply; 9+ messages in thread
From: Tom Rini @ 2023-10-25 13:40 UTC (permalink / raw)
  To: Michal Simek
  Cc: u-boot, git, takahiro.akashi, Abdellatif El Khlifi,
	Alexey Romanov, Andre Przywara, Angelo Dureghello,
	Balamanikandan Gunasundar, Bin Meng, Chris Packham,
	Dario Binacchi, Fabio Estevam, Gaurav Jain, Heinrich Schuchardt,
	Holger Brunck, Huan Wang, Ilias Apalodimas, Jagan Teki,
	Jean-Marie Lemetayer, Jonas Karlman, Kever Yang, Leo,
	Lukasz Majewski, Marek Vasut, Michael Trimarchi,
	NXP i.MX U-Boot Team, Neil Armstrong, Peng Fan, Philipp Tomsich,
	Qu Wenruo, Ramon Fried, Rick Chen, Roger Knecht, Roger Quadros,
	Samuel Holland, Sean Edmond, Simon Glass, Stefan Roese,
	Stefano Babic, Svyatoslav Ryhel, Tobias Waldekranz, Tom Warren,
	Vignesh R, Vladimir Zapolskiy

[-- Attachment #1: Type: text/plain, Size: 632 bytes --]

:n Wed, Oct 25, 2023 at 09:25:37AM +0200, Michal Simek wrote:
> Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all

> default n/no options") and again sync is required.
> 
> default n/no doesn't need to be specified. It is default option anyway.
> 
> Signed-off-by: Michal Simek <michal.simek@amd.com>

Thanks.  It would be good to add something to checkpatch.pl for this,
and it would be appropriate to do it outside of the u-boot specific
checks I think.  A similar patch could be done for the kernel as I see
519 instances there currently.

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Kconfig: Remove all default n/no options
  2023-10-25  7:25 Michal Simek
@ 2023-10-25  8:55 ` Svyatoslav Ryhel
  2023-10-25 13:40 ` Tom Rini
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: Svyatoslav Ryhel @ 2023-10-25  8:55 UTC (permalink / raw)
  To: Michal Simek
  Cc: u-boot, git, takahiro.akashi, Abdellatif El Khlifi,
	Alexey Romanov, Andre Przywara, Angelo Dureghello,
	Balamanikandan Gunasundar, Bin Meng, Chris Packham,
	Dario Binacchi, Fabio Estevam, Gaurav Jain, Heinrich Schuchardt,
	Holger Brunck, Huan Wang, Ilias Apalodimas, Jagan Teki,
	Jean-Marie Lemetayer, Jonas Karlman, Kever Yang, Leo,
	Lukasz Majewski, Marek Vasut, Michael Trimarchi,
	NXP i.MX U-Boot Team, Neil Armstrong, Peng Fan, Philipp Tomsich,
	Qu Wenruo, Ramon Fried, Rick Chen, Roger Knecht, Roger Quadros,
	Samuel Holland, Sean Edmond, Simon Glass, Stefan Roese,
	Stefano Babic, Tobias Waldekranz, Tom Warren, Vignesh R,
	Vladimir Zapolskiy

ср, 25 жовт. 2023 р. о 10:25 Michal Simek <michal.simek@amd.com> пише:
>
> Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all
> default n/no options") and again sync is required.
>
> default n/no doesn't need to be specified. It is default option anyway.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
>  arch/arm/mach-imx/mxs/Kconfig      | 2 --
>  arch/arm/mach-rockchip/Kconfig     | 1 -
>  arch/arm/mach-snapdragon/Kconfig   | 1 -
>  arch/arm/mach-sunxi/Kconfig        | 1 -
>  arch/arm/mach-tegra/Kconfig        | 1 -
>  arch/m68k/Kconfig                  | 1 -
>  arch/riscv/Kconfig                 | 1 -
>  board/asus/grouper/Kconfig         | 2 --
>  board/asus/transformer-t30/Kconfig | 1 -
>  board/keymile/Kconfig              | 3 ---
>  board/lg/x3-t30/Kconfig            | 2 --
>  cmd/Kconfig                        | 3 ---
>  drivers/crypto/fsl/Kconfig         | 1 -
>  drivers/memory/Kconfig             | 1 -
>  drivers/misc/Kconfig               | 1 -
>  drivers/mtd/nand/raw/Kconfig       | 1 -
>  drivers/mtd/spi/Kconfig            | 1 -
>  drivers/sm/Kconfig                 | 1 -
>  drivers/spi/Kconfig                | 1 -
>  drivers/usb/host/Kconfig           | 2 --
>  fs/ubifs/Kconfig                   | 1 -
>  21 files changed, 29 deletions(-)
>
> diff --git a/arch/arm/mach-imx/mxs/Kconfig b/arch/arm/mach-imx/mxs/Kconfig
> index ccce6a78caa2..d2e4205c5ce5 100644
> --- a/arch/arm/mach-imx/mxs/Kconfig
> +++ b/arch/arm/mach-imx/mxs/Kconfig
> @@ -54,7 +54,6 @@ config SYS_SOC
>
>  config SPL_MXS_PMU_MINIMAL_VDD5V_CURRENT
>         bool "Force minimal current draw from VDD5V by MX28 PMU"
> -       default n
>         help
>           After setting this option, the current drawn from VDD5V
>           by the PMU is reduced to zero - the DCDC_BATT is used as
> @@ -62,7 +61,6 @@ config SPL_MXS_PMU_MINIMAL_VDD5V_CURRENT
>
>  config SPL_MXS_PMU_DISABLE_BATT_CHARGE
>         bool "Disable Battery Charging in MX28 PMU"
> -       default n
>
>  config SPL_MXS_PMU_ENABLE_4P2_LINEAR_REGULATOR
>         bool "Enable the 4P2 linear regulator in MX28 PMU"
> diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
> index c43c185c17c5..a6c69c300d00 100644
> --- a/arch/arm/mach-rockchip/Kconfig
> +++ b/arch/arm/mach-rockchip/Kconfig
> @@ -450,7 +450,6 @@ config ROCKCHIP_BOOT_MODE_REG
>  config ROCKCHIP_RK8XX_DISABLE_BOOT_ON_POWERON
>         bool "Disable device boot on power plug-in"
>         depends on PMIC_RK8XX
> -       default n
>         ---help---
>           Say Y here to prevent the device from booting up because of a plug-in
>           event. When set, the device will boot briefly to determine why it was
> diff --git a/arch/arm/mach-snapdragon/Kconfig b/arch/arm/mach-snapdragon/Kconfig
> index 0e073045be54..2fc1521e2d30 100644
> --- a/arch/arm/mach-snapdragon/Kconfig
> +++ b/arch/arm/mach-snapdragon/Kconfig
> @@ -14,7 +14,6 @@ config SPL_SYS_MALLOC_F_LEN
>
>  config SDM845
>         bool "Qualcomm Snapdragon 845 SoC"
> -       default n
>         select LINUX_KERNEL_IMAGE_HEADER
>
>  config LNX_KRNL_IMG_TEXT_OFFSET_BASE
> diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
> index 40ca7d7b3a99..a10e4c06b6a3 100644
> --- a/arch/arm/mach-sunxi/Kconfig
> +++ b/arch/arm/mach-sunxi/Kconfig
> @@ -811,7 +811,6 @@ config AXP_GPIO
>  config AXP_DISABLE_BOOT_ON_POWERON
>         bool "Disable device boot on power plug-in"
>         depends on AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
> -       default n
>         ---help---
>           Say Y here to prevent the device from booting up because of a plug-in
>           event. When set, the device will boot into the SPL briefly to
> diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
> index 464bd0798f62..0e94b84fe657 100644
> --- a/arch/arm/mach-tegra/Kconfig
> +++ b/arch/arm/mach-tegra/Kconfig
> @@ -18,7 +18,6 @@ config TEGRA_CLKRST
>  config TEGRA_CRYPTO
>         bool "Tegra AES128 crypto module"
>         select AES
> -       default n
>
>  config TEGRA_GP_PADCTRL
>         bool
> diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
> index 587edd50d7e8..b288c65e7fd1 100644
> --- a/arch/m68k/Kconfig
> +++ b/arch/m68k/Kconfig
> @@ -200,7 +200,6 @@ source "board/sysam/stmark2/Kconfig"
>
>  config M68K_QEMU
>         bool "Build with workarounds for incomplete QEMU emulation"
> -       default n
>         help
>           QEMU 8.x currently does not implement RAMBAR accesses and
>           DMA timers. Enable this option for U-Boot CI purposes only
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index e291456530bd..8fc81fb284cd 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -68,7 +68,6 @@ config SPL_SYS_DCACHE_OFF
>  config SPL_ZERO_MEM_BEFORE_USE
>         bool "Zero memory before use"
>         depends on SPL
> -       default n
>         help
>           Zero stack/GD/malloc area in SPL before using them, this is needed for
>           Sifive core devices that uses L2 cache to store SPL.
> diff --git a/board/asus/grouper/Kconfig b/board/asus/grouper/Kconfig
> index 912c6c5fbae8..47d9bae94682 100644
> --- a/board/asus/grouper/Kconfig
> +++ b/board/asus/grouper/Kconfig
> @@ -12,11 +12,9 @@ config SYS_CONFIG_NAME
>  config GROUPER_TPS65911
>         bool "Enable support TI TPS65911 PMIC"
>         select CMD_POWEROFF
> -       default n
>
>  config GROUPER_MAX77663
>         bool "Enable support MAXIM MAX77663 PMIC"
>         select CMD_POWEROFF
> -       default n
>
>  endif
> diff --git a/board/asus/transformer-t30/Kconfig b/board/asus/transformer-t30/Kconfig
> index 3c36f4ada206..accc999c435c 100644
> --- a/board/asus/transformer-t30/Kconfig
> +++ b/board/asus/transformer-t30/Kconfig
> @@ -14,7 +14,6 @@ config TRANSFORMER_SPI_BOOT
>         select TEGRA20_SLINK
>         select DM_SPI_FLASH
>         select SPI_FLASH_WINBOND
> -       default n
>         help
>           Tegra 3 based Transformers with Windows RT have core
>           boot sequence (BCT and EBT) on separate SPI FLASH
> diff --git a/board/keymile/Kconfig b/board/keymile/Kconfig
> index c6576aa6523a..f7e9b74f5782 100644
> --- a/board/keymile/Kconfig
> +++ b/board/keymile/Kconfig
> @@ -125,7 +125,6 @@ config SYS_IVM_EEPROM_PAGE_LEN
>  config PG_WCOM_UBOOT_UPDATE_SUPPORTED
>         bool "Enable U-Boot Field Fail-Safe Update Functionality"
>         select EVENT
> -       default n
>         help
>           Indicates that field fail-safe u-boot update is supported.
>           This functionality works only for designs that are booting
> @@ -133,7 +132,6 @@ config PG_WCOM_UBOOT_UPDATE_SUPPORTED
>
>  config PG_WCOM_UBOOT_BOOTPACKAGE
>         bool "U-Boot Is Part Of Factory Boot-Package Image"
> -       default n
>         help
>           Indicates that u-boot will be a part of the factory programmed
>           boot-package image.
> @@ -149,7 +147,6 @@ config PG_WCOM_UBOOT_UPDATE_TEXT_BASE
>
>  config PG_WCOM_UBOOT_UPDATE
>         bool "U-Boot Is Part Of Factory Boot-Package Image"
> -       default n
>         help
>           Indicates that u-boot will be a part of the embedded software and
>           programmed at field.
> diff --git a/board/lg/x3-t30/Kconfig b/board/lg/x3-t30/Kconfig
> index 20ea4f5f3243..53d776019d65 100644
> --- a/board/lg/x3-t30/Kconfig
> +++ b/board/lg/x3-t30/Kconfig
> @@ -11,14 +11,12 @@ config SYS_CONFIG_NAME
>
>  config DEVICE_P880
>         bool "Enable support for LG Optimus 4X HD"
> -       default n
>         help
>           LG Optimus 4X HD derives from x3 board but has slight
>           differences.
>
>  config DEVICE_P895
>         bool "Enable support for LG Optimus Vu"
> -       default n
>         help
>           LG Optimus Vu derives from x3 board but has slight
>           differences.
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index 205df2f1fb65..60aed2c307ca 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -246,7 +246,6 @@ config CMD_BOOTM_PRE_LOAD
>         bool "enable pre-load on bootm"
>         depends on CMD_BOOTM
>         depends on IMAGE_PRE_LOAD
> -       default n
>         help
>           Enable support of stage pre-load for the bootm command.
>          This stage allow to check or modify the image provided
> @@ -2360,7 +2359,6 @@ config CMD_VIDCONSOLE
>  config CMD_SELECT_FONT
>         bool "select font size"
>         depends on VIDEO
> -       default n
>         help
>           Enabling this will provide 'font' command.
>           Allows font selection at runtime.
> @@ -2880,7 +2878,6 @@ config CMD_UBIFS
>  config MMC_SPEED_MODE_SET
>         bool "set speed mode using mmc command"
>         depends on CMD_MMC
> -       default n
>         help
>           Enable setting speed mode using mmc rescan and mmc dev commands.
>           The speed mode is provided as the last argument in these commands
> diff --git a/drivers/crypto/fsl/Kconfig b/drivers/crypto/fsl/Kconfig
> index 91a51cc5fe77..eaad19633f1d 100644
> --- a/drivers/crypto/fsl/Kconfig
> +++ b/drivers/crypto/fsl/Kconfig
> @@ -77,7 +77,6 @@ endif
>  config FSL_DCP_RNG
>         bool "Enable Random Number Generator support"
>         depends on DM_RNG
> -       default n
>         help
>           Enable support for the hardware based random number generator
>           module of the DCP. It uses the True Random Number Generator (TRNG)
> diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig
> index 22cb9d637c5e..d10edd277467 100644
> --- a/drivers/memory/Kconfig
> +++ b/drivers/memory/Kconfig
> @@ -61,7 +61,6 @@ config TI_GPMC
>  if TI_GPMC
>  config TI_GPMC_DEBUG
>         bool "Debug Texas Instruments GPMC timings"
> -       default n
>         help
>           Enable this to print GPMC timings before and after the GPMC registers
>           are programmed. This should not be left enabled on production systems.
> diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
> index fccd9b89b81b..97057de8bf92 100644
> --- a/drivers/misc/Kconfig
> +++ b/drivers/misc/Kconfig
> @@ -375,7 +375,6 @@ config SPL_MXC_OCOTP
>  config NPCM_OTP
>         bool "Nnvoton NPCM BMC On-Chip OTP Memory Support"
>         depends on (ARM && ARCH_NPCM)
> -       default n
>         help
>           Support NPCM BMC OTP memory (fuse).
>           To compile this driver as a module, choose M here: the module
> diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
> index 72547f00fbec..a13e6f59cbd2 100644
> --- a/drivers/mtd/nand/raw/Kconfig
> +++ b/drivers/mtd/nand/raw/Kconfig
> @@ -614,7 +614,6 @@ config ROCKCHIP_NAND
>  config ROCKCHIP_NAND_SKIP_BBTSCAN
>         bool "Skip the automatic BBT scan with Rockchip NAND controllers"
>         depends on ROCKCHIP_NAND
> -       default n
>         help
>           Skip the automatic BBT scan with the NAND_SKIP_BBTSCAN
>           option when data content is not in MTD format or
> diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
> index a9617c6c58c1..76c424d75e9e 100644
> --- a/drivers/mtd/spi/Kconfig
> +++ b/drivers/mtd/spi/Kconfig
> @@ -107,7 +107,6 @@ config SPI_FLASH_SMART_HWCAPS
>
>  config SPI_NOR_BOOT_SOFT_RESET_EXT_INVERT
>         bool "Command extension type is INVERT for Software Reset on boot"
> -       default n
>         help
>          Because of SFDP information can not be get before boot.
>          So define command extension type is INVERT when Software Reset on boot only.
> diff --git a/drivers/sm/Kconfig b/drivers/sm/Kconfig
> index f0987275d265..926af2863308 100644
> --- a/drivers/sm/Kconfig
> +++ b/drivers/sm/Kconfig
> @@ -4,6 +4,5 @@ config SM
>  config MESON_SM
>         bool "Amlogic Secure Monitor driver"
>         select SM
> -       default n
>         help
>           Say y here to enable the Amlogic secure monitor driver.
> diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
> index 854b8b88daff..d1867c28758a 100644
> --- a/drivers/spi/Kconfig
> +++ b/drivers/spi/Kconfig
> @@ -451,7 +451,6 @@ config SANDBOX_SPI_MAX_CS
>  config SPI_ASPEED_SMC
>         bool "ASPEED SPI flash controller driver"
>         depends on DM_SPI && SPI_MEM
> -       default n
>         help
>           Enable ASPEED SPI flash controller driver for AST2500
>           and AST2600 SoCs.
> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
> index 1a883babf4c2..b501ea514bca 100644
> --- a/drivers/usb/host/Kconfig
> +++ b/drivers/usb/host/Kconfig
> @@ -231,7 +231,6 @@ config USB_EHCI_MXS
>  config USB_EHCI_NPCM
>         bool "Support for Nuvoton NPCM on-chip EHCI USB controller"
>         depends on ARCH_NPCM
> -       default n
>         ---help---
>           Enables support for the on-chip EHCI controller on
>           Nuvoton NPCM chips.
> @@ -368,7 +367,6 @@ config USB_OHCI_DA8XX
>  config USB_OHCI_NPCM
>         bool "Support for Nuvoton NPCM on-chip OHCI USB controller"
>         depends on ARCH_NPCM
> -       default n
>         ---help---
>           Enables support for the on-chip OHCI controller on
>           Nuvoton NPCM chips.
> diff --git a/fs/ubifs/Kconfig b/fs/ubifs/Kconfig
> index 949b28841194..690e77ef8dcf 100644
> --- a/fs/ubifs/Kconfig
> +++ b/fs/ubifs/Kconfig
> @@ -8,7 +8,6 @@ config UBIFS_SILENCE_MSG
>  config UBIFS_SILENCE_DEBUG_DUMP
>         bool "UBIFS silence debug dumps"
>         default y if UBIFS_SILENCE_MSG
> -       default n
>         help
>           Make the debug dumps from UBIFS stop printing.
>           This decreases size of U-Boot binary.
> --
> 2.36.1
>

Hello Michal!
I ran tests for all Tegra boards and checked specifically grouper,
tf_t30 and lg_x3.
So far no issues. Thanks

Reviewed-by: Svyatoslav Ryhel <clamor95@gmail.com> # tegra

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] Kconfig: Remove all default n/no options
@ 2023-10-25  7:25 Michal Simek
  2023-10-25  8:55 ` Svyatoslav Ryhel
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Michal Simek @ 2023-10-25  7:25 UTC (permalink / raw)
  To: u-boot, git
  Cc: takahiro.akashi, Abdellatif El Khlifi, Alexey Romanov,
	Andre Przywara, Angelo Dureghello, Balamanikandan Gunasundar,
	Bin Meng, Chris Packham, Dario Binacchi, Fabio Estevam,
	Gaurav Jain, Heinrich Schuchardt, Holger Brunck, Huan Wang,
	Ilias Apalodimas, Jagan Teki, Jean-Marie Lemetayer,
	Jonas Karlman, Kever Yang, Leo, Lukasz Majewski, Marek Vasut,
	Michael Trimarchi, NXP i.MX U-Boot Team, Neil Armstrong,
	Peng Fan, Philipp Tomsich, Qu Wenruo, Ramon Fried, Rick Chen,
	Roger Knecht, Roger Quadros, Samuel Holland, Sean Edmond,
	Simon Glass, Stefan Roese, Stefano Babic, Svyatoslav Ryhel,
	Tobias Waldekranz, Tom Warren, Vignesh R, Vladimir Zapolskiy

Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all
default n/no options") and again sync is required.

default n/no doesn't need to be specified. It is default option anyway.

Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 arch/arm/mach-imx/mxs/Kconfig      | 2 --
 arch/arm/mach-rockchip/Kconfig     | 1 -
 arch/arm/mach-snapdragon/Kconfig   | 1 -
 arch/arm/mach-sunxi/Kconfig        | 1 -
 arch/arm/mach-tegra/Kconfig        | 1 -
 arch/m68k/Kconfig                  | 1 -
 arch/riscv/Kconfig                 | 1 -
 board/asus/grouper/Kconfig         | 2 --
 board/asus/transformer-t30/Kconfig | 1 -
 board/keymile/Kconfig              | 3 ---
 board/lg/x3-t30/Kconfig            | 2 --
 cmd/Kconfig                        | 3 ---
 drivers/crypto/fsl/Kconfig         | 1 -
 drivers/memory/Kconfig             | 1 -
 drivers/misc/Kconfig               | 1 -
 drivers/mtd/nand/raw/Kconfig       | 1 -
 drivers/mtd/spi/Kconfig            | 1 -
 drivers/sm/Kconfig                 | 1 -
 drivers/spi/Kconfig                | 1 -
 drivers/usb/host/Kconfig           | 2 --
 fs/ubifs/Kconfig                   | 1 -
 21 files changed, 29 deletions(-)

diff --git a/arch/arm/mach-imx/mxs/Kconfig b/arch/arm/mach-imx/mxs/Kconfig
index ccce6a78caa2..d2e4205c5ce5 100644
--- a/arch/arm/mach-imx/mxs/Kconfig
+++ b/arch/arm/mach-imx/mxs/Kconfig
@@ -54,7 +54,6 @@ config SYS_SOC
 
 config SPL_MXS_PMU_MINIMAL_VDD5V_CURRENT
 	bool "Force minimal current draw from VDD5V by MX28 PMU"
-	default n
 	help
 	  After setting this option, the current drawn from VDD5V
 	  by the PMU is reduced to zero - the DCDC_BATT is used as
@@ -62,7 +61,6 @@ config SPL_MXS_PMU_MINIMAL_VDD5V_CURRENT
 
 config SPL_MXS_PMU_DISABLE_BATT_CHARGE
 	bool "Disable Battery Charging in MX28 PMU"
-	default n
 
 config SPL_MXS_PMU_ENABLE_4P2_LINEAR_REGULATOR
 	bool "Enable the 4P2 linear regulator in MX28 PMU"
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index c43c185c17c5..a6c69c300d00 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -450,7 +450,6 @@ config ROCKCHIP_BOOT_MODE_REG
 config ROCKCHIP_RK8XX_DISABLE_BOOT_ON_POWERON
 	bool "Disable device boot on power plug-in"
 	depends on PMIC_RK8XX
-	default n
 	---help---
 	  Say Y here to prevent the device from booting up because of a plug-in
 	  event. When set, the device will boot briefly to determine why it was
diff --git a/arch/arm/mach-snapdragon/Kconfig b/arch/arm/mach-snapdragon/Kconfig
index 0e073045be54..2fc1521e2d30 100644
--- a/arch/arm/mach-snapdragon/Kconfig
+++ b/arch/arm/mach-snapdragon/Kconfig
@@ -14,7 +14,6 @@ config SPL_SYS_MALLOC_F_LEN
 
 config SDM845
 	bool "Qualcomm Snapdragon 845 SoC"
-	default n
 	select LINUX_KERNEL_IMAGE_HEADER
 
 config LNX_KRNL_IMG_TEXT_OFFSET_BASE
diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index 40ca7d7b3a99..a10e4c06b6a3 100644
--- a/arch/arm/mach-sunxi/Kconfig
+++ b/arch/arm/mach-sunxi/Kconfig
@@ -811,7 +811,6 @@ config AXP_GPIO
 config AXP_DISABLE_BOOT_ON_POWERON
 	bool "Disable device boot on power plug-in"
 	depends on AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
-	default n
 	---help---
 	  Say Y here to prevent the device from booting up because of a plug-in
 	  event. When set, the device will boot into the SPL briefly to
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
index 464bd0798f62..0e94b84fe657 100644
--- a/arch/arm/mach-tegra/Kconfig
+++ b/arch/arm/mach-tegra/Kconfig
@@ -18,7 +18,6 @@ config TEGRA_CLKRST
 config TEGRA_CRYPTO
 	bool "Tegra AES128 crypto module"
 	select AES
-	default n
 
 config TEGRA_GP_PADCTRL
 	bool
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
index 587edd50d7e8..b288c65e7fd1 100644
--- a/arch/m68k/Kconfig
+++ b/arch/m68k/Kconfig
@@ -200,7 +200,6 @@ source "board/sysam/stmark2/Kconfig"
 
 config M68K_QEMU
 	bool "Build with workarounds for incomplete QEMU emulation"
-	default n
 	help
 	  QEMU 8.x currently does not implement RAMBAR accesses and
 	  DMA timers. Enable this option for U-Boot CI purposes only
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index e291456530bd..8fc81fb284cd 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -68,7 +68,6 @@ config SPL_SYS_DCACHE_OFF
 config SPL_ZERO_MEM_BEFORE_USE
 	bool "Zero memory before use"
 	depends on SPL
-	default n
 	help
 	  Zero stack/GD/malloc area in SPL before using them, this is needed for
 	  Sifive core devices that uses L2 cache to store SPL.
diff --git a/board/asus/grouper/Kconfig b/board/asus/grouper/Kconfig
index 912c6c5fbae8..47d9bae94682 100644
--- a/board/asus/grouper/Kconfig
+++ b/board/asus/grouper/Kconfig
@@ -12,11 +12,9 @@ config SYS_CONFIG_NAME
 config GROUPER_TPS65911
 	bool "Enable support TI TPS65911 PMIC"
 	select CMD_POWEROFF
-	default n
 
 config GROUPER_MAX77663
 	bool "Enable support MAXIM MAX77663 PMIC"
 	select CMD_POWEROFF
-	default n
 
 endif
diff --git a/board/asus/transformer-t30/Kconfig b/board/asus/transformer-t30/Kconfig
index 3c36f4ada206..accc999c435c 100644
--- a/board/asus/transformer-t30/Kconfig
+++ b/board/asus/transformer-t30/Kconfig
@@ -14,7 +14,6 @@ config TRANSFORMER_SPI_BOOT
 	select TEGRA20_SLINK
 	select DM_SPI_FLASH
 	select SPI_FLASH_WINBOND
-	default n
 	help
 	  Tegra 3 based Transformers with Windows RT have core
 	  boot sequence (BCT and EBT) on separate SPI FLASH
diff --git a/board/keymile/Kconfig b/board/keymile/Kconfig
index c6576aa6523a..f7e9b74f5782 100644
--- a/board/keymile/Kconfig
+++ b/board/keymile/Kconfig
@@ -125,7 +125,6 @@ config SYS_IVM_EEPROM_PAGE_LEN
 config PG_WCOM_UBOOT_UPDATE_SUPPORTED
 	bool "Enable U-Boot Field Fail-Safe Update Functionality"
 	select EVENT
-	default n
 	help
 	  Indicates that field fail-safe u-boot update is supported.
 	  This functionality works only for designs that are booting
@@ -133,7 +132,6 @@ config PG_WCOM_UBOOT_UPDATE_SUPPORTED
 
 config PG_WCOM_UBOOT_BOOTPACKAGE
 	bool "U-Boot Is Part Of Factory Boot-Package Image"
-	default n
 	help
 	  Indicates that u-boot will be a part of the factory programmed
 	  boot-package image.
@@ -149,7 +147,6 @@ config PG_WCOM_UBOOT_UPDATE_TEXT_BASE
 
 config PG_WCOM_UBOOT_UPDATE
 	bool "U-Boot Is Part Of Factory Boot-Package Image"
-	default n
 	help
 	  Indicates that u-boot will be a part of the embedded software and
 	  programmed at field.
diff --git a/board/lg/x3-t30/Kconfig b/board/lg/x3-t30/Kconfig
index 20ea4f5f3243..53d776019d65 100644
--- a/board/lg/x3-t30/Kconfig
+++ b/board/lg/x3-t30/Kconfig
@@ -11,14 +11,12 @@ config SYS_CONFIG_NAME
 
 config DEVICE_P880
 	bool "Enable support for LG Optimus 4X HD"
-	default n
 	help
 	  LG Optimus 4X HD derives from x3 board but has slight
 	  differences.
 
 config DEVICE_P895
 	bool "Enable support for LG Optimus Vu"
-	default n
 	help
 	  LG Optimus Vu derives from x3 board but has slight
 	  differences.
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 205df2f1fb65..60aed2c307ca 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -246,7 +246,6 @@ config CMD_BOOTM_PRE_LOAD
        bool "enable pre-load on bootm"
        depends on CMD_BOOTM
        depends on IMAGE_PRE_LOAD
-       default n
        help
          Enable support of stage pre-load for the bootm command.
 	 This stage allow to check or modify the image provided
@@ -2360,7 +2359,6 @@ config CMD_VIDCONSOLE
 config CMD_SELECT_FONT
 	bool "select font size"
 	depends on VIDEO
-	default n
 	help
 	  Enabling this will provide 'font' command.
 	  Allows font selection at runtime.
@@ -2880,7 +2878,6 @@ config CMD_UBIFS
 config MMC_SPEED_MODE_SET
 	bool "set speed mode using mmc command"
 	depends on CMD_MMC
-	default n
 	help
 	  Enable setting speed mode using mmc rescan and mmc dev commands.
 	  The speed mode is provided as the last argument in these commands
diff --git a/drivers/crypto/fsl/Kconfig b/drivers/crypto/fsl/Kconfig
index 91a51cc5fe77..eaad19633f1d 100644
--- a/drivers/crypto/fsl/Kconfig
+++ b/drivers/crypto/fsl/Kconfig
@@ -77,7 +77,6 @@ endif
 config FSL_DCP_RNG
 	bool "Enable Random Number Generator support"
 	depends on DM_RNG
-	default n
 	help
 	  Enable support for the hardware based random number generator
 	  module of the DCP. It uses the True Random Number Generator (TRNG)
diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig
index 22cb9d637c5e..d10edd277467 100644
--- a/drivers/memory/Kconfig
+++ b/drivers/memory/Kconfig
@@ -61,7 +61,6 @@ config TI_GPMC
 if TI_GPMC
 config TI_GPMC_DEBUG
 	bool "Debug Texas Instruments GPMC timings"
-	default n
 	help
 	  Enable this to print GPMC timings before and after the GPMC registers
 	  are programmed. This should not be left enabled on production systems.
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index fccd9b89b81b..97057de8bf92 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -375,7 +375,6 @@ config SPL_MXC_OCOTP
 config NPCM_OTP
 	bool "Nnvoton NPCM BMC On-Chip OTP Memory Support"
 	depends on (ARM && ARCH_NPCM)
-	default n
 	help
 	  Support NPCM BMC OTP memory (fuse).
 	  To compile this driver as a module, choose M here: the module
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 72547f00fbec..a13e6f59cbd2 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -614,7 +614,6 @@ config ROCKCHIP_NAND
 config ROCKCHIP_NAND_SKIP_BBTSCAN
 	bool "Skip the automatic BBT scan with Rockchip NAND controllers"
 	depends on ROCKCHIP_NAND
-	default n
 	help
 	  Skip the automatic BBT scan with the NAND_SKIP_BBTSCAN
 	  option when data content is not in MTD format or
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
index a9617c6c58c1..76c424d75e9e 100644
--- a/drivers/mtd/spi/Kconfig
+++ b/drivers/mtd/spi/Kconfig
@@ -107,7 +107,6 @@ config SPI_FLASH_SMART_HWCAPS
 
 config SPI_NOR_BOOT_SOFT_RESET_EXT_INVERT
 	bool "Command extension type is INVERT for Software Reset on boot"
-	default n
 	help
 	 Because of SFDP information can not be get before boot.
 	 So define command extension type is INVERT when Software Reset on boot only.
diff --git a/drivers/sm/Kconfig b/drivers/sm/Kconfig
index f0987275d265..926af2863308 100644
--- a/drivers/sm/Kconfig
+++ b/drivers/sm/Kconfig
@@ -4,6 +4,5 @@ config SM
 config MESON_SM
 	bool "Amlogic Secure Monitor driver"
 	select SM
-	default n
 	help
 	  Say y here to enable the Amlogic secure monitor driver.
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 854b8b88daff..d1867c28758a 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -451,7 +451,6 @@ config SANDBOX_SPI_MAX_CS
 config SPI_ASPEED_SMC
 	bool "ASPEED SPI flash controller driver"
 	depends on DM_SPI && SPI_MEM
-	default n
 	help
 	  Enable ASPEED SPI flash controller driver for AST2500
 	  and AST2600 SoCs.
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index 1a883babf4c2..b501ea514bca 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -231,7 +231,6 @@ config USB_EHCI_MXS
 config USB_EHCI_NPCM
 	bool "Support for Nuvoton NPCM on-chip EHCI USB controller"
 	depends on ARCH_NPCM
-	default n
 	---help---
 	  Enables support for the on-chip EHCI controller on
 	  Nuvoton NPCM chips.
@@ -368,7 +367,6 @@ config USB_OHCI_DA8XX
 config USB_OHCI_NPCM
 	bool "Support for Nuvoton NPCM on-chip OHCI USB controller"
 	depends on ARCH_NPCM
-	default n
 	---help---
 	  Enables support for the on-chip OHCI controller on
 	  Nuvoton NPCM chips.
diff --git a/fs/ubifs/Kconfig b/fs/ubifs/Kconfig
index 949b28841194..690e77ef8dcf 100644
--- a/fs/ubifs/Kconfig
+++ b/fs/ubifs/Kconfig
@@ -8,7 +8,6 @@ config UBIFS_SILENCE_MSG
 config UBIFS_SILENCE_DEBUG_DUMP
 	bool "UBIFS silence debug dumps"
 	default y if UBIFS_SILENCE_MSG
-	default n
 	help
 	  Make the debug dumps from UBIFS stop printing.
 	  This decreases size of U-Boot binary.
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-10-30 21:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27  6:48 [PATCH] Kconfig: Remove all default n/no options Michal Simek
2021-08-31 22:10 ` Tom Rini
2023-10-25  7:25 Michal Simek
2023-10-25  8:55 ` Svyatoslav Ryhel
2023-10-25 13:40 ` Tom Rini
2023-10-25 13:44   ` Michal Simek
2023-10-25 14:22     ` Tom Rini
2023-10-29  8:27 ` Angelo Dureghello
2023-10-30 21:35 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.