summaryrefslogtreecommitdiff
path: root/packages/u-boot/u-boot-1.1.4/at32stk1000/at32ap-add-spi-initcalls.patch
blob: 397d6b00aa8832db85e0c4b5393000e2155156a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -uprN u-boot-orig/include/asm-avr32/initcalls.h u-boot/include/asm-avr32/initcalls.h
--- u-boot-orig/include/asm-avr32/initcalls.h	2007-01-01 19:26:46.000000000 +0100
+++ u-boot/include/asm-avr32/initcalls.h	2007-01-05 13:29:16.000000000 +0100
@@ -30,6 +30,12 @@ extern void board_init_memories(void);
 extern void board_init_pio(void);
 extern void board_init_info(void);
 
+#if CONFIG_SPI
+extern void board_init_spi(void);
+#else
+static inline void board_init_spi(void) { }
+#endif
+
 #if (CONFIG_COMMANDS & CFG_CMD_NET)
 extern void net_init(void);
 #else