summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2016-05-24 11:45:05 +0530
committerTom Rini <trini@konsulko.com>2016-06-02 21:42:18 -0400
commit61462cd77277060318480abe5b0aba1adf5e76f4 (patch)
tree5948bdda00a0593176ff96bcc787f27cef388166 /arch
parent88730f19280d2d89816be8a7ab4faf8248e6b7b4 (diff)
downloadtalos-obmc-uboot-61462cd77277060318480abe5b0aba1adf5e76f4.tar.gz
talos-obmc-uboot-61462cd77277060318480abe5b0aba1adf5e76f4.zip
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: Keerthy <j-keerthy@ti.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/omap-common/hwinit-common.c11
-rw-r--r--arch/arm/include/asm/arch-omap5/sys_proto.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/hwinit-common.c b/arch/arm/cpu/armv7/omap-common/hwinit-common.c
index 078bdd800c..2f9693f28e 100644
--- a/arch/arm/cpu/armv7/omap-common/hwinit-common.c
+++ b/arch/arm/cpu/armv7/omap-common/hwinit-common.c
@@ -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)
{
}
@@ -149,6 +159,7 @@ void early_system_init(void)
#endif
setup_early_clocks();
do_board_detect();
+ vcores_init();
prcm_init();
}
diff --git a/arch/arm/include/asm/arch-omap5/sys_proto.h b/arch/arm/include/asm/arch-omap5/sys_proto.h
index 804266a1b6..ab0e7fae9c 100644
--- a/arch/arm/include/asm/arch-omap5/sys_proto.h
+++ b/arch/arm/include/asm/arch-omap5/sys_proto.h
@@ -51,6 +51,7 @@ void sdelay(unsigned long);
void setup_early_clocks(void);
void prcm_init(void);
void do_board_detect(void);
+void vcores_init(void);
void bypass_dpll(u32 const base);
void freq_update_core(void);
u32 get_sys_clk_freq(void);
OpenPOWER on IntegriCloud