]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
treewide: Kconfig: use bool instead of tristate
authorAnshul Dalal <anshuld@ti.com>
Thu, 25 Jun 2026 03:17:06 +0000 (08:47 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 10 Jul 2026 21:45:57 +0000 (15:45 -0600)
U-Boot does not support modules, so having tristate options is useless.

Therefore this patch does a blind replace of all tristate options to
bool tree-wide.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
Reviewed-by: Heiko Schocher <hs@nabladev.com>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
Reviewed-by: Romain Gantois <romain.gantois@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
19 files changed:
board/st/common/Kconfig
cmd/Kconfig
drivers/cache/Kconfig
drivers/clk/Kconfig
drivers/firmware/Kconfig
drivers/i2c/Kconfig
drivers/i2c/muxes/Kconfig
drivers/i3c/Kconfig
drivers/i3c/master/Kconfig
drivers/memory/Kconfig
drivers/misc/Kconfig
drivers/mmc/Kconfig
drivers/mtd/nand/Kconfig
drivers/net/phy/Kconfig
drivers/spi/Kconfig
drivers/ufs/Kconfig
drivers/usb/cdns3/Kconfig
drivers/usb/musb-new/Kconfig
drivers/usb/tcpm/Kconfig

index 3d00f3f3331b405bc74a0241cece0a1393dc0491..aafbffbf6db93b81b926f9ebfe63ca29148118af 100644 (file)
@@ -14,7 +14,7 @@ config DFU_ALT_RAM0
          This defines the partitions of ram used to build dfu dynamically.
 
 config TYPEC_STUSB160X
-       tristate "STMicroelectronics STUSB160X Type-C controller driver"
+       bool "STMicroelectronics STUSB160X Type-C controller driver"
        depends on DM_I2C
        help
          Say Y if your system has STMicroelectronics STUSB160X Type-C port
index 637119d3ff5960cda93e2d8ed26061e39ac132be..a527b218949fae508e4c2f376569689d847ca00f 100644 (file)
@@ -3185,7 +3185,7 @@ config CMD_STACKPROTECTOR_TEST
 endmenu
 
 config CMD_UBI
-       tristate "Enable UBI - Unsorted block images commands"
+       bool "Enable UBI - Unsorted block images commands"
        select MTD_UBI
        help
          UBI is a software layer above MTD layer which admits use of LVM-like
@@ -3205,7 +3205,7 @@ config CMD_UBI_RENAME
          ubi rename <oldname> <newname>
 
 config CMD_UBIFS
-       tristate "Enable UBIFS - Unsorted block images filesystem commands"
+       bool "Enable UBIFS - Unsorted block images filesystem commands"
        depends on CMD_UBI
        default y if CMD_UBI
        select LZO
index 3bf5c7f5dbf8121ff1d3ab9e0c21defe93eb08ad..5ebc8842acd4010aedf4ceaab3598652fdb45a4f 100644 (file)
@@ -14,7 +14,7 @@ config CACHE
          configuring settings that be found from a device tree file.
 
 config L2X0_CACHE
-       tristate "PL310 cache driver"
+       bool "PL310 cache driver"
        select CACHE
        depends on ARM
        help
index addcece4da36dd651f810b4366ba48f7f77fa61e..e69b05438179c3f24c62f5fee74b72e6efc5e2b6 100644 (file)
@@ -216,7 +216,7 @@ config CLK_HSDK
          Synopsys ARC HSDK-4xD boards
 
 config CLK_VERSACLOCK
-       tristate "Enable VersaClock 5/6 devices"
+       bool "Enable VersaClock 5/6 devices"
        depends on CLK
        depends on CLK_CCF
        depends on OF_CONTROL
index 220de7319506145ed65919ad878565883ca02853..f524f741e548aee559bff72088837738168dff59 100644 (file)
@@ -14,7 +14,7 @@ config ARM_PSCI_FW
        select FIRMWARE
 
 config TI_SCI_PROTOCOL
-       tristate "TI System Control Interface (TISCI) Message Protocol"
+       bool "TI System Control Interface (TISCI) Message Protocol"
        depends on K3_SEC_PROXY
        select DEVRES
        select FIRMWARE
index ab5af17858c8b1489cb57763282d2a45a022bcac..5f6586c78ba72e56f7890ba50a739fa09d7bfc3b 100644 (file)
@@ -98,7 +98,7 @@ config SYS_I2C_EARLY_INIT
          board_early_init_f.
 
 config I2C_CROS_EC_TUNNEL
-       tristate "Chrome OS EC tunnel I2C bus"
+       bool "Chrome OS EC tunnel I2C bus"
        depends on CROS_EC
        help
          This provides an I2C bus that will tunnel i2c commands through to
@@ -213,14 +213,14 @@ config SYS_FSL_I2C4_OFFSET
 endif
 
 config SYS_I2C_CADENCE
-       tristate "Cadence I2C Controller"
+       bool "Cadence I2C Controller"
        depends on DM_I2C
        help
          Say yes here to select Cadence I2C Host Controller. This controller is
          e.g. used by Xilinx Zynq.
 
 config SYS_I2C_CA
-       tristate "Cortina-Access I2C Controller"
+       bool "Cortina-Access I2C Controller"
        depends on DM_I2C && CORTINA_PLATFORM
        help
          Add support for the Cortina Access I2C host controller.
index 9f642e4451f3fdb4705f3fee2345dded987a597e..89a4b82458aff8281e9dab3579d8fe4ea2b6c19d 100644 (file)
@@ -26,14 +26,14 @@ config I2C_ARB_GPIO_CHALLENGE
          a GPIO.
 
 config I2C_MUX_PCA9541
-       tristate "NXP PCA9541 I2C Master Selector"
+       bool "NXP PCA9541 I2C Master Selector"
        depends on I2C_MUX
        help
          If you say yes here you get support for the NXP PCA9541
          I2C Master Selector.
 
 config I2C_MUX_PCA954x
-       tristate "TI PCA954x I2C Mux/switches"
+       bool "TI PCA954x I2C Mux/switches"
        depends on I2C_MUX
        help
          If you say yes here you get support for the TI PCA954x I2C mux/switch
@@ -49,7 +49,7 @@ config I2C_MUX_PCA954x
                MAX7356, MAX7357, MAX7358, MAX7367, MAX7368 and MAX7369
 
 config I2C_MUX_GPIO
-       tristate "GPIO-based I2C multiplexer"
+       bool "GPIO-based I2C multiplexer"
        depends on I2C_MUX && DM_GPIO
        select DEVRES
        help
index 48341f9b8737bfa2735ab6a26d0d3504bc7d5e55..41a4177b3ae43630b7d70413e929f8163714dbd2 100644 (file)
@@ -1,5 +1,5 @@
 menuconfig I3C
-       tristate "I3C support"
+       bool "I3C support"
        select I2C
        select DEVRES
        help
index 79776f60ae4de01f4b4241e094aacc7acd7bb7e5..63467ef9cc241e3d251aa96fc97d7ecee872060f 100644 (file)
@@ -1,5 +1,5 @@
 config DW_I3C_MASTER
-       tristate "Synopsys DesignWare I3C master driver"
+       bool "Synopsys DesignWare I3C master driver"
        depends on I3C
        help
          Support for Synopsys DesignWare MIPI I3C Controller.
index 82d0fa80396511f8fabdc2b83e8b9190704e7ff0..5f029fd3e70b1419bd7a173d7ee2a6319313cba2 100644 (file)
@@ -55,7 +55,7 @@ config STM32_OMM
          - the time between 2 transactions in multiplexed mode.
 
 config TI_AEMIF
-       tristate "Texas Instruments AEMIF driver"
+       bool "Texas Instruments AEMIF driver"
        depends on ARCH_KEYSTONE || ARCH_DAVINCI
        help
          This driver is for the AEMIF module available in Texas Instruments
index bde5c640de8513854830451191fd4d4db68d7c95..44415f24ae17a11e515e15180754f32c95e5e534 100644 (file)
@@ -505,7 +505,7 @@ config TURRIS_OMNIA_MCU
          board power off.
 
 config USB_HUB_USB251XB
-       tristate "USB251XB Hub Controller Configuration Driver"
+       bool "USB251XB Hub Controller Configuration Driver"
        depends on I2C
        help
          This option enables support for configuration via SMBus of the
index 0a40fca2596f4e7efd4525c49614771a08b9df8d..f9f7aa5cf97df8b9c01168c2dabfd0df63969c90 100644 (file)
@@ -576,7 +576,7 @@ config MMC_SDHCI_ATMEL
          specification.
 
 config MMC_SDHCI_BCM2835
-       tristate "SDHCI support for the BCM2835 SD/MMC Controller"
+       bool "SDHCI support for the BCM2835 SD/MMC Controller"
        depends on ARCH_BCM283X
        depends on MMC_SDHCI
        select MMC_SDHCI_IO_ACCESSORS
@@ -589,7 +589,7 @@ config MMC_SDHCI_BCM2835
          If unsure, say N.
 
 config MMC_SDHCI_BCMSTB
-       tristate "SDHCI support for the BCMSTB SD/MMC Controller"
+       bool "SDHCI support for the BCMSTB SD/MMC Controller"
        depends on MMC_SDHCI && (ARCH_BCMSTB || ARCH_BCM283X)
        help
          This selects the Broadcom set-top box SD/MMC controller.
index 78ae04bdcbaed0b85c9e7e69f71af2b1856cb3fe..5ffec9502b6eb250a5cf03928eee1ced4ac41c22 100644 (file)
@@ -1,5 +1,5 @@
 config MTD_NAND_CORE
-       tristate
+       bool
 
 source "drivers/mtd/nand/raw/Kconfig"
 
index 3f7953d693c90d5e9d8b4c8acf1e1fea8bd24637..ee438524490aa51fb6d89ba4d8c73310f3ff6b98 100644 (file)
@@ -233,7 +233,7 @@ config PHY_MICREL_KSZ8XXX
 endif # PHY_MICREL
 
 config PHY_MOTORCOMM
-       tristate "Motorcomm PHYs"
+       bool "Motorcomm PHYs"
        help
          Enables support for Motorcomm network PHYs.
          Currently supports the YT8511 and YT8531 Gigabit Ethernet PHYs.
@@ -246,7 +246,7 @@ config PHY_NATSEMI
        bool "National Semiconductor Ethernet PHYs support"
 
 config PHY_NXP_C45_TJA11XX
-       tristate "NXP C45 TJA11XX PHYs"
+       bool "NXP C45 TJA11XX PHYs"
        select DEVRES
        help
          Enable support for NXP C45 TJA11XX PHYs.
index 009dd997efba63b472580201787309a65ddae3c1..007ad5e773340d605d6763340d256d937afeb77a 100644 (file)
@@ -548,7 +548,7 @@ config SOFT_SPI
          the SPI protocol.
 
 config SPI_SN_F_OSPI
-       tristate "Socionext F_OSPI SPI flash controller"
+       bool "Socionext F_OSPI SPI flash controller"
        select SPI_MEM
        help
          This enables support for the Socionext F_OSPI controller
index 0b5df54e8fb6d0919cd5c9c8c041adbbb9143e4d..c1b84bd7559708b8470cc5c7213c43bcd3475102 100644 (file)
@@ -24,7 +24,7 @@ config UFS_CADENCE
          controller present on present TI's J721e devices.
 
 config UFS_MEDIATEK
-       tristate "MediaTek UFS Host Controller Driver"
+       bool "MediaTek UFS Host Controller Driver"
        depends on UFS && ARCH_MEDIATEK
        select PHY_MTK_UFS
        help
index 7964f3f41d5e5418fb42386a5170cdb5bb820da6..ad0ef8ac2ba80559c79ded9d8f9e7b18fab0554f 100644 (file)
@@ -1,5 +1,5 @@
 config USB_CDNS3
-       tristate "Cadence USB3 Dual-Role Controller"
+       bool "Cadence USB3 Dual-Role Controller"
        depends on USB_XHCI_HCD || USB_GADGET
        select DEVRES
        help
@@ -51,14 +51,14 @@ config SPL_USB_CDNS3_HOST
          standard XHCI driver.
 
 config USB_CDNS3_STARFIVE
-       tristate "Cadence USB3 support on Starfive platforms"
+       bool "Cadence USB3 support on Starfive platforms"
        default y if STARFIVE_JH7110
        help
          Say 'Y' here if you are building for Starfive platforms
          that contain Cadence USB3 controller core. E.g.: JH7110.
 
 config USB_CDNS3_TI
-       tristate "Cadence USB3 support on TI platforms"
+       bool "Cadence USB3 support on TI platforms"
        default USB_CDNS3
        help
          Say 'Y' here if you are building for Texas Instruments
index 6fb37c787dec6009a6630bc8dd2a21a26b1ea11e..208e47d8ff5f4fd928880d78114b8e66253afc08 100644 (file)
@@ -48,7 +48,7 @@ config USB_MUSB_TI
          silicon IP.
 
 config USB_MUSB_OMAP2PLUS
-       tristate "OMAP2430 and onwards"
+       bool "OMAP2430 and onwards"
        depends on ARCH_OMAP2PLUS
 
 config USB_MUSB_AM35X
index 9be4b496e82f5037ccfae7456f8c778dcc236254..b1ea72537203b9e32fa0b6e2da7684479b852511 100644 (file)
@@ -1,14 +1,14 @@
 # SPDX-License-Identifier: GPL-2.0
 
 config TYPEC_TCPM
-       tristate "USB Type-C Port Controller Manager"
+       bool "USB Type-C Port Controller Manager"
        depends on DM
        help
          The Type-C Port Controller Manager provides a USB PD and USB Type-C
          state machine for use with Type-C Port Controllers.
 
 config TYPEC_FUSB302
-       tristate "Fairchild FUSB302 Type-C chip driver"
+       bool "Fairchild FUSB302 Type-C chip driver"
        depends on DM && DM_I2C && TYPEC_TCPM
        help
          The Fairchild FUSB302 Type-C chip driver that works with