mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
x86: Initialise SPI if enabled
If we have SPI support, make sure that we init it. Signed-off-by: Gabe Black <gabeblack@google.com> Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Vic Yang <victoryang@chromium.org>
This commit is contained in:
parent
ac31a7b81c
commit
8313315b9a
3 changed files with 13 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
|||
#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>
|
||||
|
@ -160,3 +161,11 @@ int set_load_addr_r(void)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int init_func_spi(void)
|
||||
{
|
||||
puts("SPI: ");
|
||||
spi_init();
|
||||
puts("ready\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue