Commit eaa859e7d23172acb68b3096beb083ba2e42d6c3

Authored by Zhao Qiang
Committed by York Sun
1 parent 63e75fd7a3

qe: add qe support for ls1021a-twr board

Signed-off-by: Zhao Qiang <B45475@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>

Showing 2 changed files with 14 additions and 0 deletions Side-by-side Diff

board/freescale/ls1021atwr/ls1021atwr.c
... ... @@ -17,7 +17,11 @@
17 17 #include <fsl_mdio.h>
18 18 #include <tsec.h>
19 19 #include <fsl_sec.h>
  20 +#ifdef CONFIG_U_QE
  21 +#include "../../../drivers/qe/qe.h"
  22 +#endif
20 23  
  24 +
21 25 DECLARE_GLOBAL_DATA_PTR;
22 26  
23 27 #define VERSION_MASK 0x00FF
... ... @@ -276,6 +280,10 @@
276 280 #ifndef CONFIG_SYS_FSL_NO_SERDES
277 281 fsl_serdes_init();
278 282 config_serdes_mux();
  283 +#endif
  284 +
  285 +#ifdef CONFIG_U_QE
  286 + u_qe_init();
279 287 #endif
280 288  
281 289 return 0;
include/configs/ls1021atwr.h
... ... @@ -50,6 +50,10 @@
50 50  
51 51 #define CONFIG_FSL_CAAM /* Enable CAAM */
52 52  
  53 +#if !defined(CONFIG_SDCARD) && !defined(CONFIG_NAND) && !defined(CONFIG_SPI)
  54 +#define CONFIG_U_QE
  55 +#endif
  56 +
53 57 /*
54 58 * IFC Definitions
55 59 */
... ... @@ -274,6 +278,8 @@
274 278 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
275 279  
276 280 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */
  281 +
  282 +#define CONFIG_SYS_QE_FW_ADDR 0x67f40000
277 283  
278 284 /*
279 285 * Environment