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>
This commit is contained in:
Bo Shen 2014-12-15 13:24:30 +08:00 committed by Andreas Bießmann
parent abb44081a5
commit 433be902f3

View File

@ -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();