Commit 64ce2fbd6c9ebb68e274ae1b3c449e1cae86c5b6
1 parent
feca6e676e
Exists in
v2017.01-smarct4x
and in
40 other branches
arm:am33xx: Add a scale_vcores() hook
Similar to OMAP4/5 we need to scale the voltage up prior to changing the clock frequencies up higher. Add a similar hook to start with. Signed-off-by: Tom Rini <trini@ti.com>
Showing 2 changed files with 12 additions and 0 deletions Side-by-side Diff
arch/arm/cpu/armv7/am33xx/clock.c
... | ... | @@ -170,9 +170,20 @@ |
170 | 170 | }; |
171 | 171 | } |
172 | 172 | |
173 | +/* | |
174 | + * Before scaling up the clocks we need to have the PMIC scale up the | |
175 | + * voltages first. This will be dependent on which PMIC is in use | |
176 | + * and in some cases we may not be scaling things up at all and thus not | |
177 | + * need to do anything here. | |
178 | + */ | |
179 | +__weak void scale_vcores(void) | |
180 | +{ | |
181 | +} | |
182 | + | |
173 | 183 | void prcm_init() |
174 | 184 | { |
175 | 185 | enable_basic_clocks(); |
186 | + scale_vcores(); | |
176 | 187 | setup_dplls(); |
177 | 188 | } |
arch/arm/include/asm/arch-am33xx/clock.h
... | ... | @@ -107,6 +107,7 @@ |
107 | 107 | const struct dpll_params *get_dpll_core_params(void); |
108 | 108 | const struct dpll_params *get_dpll_per_params(void); |
109 | 109 | const struct dpll_params *get_dpll_ddr_params(void); |
110 | +void scale_vcores(void); | |
110 | 111 | void do_setup_dpll(const struct dpll_regs *, const struct dpll_params *); |
111 | 112 | void prcm_init(void); |
112 | 113 | void enable_basic_clocks(void); |