mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
board: ipq5018: Enable gcc cbcr clk for qpic.
Change-Id: Id30214131b0ef5476437597aba70d81e48fe7c8d Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org> Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
This commit is contained in:
parent
0b98a31e25
commit
db70e98a74
2 changed files with 5 additions and 3 deletions
|
|
@ -505,6 +505,7 @@ void qpic_clk_enbale(void)
|
|||
writel(QPIC_CBCR_VAL, GCC_QPIC_CBCR_ADDR);
|
||||
writel(0x1, GCC_QPIC_AHB_CBCR_ADDR);
|
||||
writel(0x1, GCC_QPIC_IO_MACRO_CBCR);
|
||||
writel(0x1, GCC_QPIC_CBCR_ADDR);
|
||||
}
|
||||
|
||||
void board_nand_init(void)
|
||||
|
|
|
|||
|
|
@ -1378,7 +1378,7 @@ static void qpic_spi_init(struct mtd_info *mtd)
|
|||
uint32_t xfer_start = NAND_XFR_STEPS_V1_5_20;
|
||||
int i;
|
||||
|
||||
/* Enabel QSPI CLK*/
|
||||
/* Enabel QPIC CLK*/
|
||||
qpic_clk_enbale();
|
||||
|
||||
/* Configure the NAND_FLASH_SPI_CFG to load the timer CLK_CNTR_INIT_VAL_VEC
|
||||
|
|
@ -3194,6 +3194,9 @@ void qpic_nand_init(void)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_QPIC_SERIAL
|
||||
|
||||
qpic_spi_init(mtd);
|
||||
|
||||
/* Read the Hardware Version register */
|
||||
hw_ver = readl(NAND_VERSION);
|
||||
/* Only maintain major number */
|
||||
|
|
@ -3205,8 +3208,6 @@ void qpic_nand_init(void)
|
|||
__func__);
|
||||
return;
|
||||
}
|
||||
|
||||
qpic_spi_init(mtd);
|
||||
#ifdef MULTI_PAGE_READ
|
||||
config.pipes.status_pipe = NAND_BAM_STATUS_PIPE;
|
||||
config.pipes.status_pipe_grp = NAND_BAM_STATUS_PIPE_GRP;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue