]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: Use 'select' instead of defaults in Kconfig
authorSimon Glass <sjg@chromium.org>
Mon, 13 Jun 2016 05:30:14 +0000 (23:30 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 11 Jul 2016 20:06:44 +0000 (14:06 -0600)
Rockchip uses driver model for all subsystems. Specify this in the arm
Kconfig rather than as defaults in the Rockchip Kconfig. This means that
boards cannot turn these options off, which seems correct.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/Kconfig
arch/arm/mach-rockchip/Kconfig

index 3237a74f722358bdb76207fa0244eeb1fb3a403f..8004c17dbc78b4ec737ef606dee6348da714e331 100644 (file)
@@ -842,7 +842,17 @@ config ARCH_ROCKCHIP
        select SPL
        select OF_CONTROL
        select CPU_V7
+       select BLK
        select DM
+       select SPL_DM
+       select SYS_MALLOC_F
+       select SPL_SYS_MALLOC_SIMPLE
+       select DM_GPIO
+       select DM_I2C
+       select DM_MMC
+       select DM_SERIAL
+       select DM_SPI
+       select DM_SPI_FLASH
 
 config TARGET_THUNDERX_88XX
        bool "Support ThunderX 88xx"
index 2a8afac5e125b30c5f041bcfa229c46830206321..c49cc19be3bd7a9fa639906a79c41fd2a56ebe74 100644 (file)
@@ -17,33 +17,6 @@ config ROCKCHIP_RK3036
          and video codec support. Peripherals include Gigabit Ethernet,
          USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.
 
-config SYS_MALLOC_F
-       default y
-
-config SPL_SYS_MALLOC_SIMPLE
-       default y
-
-config SPL_DM
-       default y
-
-config DM_SERIAL
-       default y
-
-config DM_SPI
-       default y
-
-config DM_SPI_FLASH
-       default y
-
-config DM_I2C
-       default y
-
-config DM_GPIO
-       default y
-
-config BLK
-       default y
-
 source "arch/arm/mach-rockchip/rk3288/Kconfig"
 source "arch/arm/mach-rockchip/rk3036/Kconfig"
 endif