]> git.sur5r.net Git - u-boot/commitdiff
arm: zynq: Enable DM_ETH and DM_MMC only if subsystem is enabled
authorMichal Simek <michal.simek@xilinx.com>
Tue, 9 Jan 2018 13:49:28 +0000 (14:49 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 30 Jan 2018 13:28:44 +0000 (14:28 +0100)
Do not enable DM_ETH/MMC if subsystems are not enabled.
This saves memory for memory constrained boards like cse.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/Kconfig

index 1a4cf1ec973b929c04bbaab8ea0f279245055da4..7258235da1a084ee6c5b5077fc5efcdad0d40d42 100644 (file)
@@ -779,10 +779,10 @@ config ARCH_ZYNQ
        select SPL_BOARD_INIT if SPL
        select SPL_OF_CONTROL if SPL
        select DM
-       select DM_ETH
+       select DM_ETH if NET
        select DM_GPIO
        select SPL_DM if SPL
-       select DM_MMC
+       select DM_MMC if MMC
        select DM_SPI
        select DM_SERIAL
        select DM_SPI_FLASH