spi: Add function to read flash status register

Hardware / Coreboot - Duncan Laurie [chromium.org] - 17 April 2015 02:21 UTC

Add a function that allows reading of the status register from the SPI chip. This can be used to determine whether write protection is enabled on the chip.

BUG=chrome-os-partner:35209 BRANCH=haswell TEST=build and boot on peppy

fb03239 spi: Add function to read flash status register
src/drivers/spi/eon.c | 2 ++
src/drivers/spi/gigadevice.c | 2 ++
src/drivers/spi/macronix.c | 2 ++
src/drivers/spi/spansion.c | 2 ++
src/drivers/spi/spi_flash.c | 6 ++++++
src/drivers/spi/spi_flash_internal.h | 3 +++
src/drivers/spi/sst.c | 2 ++
src/drivers/spi/winbond.c | 2 ++
src/include/spi_flash.h | 3 +++
9 files changed, 24 insertions(+)

Upstream: review.coreboot.org


  • Share