]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
rockchip: imply most symbols for ARCH_ROCKCHIP
authorQuentin Schulz <quentin.schulz@cherry.de>
Wed, 29 Oct 2025 11:34:25 +0000 (12:34 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 2 Nov 2025 18:15:23 +0000 (12:15 -0600)
Forcing all those symbols on means we cannot make the binary smaller or
with unnecessary features or drivers disabled. This is especially useful
for security, auditing and certification where less code built means
less to look at (and less surface attack) and less to patch, but also
for making binary images smaller which typically means faster boot.

It is possible to have boards without MMC, NAND or SPI flashes, without
anything on SPI or I2C buses, nothing to control over PWM or GPIO or for
which we have no interest in regulator control or serial output so make
it possible to remove all that if desired.

No intended change in default selected symbols.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/Kconfig

index ef834542bd4a8128e205a91208000b4f0a8de4e0..4ee74d5cdd83b21d26f12995eeb31f03a44f8177 100644 (file)
@@ -2072,30 +2072,30 @@ config ARCH_ROCKCHIP
        bool "Support Rockchip SoCs"
        select BINMAN if SPL_OPTEE || SPL
        select DM
-       select DM_GPIO
-       select DM_I2C
-       select DM_PWM
-       select DM_REGULATOR
-       select DM_SERIAL
-       select DM_SPI
-       select DM_SPI_FLASH
        select DM_USB_GADGET if USB_DWC3_GADGET
        select ENABLE_ARM_SOC_BOOT0_HOOK
        select OF_CONTROL
-       select MMC
-       select MTD
-       select SPI
        select SPL_DM if SPL
-       select SPL_DM_SPI if SPL
-       select SPL_DM_SPI_FLASH if SPL
        select SYS_MALLOC_F
        select SYS_THUMB_BUILD if !ARM64
        imply ADC
+       imply BOOTSTD_DEFAULTS
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
-       imply BOOTSTD_DEFAULTS
+       imply DM_GPIO
+       imply DM_I2C
+       imply DM_PWM
+       imply DM_REGULATOR
+       imply DM_SERIAL
+       imply DM_SPI
+       imply DM_SPI_FLASH
        imply FAT_WRITE
+       imply MMC
+       imply MTD
        imply SARADC_ROCKCHIP
+       imply SPI
+       imply SPL_DM_SPI if SPL
+       imply SPL_DM_SPI_FLASH if SPL
        imply SPL_SYSRESET
        imply SPL_SYS_MALLOC_SIMPLE
        imply SYS_NS16550