diff options
author | Peng Fan <peng.fan@nxp.com> | 2023-04-28 12:08:19 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2023-05-21 16:54:40 +0200 |
commit | 5d09fcf24d7a3126a177d24becb1d51ef36e6480 (patch) | |
tree | 57eff2dcdff2a5f3922342d4bafb985a2cb388a3 /arch/arm/include/asm | |
parent | 532e73fddab1781bafd0cb501893bc4fccb54094 (diff) | |
download | u-boot-5d09fcf24d7a3126a177d24becb1d51ef36e6480.zip u-boot-5d09fcf24d7a3126a177d24becb1d51ef36e6480.tar.gz u-boot-5d09fcf24d7a3126a177d24becb1d51ef36e6480.tar.bz2 |
imx9: simplify clk settings
Simplify the clk root settings with an array
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r-- | arch/arm/include/asm/arch-imx9/clock.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-imx9/clock.h b/arch/arm/include/asm/arch-imx9/clock.h index 336d861..1169ffd 100644 --- a/arch/arm/include/asm/arch-imx9/clock.h +++ b/arch/arm/include/asm/arch-imx9/clock.h @@ -205,6 +205,12 @@ struct clk_root_map { u32 mux_type; }; +struct imx_clk_setting { + u32 clk_root; + enum ccm_clk_src src; + u32 div; +}; + int clock_init(void); u32 get_clk_src_rate(enum ccm_clk_src source); u32 get_lpuart_clk(void); |