[U-Boot] [PATCH 24/25] sf: Add a method to obtain the block-protect setting
sjg at google.com
sjg at google.com
Thu Nov 22 20:20:29 UTC 2018
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 at chromium.org>
---
arch/sandbox/include/asm/test.h | 8 ++++++++
drivers/mtd/spi/sandbox.c | 10 ++++++++++
drivers/mtd/spi/sf-uclass.c | 9 +++++++++
drivers/mtd/spi/sf_internal.h | 3 +++
drivers/mtd/spi/sf_probe.c | 8 ++++++++
drivers/mtd/spi/spi_flash.c | 12 ++++++++++++
include/spi_flash.h | 27 +++++++++++++++++++++++++++
test/dm/sf.c | 9 +++++++++
8 files changed, 86 insertions(+)
Applied to u-boot-dm/master, thanks!
More information about the U-Boot
mailing list