mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-16 07:27:09 -04: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
@ -37,5 +37,6 @@ int init_bd_struct_r(void);
|
|||||||
int flash_init_r(void);
|
int flash_init_r(void);
|
||||||
int status_led_set_r(void);
|
int status_led_set_r(void);
|
||||||
int set_load_addr_r(void);
|
int set_load_addr_r(void);
|
||||||
|
int init_func_spi(void);
|
||||||
|
|
||||||
#endif /* !_INIT_HELPERS_H_ */
|
#endif /* !_INIT_HELPERS_H_ */
|
||||||
|
@ -153,6 +153,9 @@ init_fnc_t *init_sequence_r[] = {
|
|||||||
serial_initialize_r,
|
serial_initialize_r,
|
||||||
#ifndef CONFIG_SYS_NO_FLASH
|
#ifndef CONFIG_SYS_NO_FLASH
|
||||||
flash_init_r,
|
flash_init_r,
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_SPI
|
||||||
|
init_func_spi;
|
||||||
#endif
|
#endif
|
||||||
env_relocate_r,
|
env_relocate_r,
|
||||||
#ifdef CONFIG_PCI
|
#ifdef CONFIG_PCI
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <ide.h>
|
#include <ide.h>
|
||||||
#include <serial.h>
|
#include <serial.h>
|
||||||
|
#include <spi.h>
|
||||||
#include <status_led.h>
|
#include <status_led.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
#include <asm/u-boot-x86.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;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user