summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/armv7/omap-common
diff options
context:
space:
mode:
authorKipisz, Steven <s-kipisz2@ti.com>2016-02-24 12:30:57 -0600
committerTom Rini <trini@konsulko.com>2016-03-14 19:18:34 -0400
commitd88d6c8ccfe729c2bea3cb849076ba4a39e1e056 (patch)
tree6cbc9713f4e4a262701b67074b852b594f8d049e /arch/arm/cpu/armv7/omap-common
parent5f8bb93b23199b7592c183123d971ef761999e63 (diff)
downloadtalos-obmc-uboot-d88d6c8ccfe729c2bea3cb849076ba4a39e1e056.tar.gz
talos-obmc-uboot-d88d6c8ccfe729c2bea3cb849076ba4a39e1e056.zip
ARM: OMAP4/5: Add generic board detection hook
Many TI EVMs have capability to store relevant board information such as DDR description in EEPROM. Further many pad configuration variations can occur as part of revision changes in the platform. In-order to support these at runtime, we for a board detection hook which is available for override from board files that may desire to do so. NOTE: All TI EVMs are capable of detecting board information based on early clocks that are configured. However, in case of additional needs this can be achieved within the override logic from within the board file. Signed-off-by: Steve Kipisz <s-kipisz2@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/cpu/armv7/omap-common')
-rw-r--r--arch/arm/cpu/armv7/omap-common/hwinit-common.c11
1 files changed, 11 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 91f2dead36..9e9376d0e6 100644
--- a/arch/arm/cpu/armv7/omap-common/hwinit-common.c
+++ b/arch/arm/cpu/armv7/omap-common/hwinit-common.c
@@ -97,6 +97,16 @@ int arch_cpu_init(void)
}
#endif /* CONFIG_ARCH_CPU_INIT */
+/**
+ * do_board_detect() - Detect board description
+ *
+ * Function to detect board description. This is expected to be
+ * overridden in the SoC family board file where desired.
+ */
+void __weak do_board_detect(void)
+{
+}
+
/*
* Routine: s_init
* Description: Does early system init of watchdog, muxing, andclocks
@@ -128,6 +138,7 @@ void s_init(void)
do_io_settings();
#endif
setup_early_clocks();
+ do_board_detect();
prcm_init();
}
OpenPOWER on IntegriCloud