[U-Boot] [PATCH 2/2] arm: socfpga: Enable DM for Cadence and DW SPI

Marek Vasut marex at denx.de
Wed Feb 18 22:36:19 CET 2015


Enable DM in case these two drivers are enabled, since these
two drivers depend on DM.

Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Simon Glass <sjg at chromium.org>
Cc: Stefan Roese <sr at denx.de>
Cc: Tom Rini <trini at ti.com>
---
 include/configs/socfpga_common.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index 6d93472..28fcbf3 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -190,6 +190,8 @@ unsigned int cm_get_l4_sp_clk_hz(void);
  */
 #ifdef CONFIG_OF_CONTROL	/* QSPI is controlled via DT */
 #define CONFIG_CADENCE_QSPI
+#define CONFIG_DM
+#define CONFIG_DM_SPI
 /* Enable multiple SPI NOR flash manufacturers */
 #define CONFIG_SPI_FLASH		/* SPI flash subsystem */
 #define CONFIG_SPI_FLASH_STMICRO	/* Micron/Numonyx flash */
@@ -207,6 +209,8 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 #ifdef CONFIG_OF_CONTROL	/* DW SPI is controlled via DT */
 #define CONFIG_DESIGNWARE_SPI
 #define CONFIG_CMD_SPI
+#define CONFIG_DM
+#define CONFIG_DM_SPI
 #endif
 
 /*
-- 
2.1.3



More information about the U-Boot mailing list