diff options
author | Christian Riesch <christian.riesch@omicron.at> | 2011-12-09 09:47:35 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-12-24 10:23:30 +0100 |
commit | 32b1127397a305ae0bc0a55ed9c4421fb570ef78 (patch) | |
tree | 5b473b2218b4ec0047485f5ada367ede3c00198c /include/spi_flash.h | |
parent | 7029a24f2cb50ce673eca07cf3982d8357d5a6ec (diff) | |
download | u-boot-32b1127397a305ae0bc0a55ed9c4421fb570ef78.tar.gz u-boot-32b1127397a305ae0bc0a55ed9c4421fb570ef78.tar.xz u-boot-32b1127397a305ae0bc0a55ed9c4421fb570ef78.zip |
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>
Diffstat (limited to 'include/spi_flash.h')
-rw-r--r-- | include/spi_flash.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/spi_flash.h b/include/spi_flash.h index 2671ab5539..9da90624f2 100644 --- a/include/spi_flash.h +++ b/include/spi_flash.h @@ -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_ */ |