mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-05 08:51:31 +01:00
ipq9574: Enable qpic clocks required for emulation
Change-Id: I033df0121fa9e2141844db408bf7f62e1dc3c40e Signed-off-by: anusha <anusharao@codeaurora.org>
This commit is contained in:
parent
a748178d01
commit
31928c2236
1 changed files with 11 additions and 0 deletions
|
|
@ -142,6 +142,14 @@ void qpic_set_clk_rate(unsigned int clk_rate, int blk_type, int req_clk_src_type
|
|||
}
|
||||
#endif
|
||||
|
||||
void qpic_emulation_set_clk(void)
|
||||
{
|
||||
writel(QPIC_CBCR_VAL, GCC_QPIC_CBCR_ADDR);
|
||||
writel(CLK_ENABLE, GCC_QPIC_AHB_CBCR_ADDR);
|
||||
writel(CLK_ENABLE, GCC_QPIC_SLEEP_CBCR);
|
||||
writel(CLK_ENABLE, GCC_QPIC_IO_MACRO_CBCR);
|
||||
}
|
||||
|
||||
void board_nand_init(void)
|
||||
{
|
||||
#ifdef CONFIG_QPIC_SERIAL
|
||||
|
|
@ -155,6 +163,9 @@ void board_nand_init(void)
|
|||
if (!fdtdec_get_is_enabled(gd->fdt_blob, node)) {
|
||||
printf("QPIC: disabled, skipping initialization\n");
|
||||
} else {
|
||||
#ifdef CONFIG_IPQ9574_RUMI
|
||||
qpic_emulation_set_clk();
|
||||
#endif
|
||||
qpic_nand_init(NULL);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue