mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
imx: imx8mq: add init_nand_clk
Add init_nand_clk to enable gpmi nand clock. Since i.MX8MQ not use CCF, so we still use legacy mode to configure the clock. Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
eeca15a50a
commit
2dfecdd1ed
2 changed files with 11 additions and 0 deletions
|
@ -421,4 +421,6 @@ enum frac_pll_out_val {
|
|||
FRAC_PLL_OUT_1000M,
|
||||
FRAC_PLL_OUT_1600M,
|
||||
};
|
||||
|
||||
void init_nand_clk(void);
|
||||
#endif
|
||||
|
|
|
@ -393,6 +393,15 @@ void init_usb_clk(void)
|
|||
}
|
||||
}
|
||||
|
||||
void init_nand_clk(void)
|
||||
{
|
||||
clock_enable(CCGR_RAWNAND, 0);
|
||||
clock_set_target_val(NAND_CLK_ROOT,
|
||||
CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(3) |
|
||||
CLK_ROOT_POST_DIV(CLK_ROOT_POST_DIV4));
|
||||
clock_enable(CCGR_RAWNAND, 1);
|
||||
}
|
||||
|
||||
void init_uart_clk(u32 index)
|
||||
{
|
||||
/* Set uart clock root 25M OSC */
|
||||
|
|
Loading…
Reference in a new issue