]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: atmel: spl: add saic to aic redirect function
authorBo Shen <voice.shen@atmel.com>
Mon, 15 Dec 2014 05:24:31 +0000 (13:24 +0800)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Sat, 7 Feb 2015 22:42:46 +0000 (23:42 +0100)
Some SoC need to redirect the saic to aic to make the interrupt to
work, here add a weak function to be replaced by real function.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
arch/arm/cpu/at91-common/spl_atmel.c
arch/arm/include/asm/arch-at91/at91_common.h

index 9cb57708526d8268b121b682039c3bbaab63d3e7..fdea46665f80f76f4e4da7ede1c7e0bb46dcacdb 100644 (file)
@@ -63,6 +63,11 @@ __weak void matrix_init(void)
        /* This only be used for sama5d4 soc now */
 }
 
+__weak void redirect_int_from_saic_to_aic(void)
+{
+       /* This only be used for sama5d4 soc now */
+}
+
 void s_init(void)
 {
        switch_to_main_crystal_osc();
@@ -77,6 +82,8 @@ void s_init(void)
 
        matrix_init();
 
+       redirect_int_from_saic_to_aic();
+
        timer_init();
 
        board_early_init_f();
index 912e55c8deb61ac6ba46f8ba930f40f3f7b0f361..efcd74ed90d50cbf84521bfac42e04c85c78ddc3 100644 (file)
@@ -33,5 +33,6 @@ void at91_mck_init(u32 mckr);
 void at91_spl_board_init(void);
 void at91_disable_wdt(void);
 void matrix_init(void);
+void redirect_int_from_saic_to_aic(void);
 
 #endif /* AT91_COMMON_H */