
2 Nov
2019
2 Nov
'19
5:13 a.m.
On Mon, Oct 21, 2019 at 11:33 AM Simon Glass sjg@chromium.org wrote:
On x86 platforms the SPI flash can be mapped into memory so that the contents can be read with normal memory accesses.
Add a new SPI method to find the location of the SPI flash in memory. This differs from the existing device-tree "memory-map" mechanism in that the location can be discovered at run-time.
Signed-off-by: Simon Glass sjg@chromium.org
Changes in v3:
- Move the get_mmap() method from the SPI_FLASH to the SPI uclass
Changes in v2: None
drivers/spi/sandbox_spi.c | 11 +++++++++++ drivers/spi/spi-uclass.c | 14 ++++++++++++++ include/spi.h | 27 +++++++++++++++++++++++++++ test/dm/sf.c | 9 +++++++++ 4 files changed, 61 insertions(+)
Reviewed-by: Bin Meng bmeng.cn@gmail.com