diff options
author | Peng Fan <peng.fan@nxp.com> | 2019-10-16 10:24:22 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-11-03 17:04:16 +0100 |
commit | 2dfecdd1eda695e735a340bd47c7487db0ae9ce4 (patch) | |
tree | e593abc6a4dc799fe4c3f3abec685d97939e7a0a /arch/arm/mach-imx | |
parent | eeca15a50aa454480d4a31ca20fd80ef620909ee (diff) | |
download | u-boot-2dfecdd1eda695e735a340bd47c7487db0ae9ce4.tar.gz u-boot-2dfecdd1eda695e735a340bd47c7487db0ae9ce4.tar.xz u-boot-2dfecdd1eda695e735a340bd47c7487db0ae9ce4.zip |
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>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/imx8m/clock_imx8mq.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mq.c b/arch/arm/mach-imx/imx8m/clock_imx8mq.c index 04903510f0..2db5bde211 100644 --- a/arch/arm/mach-imx/imx8m/clock_imx8mq.c +++ b/arch/arm/mach-imx/imx8m/clock_imx8mq.c @@ -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 */ |