summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-07-01 11:11:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-07-11 06:14:04 +0200
commit0e2aafed3817f76f9d9b33ead8d11d6151813038 (patch)
tree900867104678cfde52d965cfcab0bba47f30e838 /include
parenta61317abe6661d304d770d9fa6af2328f6a67867 (diff)
downloadbarebox-0e2aafed3817f76f9d9b33ead8d11d6151813038.tar.gz
barebox-0e2aafed3817f76f9d9b33ead8d11d6151813038.tar.xz
fs: fat: extend for in-PBL support
The AT91 BootROM loads a boot.bin file from the first FAT partition into SRAM, when booting from MMC. To avoid the need for two barebox configurations for each of the bootloader stages, add PBL support for reading from FAT. This way each stage need only have a different PBL entry point. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/pbl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pbl.h b/include/pbl.h
index 83a058075d..5e971f8656 100644
--- a/include/pbl.h
+++ b/include/pbl.h
@@ -27,6 +27,7 @@ static inline int pbl_bio_read(struct pbl_bio *bio, off_t block_off,
return bio->read(bio, block_off, buf, nblocks);
}
+ssize_t pbl_fat_load(struct pbl_bio *, const char *filename, void *dest, size_t len);
#else
#define IN_PBL 0
#endif