Skip to content
Snippets Groups Projects
Commit 453418f2 authored by Yuan Yao's avatar Yuan Yao Committed by York Sun
Browse files

armv8: ls2080aqds: Config QSPI pin mux via FPGA in NAND boot


Signed-off-by: default avatarYuan Yao <yao.yuan@nxp.com>
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
parent 95ab851d
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,8 @@
#define DCFG_PORSR1_RCW_SRC_NOR 0x12f00000
#define DCFG_RCWSR13 0x130
#define DCFG_RCWSR13_DSPI (0 << 8)
#define DCFG_RCWSR15 0x138
#define DCFG_RCWSR15_IFCGRPABASE_QSPI 0x3
#define DCFG_DCSR_BASE 0X700100000ULL
#define DCFG_DCSR_PORCR1 0x000
......
......@@ -208,6 +208,15 @@ int board_init(void)
else
config_board_mux(MUX_TYPE_SDHC);
#if defined(CONFIG_NAND) && defined(CONFIG_FSL_QSPI)
val = in_le32(dcfg_ccsr + DCFG_RCWSR15 / 4);
if (DCFG_RCWSR15_IFCGRPABASE_QSPI == (val & (u32)0x3))
QIXIS_WRITE(brdcfg[9],
(QIXIS_READ(brdcfg[9]) & 0xf8) |
FSL_QIXIS_BRDCFG9_QSPI);
#endif
#ifdef CONFIG_ENV_IS_NOWHERE
gd->env_addr = (ulong)&default_environment[0];
#endif
......
......@@ -303,6 +303,12 @@ unsigned long get_board_ddr_clk(void);
#define FSL_QSPI_FLASH_SIZE (1 << 26) /* 64MB */
#define FSL_QSPI_FLASH_NUM 4
#endif
/*
* Verify QSPI when boot from NAND, QIXIS brdcfg9 need configure.
* If boot from on-board NAND, ISO1 = 1, ISO2 = 0, IBOOT = 0
* If boot from IFCCard NAND, ISO1 = 0, ISO2 = 0, IBOOT = 1
*/
#define FSL_QIXIS_BRDCFG9_QSPI 0x1
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment