mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
sf: Add spi_boot() to allow booting from SPI flash in an SPL
Signed-off-by: Christian Riesch <christian.riesch@omicron.at> Cc: Heiko Schocher <hs@denx.de> Cc: Mike Frysinger <vapier@gentoo.org> Cc: Scott Wood <scottwood@freescale.com> Acked-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
7029a24f2c
commit
32b1127397
4 changed files with 66 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include <spi.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/compiler.h>
|
||||
|
||||
struct spi_flash {
|
||||
struct spi_slave *spi;
|
||||
|
@ -68,4 +69,6 @@ static inline int spi_flash_erase(struct spi_flash *flash, u32 offset,
|
|||
return flash->erase(flash, offset, len);
|
||||
}
|
||||
|
||||
void spi_boot(void) __noreturn;
|
||||
|
||||
#endif /* _SPI_FLASH_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue