]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
am33xx: Add am33xx_spl_board_init function, call
authorTom Rini <trini@ti.com>
Fri, 30 Aug 2013 20:28:44 +0000 (16:28 -0400)
committerTom Rini <trini@ti.com>
Fri, 20 Sep 2013 15:01:26 +0000 (11:01 -0400)
We need to allow for a further call-out in spl_board_init.  Call this
am33xx_spl_board_init and add a __weak version.  This function may be
used to scale the MPU frequency up, depending on board needs.

Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/am33xx/board.c
arch/arm/cpu/armv7/omap-common/boot-common.c
arch/arm/include/asm/arch-am33xx/sys_proto.h

index 2ea3d698fb2cae43f92c4e9f2071fcee01d0c698..05a2d28ba16594ab255ded558ffa61c71bc97659 100644 (file)
@@ -27,6 +27,7 @@
 #include <miiphy.h>
 #include <cpsw.h>
 #include <asm/errno.h>
+#include <linux/compiler.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
 #include <linux/usb/musb.h>
@@ -137,6 +138,14 @@ int arch_misc_init(void)
 }
 
 #if defined(CONFIG_SPL_BUILD) || defined(CONFIG_NOR_BOOT)
+/*
+ * This function is the place to do per-board things such as ramp up the
+ * MPU clock frequency.
+ */
+__weak void am33xx_spl_board_init(void)
+{
+}
+
 static void rtc32k_enable(void)
 {
        struct rtc_regs *rtc = (struct rtc_regs *)RTC_BASE;
index 6b4772b68432246b9d91650459e2a69cca51bd21..0ffa03ac01a8edc430b2f3b4c7e9178efedbdaf9 100644 (file)
@@ -76,6 +76,9 @@ void spl_board_init(void)
 #if defined(CONFIG_AM33XX) && defined(CONFIG_SPL_MUSB_NEW_SUPPORT)
        arch_misc_init();
 #endif
+#ifdef CONFIG_AM33XX
+       am33xx_spl_board_init();
+#endif
 }
 
 int board_mmc_init(bd_t *bis)
index c6070a3fc9c1285f01d416be2f425a61e9fddf22..55f57ac9be611f9b50e5865f86722c806ceb6de4 100644 (file)
@@ -42,4 +42,5 @@ u32 wait_on_value(u32, u32, void *, u32);
 #ifdef CONFIG_NOR_BOOT
 void enable_norboot_pin_mux(void);
 #endif
+void am33xx_spl_board_init(void);
 #endif