[U-Boot] [PATCH v3 014/108] spi: Add support for memory-mapped flash

Bin Meng bmeng.cn at gmail.com
Sat Nov 2 04:13:54 UTC 2019


On Mon, Oct 21, 2019 at 11:33 AM Simon Glass <sjg at 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 at 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 at gmail.com>


More information about the U-Boot mailing list