diff options
author | Tom Rini <trini@konsulko.com> | 2019-11-03 19:28:54 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-11-03 19:28:54 -0500 |
commit | ee93ef0c4b272c57c08038655ff0259fdd2c4126 (patch) | |
tree | 8794b7d6bed8385811bac310d0ca35e6049b7e10 /drivers/spi/sandbox_spi.c | |
parent | 9c17ad33fe3ec5ca9ce039db13ccf2e66d74d23b (diff) | |
parent | 73c6cd6c0bdb3af76d573f619bbcc141758bb16b (diff) |
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86
- Add support for Intel FSP-S and FSP-T in binman
- Correct priority selection for image loaders for SPL
- Add a size check for TPL
- Various small SPL/TPL bug fixes and changes
- SPI: Add support for memory-mapped flash
Diffstat (limited to 'drivers/spi/sandbox_spi.c')
-rw-r--r-- | drivers/spi/sandbox_spi.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c index 16473ec7a0b..6b610ff8231 100644 --- a/drivers/spi/sandbox_spi.c +++ b/drivers/spi/sandbox_spi.c @@ -122,11 +122,22 @@ static int sandbox_cs_info(struct udevice *bus, uint cs, return 0; } +static int sandbox_spi_get_mmap(struct udevice *dev, ulong *map_basep, + uint *map_sizep, uint *offsetp) +{ + *map_basep = 0x1000; + *map_sizep = 0x2000; + *offsetp = 0x100; + + return 0; +} + static const struct dm_spi_ops sandbox_spi_ops = { .xfer = sandbox_spi_xfer, .set_speed = sandbox_spi_set_speed, .set_mode = sandbox_spi_set_mode, .cs_info = sandbox_cs_info, + .get_mmap = sandbox_spi_get_mmap, }; static const struct udevice_id sandbox_spi_ids[] = { |