diff mbox series

[U-Boot,5/8] arm: zynq: Enable DM_ETH and DM_MMC only if subsystem is enabled

Message ID 3ecee87e0ca373e9e834628bb0d9b94e36fad0a9.1515597991.git.michal.simek@xilinx.com
State Accepted
Commit c4a142f4a69c9fc7d9d976efc7f09d2447536d1e
Delegated to: Michal Simek
Headers show
Series [U-Boot,1/8] arm: zynq: Add identification string to Xilinx boards | expand

Commit Message

Michal Simek Jan. 10, 2018, 3:26 p.m. UTC
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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index fdeef4d05d9d..d5fb5fed5c70 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -746,10 +746,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