修订版 | feaf8e0cf03ef030ed7ebd6db2fa7a1ad3be25d0 (tree) |
---|---|
时间 | 2022-07-26 18:29:01 |
作者 | Peng Fan <peng.fan@nxp....> |
Commiter | Stefano Babic |
imx: imx93_evk: Set ARM clock to 1.7Ghz
Set ARM clock to OD frequency 1.7Ghz, since we have set PMIC VDD_SOC
to Overdrive voltage 0.9V
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
@@ -217,6 +217,8 @@ void dram_pll_init(ulong pll_val); | ||
217 | 217 | void dram_enable_bypass(ulong clk_val); |
218 | 218 | void dram_disable_bypass(void); |
219 | 219 | |
220 | +int configure_intpll(enum ccm_clk_src pll, u32 freq); | |
221 | + | |
220 | 222 | int ccm_clk_src_on(enum ccm_clk_src oscpll, bool enable); |
221 | 223 | int ccm_clk_src_auto(enum ccm_clk_src oscpll, bool enable); |
222 | 224 | int ccm_clk_src_lpm(enum ccm_clk_src oscpll, bool enable); |
@@ -238,5 +240,5 @@ int ccm_shared_gpr_tz_access(u32 gpr, bool non_secure, bool user_mode, bool lock | ||
238 | 240 | void enable_usboh3_clk(unsigned char enable); |
239 | 241 | int set_clk_enet(enum enet_freq type); |
240 | 242 | int set_clk_eqos(enum enet_freq type); |
241 | - | |
243 | +void set_arm_clk(ulong freq); | |
242 | 244 | #endif |
@@ -665,6 +665,15 @@ void dram_disable_bypass(void) | ||
665 | 665 | /* Switch from DRAM clock root from CCM to PLL */ |
666 | 666 | ccm_shared_gpr_set(SHARED_GPR_DRAM_CLK, SHARED_GPR_DRAM_CLK_SEL_PLL); |
667 | 667 | } |
668 | + | |
669 | +void set_arm_clk(ulong freq) | |
670 | +{ | |
671 | + /* Increase ARM clock to 1.7Ghz */ | |
672 | + ccm_shared_gpr_set(SHARED_GPR_A55_CLK, SHARED_GPR_A55_CLK_SEL_CCM); | |
673 | + configure_intpll(ARM_PLL_CLK, 1700000000); | |
674 | + ccm_shared_gpr_set(SHARED_GPR_A55_CLK, SHARED_GPR_A55_CLK_SEL_PLL); | |
675 | +} | |
676 | + | |
668 | 677 | #endif |
669 | 678 | |
670 | 679 | int clock_init(void) |
@@ -108,6 +108,9 @@ void board_init_f(ulong dummy) | ||
108 | 108 | } |
109 | 109 | power_init_board(); |
110 | 110 | |
111 | + /* 1.7GHz */ | |
112 | + set_arm_clk(1700000000); | |
113 | + | |
111 | 114 | /* Init power of mix */ |
112 | 115 | soc_power_init(); |
113 | 116 |