imx9: simplify clk settings
Simplify the clk root settings with an array
Signed-off-by: Peng Fan <peng.fan@nxp.com>
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 @@
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);