[U-Boot] [PATCH 3/3] qe: add qe support for ls1021a-twr board

Zhao Qiang qiang.zhao at freescale.com
Wed Sep 16 09:55:00 CEST 2015


qe: add qe support MACRO to ls1021a-twr head file

Signed-off-by: Zhao Qiang <qiang.zhao at freescale.com>
---
 board/freescale/ls1021atwr/ls1021atwr.c | 7 +++++++
 include/configs/ls1021atwr.h            | 6 ++++++
 2 files changed, 13 insertions(+)

diff --git a/board/freescale/ls1021atwr/ls1021atwr.c b/board/freescale/ls1021atwr/ls1021atwr.c
index b522ff2..da09d6e 100644
--- a/board/freescale/ls1021atwr/ls1021atwr.c
+++ b/board/freescale/ls1021atwr/ls1021atwr.c
@@ -16,6 +16,9 @@
 #include <netdev.h>
 #include <fsl_mdio.h>
 #include <tsec.h>
+#ifdef CONFIG_U_QE
+#include "../../../drivers/qe/qe.h"
+#endif
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -277,6 +280,10 @@ int board_init(void)
 	config_serdes_mux();
 #endif
 
+#ifdef CONFIG_U_QE
+	u_qe_init();
+#endif
+
 	return 0;
 }
 
diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h
index 45b2272..c4408b8 100644
--- a/include/configs/ls1021atwr.h
+++ b/include/configs/ls1021atwr.h
@@ -48,6 +48,10 @@
 
 #define CONFIG_SYS_HAS_SERDES
 
+#if !defined(CONFIG_SDCARD) && !defined(CONFIG_NAND) && !defined(CONFIG_SPI)
+#define CONFIG_U_QE
+#endif
+
 /*
  * IFC Definitions
  */
@@ -274,6 +278,8 @@
 
 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE    /* start of monitor */
 
+#define CONFIG_SYS_QE_FW_ADDR     0x600c0000
+
 /*
  * Environment
  */
-- 
2.1.0.27.g96db324



More information about the U-Boot mailing list