summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2014-12-15 13:24:30 +0800
committerAndreas Bießmann <andreas.devel@googlemail.com>2015-02-07 23:42:45 +0100
commit433be902f3a7e8b40b349e3d9dacdf0a69982ede (patch)
treeacc0e1e3390a2bff20e2eeba12f8d64b585a2e62 /arch/arm
parentabb44081a5f754b80acf5a97d648e731b75d22fc (diff)
downloadu-boot-imx-433be902f3a7e8b40b349e3d9dacdf0a69982ede.zip
u-boot-imx-433be902f3a7e8b40b349e3d9dacdf0a69982ede.tar.gz
u-boot-imx-433be902f3a7e8b40b349e3d9dacdf0a69982ede.tar.bz2
ARM: atmel: spl: add weak bus matrix init function
Some SoC need to configure the bus matrix, add an weak function to be replace by real function. Signed-off-by: Bo Shen <voice.shen@atmel.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/at91-common/spl_atmel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/cpu/at91-common/spl_atmel.c b/arch/arm/cpu/at91-common/spl_atmel.c
index 7297530..9cb5770 100644
--- a/arch/arm/cpu/at91-common/spl_atmel.c
+++ b/arch/arm/cpu/at91-common/spl_atmel.c
@@ -58,6 +58,11 @@ static void switch_to_main_crystal_osc(void)
writel(tmp, &pmc->mor);
}
+__weak void matrix_init(void)
+{
+ /* This only be used for sama5d4 soc now */
+}
+
void s_init(void)
{
switch_to_main_crystal_osc();
@@ -70,6 +75,8 @@ void s_init(void)
at91_clock_init(CONFIG_SYS_AT91_MAIN_CLOCK);
+ matrix_init();
+
timer_init();
board_early_init_f();