mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
sf: Enable FDT-based configuration and memory mapping
Enable device tree control of SPI flash, and use this to implement memory-mapped SPI flash, which is supported on Intel chips. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -39,6 +39,7 @@ struct spi_flash {
|
||||
/* Erase (sector) size */
|
||||
u32 sector_size;
|
||||
|
||||
void *memory_map; /* Address of read-only SPI flash access */
|
||||
int (*read)(struct spi_flash *flash, u32 offset,
|
||||
size_t len, void *buf);
|
||||
int (*write)(struct spi_flash *flash, u32 offset,
|
||||
|
Reference in New Issue
Block a user