]> git.baikalelectronics.ru Git - uboot.git/commit
spi: Add support for memory-mapped flash
authorSimon Glass <sjg@chromium.org>
Mon, 21 Oct 2019 03:31:47 +0000 (21:31 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Sat, 2 Nov 2019 23:20:26 +0000 (07:20 +0800)
commit9dfd2ed43de437676abbf3fa11e8c063918645a7
tree9fb3cf72abed73813d8a9885b59d4a66b7503b1b
parentfa9d7d90ddfad20fe70c4599a2fdb26f0b28dd7e
spi: Add support for memory-mapped flash

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>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/spi/sandbox_spi.c
drivers/spi/spi-uclass.c
include/spi.h
test/dm/sf.c