]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: am33xx: define cpu_mmc_init() as weak symbol
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 26 Jun 2014 10:09:34 +0000 (12:09 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 26 Jun 2014 10:21:31 +0000 (12:21 +0200)
define the 'am33xx' cpu_mmc_init() implementation as weak symbol, so
it can be overridden by platform specific code!

arch/arm/cpu/armv7/am33xx/board.c

index 5b3cefb62fb08ffcf80e558a139943eb33c7fb0f..032d28c1cb10377c8d8276c5519866ea2aff155c 100644 (file)
@@ -98,7 +98,7 @@ void enable_caches(void)
 #endif
 
 #if defined(CONFIG_OMAP_HSMMC) && !defined(CONFIG_SPL_BUILD)
-int cpu_mmc_init(bd_t *bis)
+int __cpu_mmc_init(bd_t *bis)
 {
        int ret;
 
@@ -108,6 +108,8 @@ int cpu_mmc_init(bd_t *bis)
 
        return omap_mmc_init(1, 0, 0, -1, -1);
 }
+/* let platform code be able to override this! */
+int cpu_mmc_init(bd_t *bis) __attribute__((weak, alias("__cpu_mmc_init")));
 #endif
 
 void setup_clocks_for_console(void)