sf: Add a method to obtain the block-protect setting
It is useful to obtain the block-protect setting of the SPI flash, so we
know whether it is fully open or (perhaps partially) write-protected. Add
a method for this. Update the sandbox driver to process this operation and
add a test.
Signed-off-by:
Simon Glass <sjg@chromium.org>
Showing
- arch/sandbox/include/asm/test.h 8 additions, 0 deletionsarch/sandbox/include/asm/test.h
- drivers/mtd/spi/sandbox.c 10 additions, 0 deletionsdrivers/mtd/spi/sandbox.c
- drivers/mtd/spi/sf-uclass.c 9 additions, 0 deletionsdrivers/mtd/spi/sf-uclass.c
- drivers/mtd/spi/sf_internal.h 3 additions, 0 deletionsdrivers/mtd/spi/sf_internal.h
- drivers/mtd/spi/sf_probe.c 8 additions, 0 deletionsdrivers/mtd/spi/sf_probe.c
- drivers/mtd/spi/spi_flash.c 12 additions, 0 deletionsdrivers/mtd/spi/spi_flash.c
- include/spi_flash.h 27 additions, 0 deletionsinclude/spi_flash.h
- test/dm/sf.c 9 additions, 0 deletionstest/dm/sf.c
Loading
Please register or sign in to comment