From 916d9f099edcb2a020ec3f291f0fa0e6fab0f9a5 Mon Sep 17 00:00:00 2001 From: Yuan Yao Date: Wed, 8 Jun 2016 18:24:52 +0800 Subject: armv8: ls2080aqds: Select QSPI CLK div via SCFG QSPI module output SCLK divisor value is configured through SCFG. Signed-off-by: Yuan Yao Reviewed-by: York Sun --- board/freescale/ls2080aqds/ls2080aqds.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'board/freescale') diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale/ls2080aqds/ls2080aqds.c index 897793d..b60206b 100644 --- a/board/freescale/ls2080aqds/ls2080aqds.c +++ b/board/freescale/ls2080aqds/ls2080aqds.c @@ -26,6 +26,7 @@ #define PIN_MUX_SEL_SDHC 0x00 #define PIN_MUX_SEL_DSPI 0x0a +#define SCFG_QSPICLKCTRL_DIV_20 (5 << 27) #define SET_SDHC_MUX_SEL(reg, value) ((reg & 0xf0) | value) @@ -219,6 +220,10 @@ int board_init(void) int board_early_init_f(void) { 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; } -- cgit v1.1