提交 61462cd7 编写于 作者: K Keerthy 提交者: Tom Rini

arm: omap: Introduce vcores_init function

The pmic registers for variants of am57xx boards are different
hence we need to assign them carefully based on the board type.
Add a function to assign omap_vcores after the board detection.
Signed-off-by: NKeerthy <j-keerthy@ti.com>
上级 88730f19
...@@ -112,6 +112,16 @@ void __weak do_board_detect(void) ...@@ -112,6 +112,16 @@ void __weak do_board_detect(void)
{ {
} }
/**
* vcores_init() - Assign omap_vcores based on board
*
* Function to pick the vcores based on board. This is expected to be
* overridden in the SoC family board file where desired.
*/
void __weak vcores_init(void)
{
}
void s_init(void) void s_init(void)
{ {
} }
...@@ -149,6 +159,7 @@ void early_system_init(void) ...@@ -149,6 +159,7 @@ void early_system_init(void)
#endif #endif
setup_early_clocks(); setup_early_clocks();
do_board_detect(); do_board_detect();
vcores_init();
prcm_init(); prcm_init();
} }
......
...@@ -51,6 +51,7 @@ void sdelay(unsigned long); ...@@ -51,6 +51,7 @@ void sdelay(unsigned long);
void setup_early_clocks(void); void setup_early_clocks(void);
void prcm_init(void); void prcm_init(void);
void do_board_detect(void); void do_board_detect(void);
void vcores_init(void);
void bypass_dpll(u32 const base); void bypass_dpll(u32 const base);
void freq_update_core(void); void freq_update_core(void);
u32 get_sys_clk_freq(void); u32 get_sys_clk_freq(void);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册