projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86: Initialise SPI if enabled
[platform/kernel/u-boot.git]
/
arch
/
x86
/
lib
/
init_helpers.c
diff --git
a/arch/x86/lib/init_helpers.c
b/arch/x86/lib/init_helpers.c
index
87c7263
..
d10a846
100644
(file)
--- a/
arch/x86/lib/init_helpers.c
+++ b/
arch/x86/lib/init_helpers.c
@@
-28,6
+28,7
@@
#include <net.h>
#include <ide.h>
#include <serial.h>
#include <net.h>
#include <ide.h>
#include <serial.h>
+#include <spi.h>
#include <status_led.h>
#include <asm/processor.h>
#include <asm/u-boot-x86.h>
#include <status_led.h>
#include <asm/processor.h>
#include <asm/u-boot-x86.h>
@@
-160,3
+161,11
@@
int set_load_addr_r(void)
return 0;
}
return 0;
}
+
+int init_func_spi(void)
+{
+ puts("SPI: ");
+ spi_init();
+ puts("ready\n");
+ return 0;
+}