aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2018-01-09 14:49:28 +0100
committerMichal Simek <michal.simek@xilinx.com>2018-01-30 14:28:44 +0100
commitc4a142f4a69c9fc7d9d976efc7f09d2447536d1e (patch)
treea3d9f4727a195892890af049f4e876655cf32de7 /arch
parent099b9ae7b70dcaae1f023705fdaa6608f7dd8ee9 (diff)
downloadu-boot-c4a142f4a69c9fc7d9d976efc7f09d2447536d1e.zip
u-boot-c4a142f4a69c9fc7d9d976efc7f09d2447536d1e.tar.gz
u-boot-c4a142f4a69c9fc7d9d976efc7f09d2447536d1e.tar.bz2
arm: zynq: Enable DM_ETH and DM_MMC only if subsystem is enabled
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/Kconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 1a4cf1e..7258235 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -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