提交 916d9f09 编写于 作者: Y Yuan Yao 提交者: York Sun

armv8: ls2080aqds: Select QSPI CLK div via SCFG

QSPI module output SCLK divisor value is configured through SCFG.
Signed-off-by: NYuan Yao <yao.yuan@nxp.com>
Reviewed-by: NYork Sun <york.sun@nxp.com>
上级 9d10c2d3
...@@ -140,6 +140,7 @@ ...@@ -140,6 +140,7 @@
/* Supplemental Configuration */ /* Supplemental Configuration */
#define SCFG_BASE 0x01fc0000 #define SCFG_BASE 0x01fc0000
#define SCFG_USB3PRM1CR 0x000 #define SCFG_USB3PRM1CR 0x000
#define SCFG_QSPICLKCTLR 0x10
#define TP_ITYP_AV 0x00000001 /* Initiator available */ #define TP_ITYP_AV 0x00000001 /* Initiator available */
#define TP_ITYP_TYPE(x) (((x) & 0x6) >> 1) /* Initiator Type */ #define TP_ITYP_TYPE(x) (((x) & 0x6) >> 1) /* Initiator Type */
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#define PIN_MUX_SEL_SDHC 0x00 #define PIN_MUX_SEL_SDHC 0x00
#define PIN_MUX_SEL_DSPI 0x0a #define PIN_MUX_SEL_DSPI 0x0a
#define SCFG_QSPICLKCTRL_DIV_20 (5 << 27)
#define SET_SDHC_MUX_SEL(reg, value) ((reg & 0xf0) | value) #define SET_SDHC_MUX_SEL(reg, value) ((reg & 0xf0) | value)
...@@ -219,6 +220,10 @@ int board_init(void) ...@@ -219,6 +220,10 @@ int board_init(void)
int board_early_init_f(void) int board_early_init_f(void)
{ {
fsl_lsch3_early_init_f(); fsl_lsch3_early_init_f();
#ifdef CONFIG_FSL_QSPI
/* input clk: 1/2 platform clk, output: input/20 */
out_le32(SCFG_BASE + SCFG_QSPICLKCTLR, SCFG_QSPICLKCTRL_DIV_20);
#endif
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册