spi25: Introduce spi_simple_write_cmd()
This is a backport of `commit a3140d0b` upstream.
* NOTE: Upstream 'JEDEC_RDSR_BIT_WIP' is called 'SPI_SR_WIP'
spi_simple_write_cmd() executes WREN plus a single byte write and polls
WIP afterwards. It's used to replace current spi_erase_chip_*() imple-
Signed-off-by: Nico Huber <email@example.com>
Tested-by: build bot (Jenkins) <firstname.lastname@example.org>
Reviewed-by: David Hendricks <email@example.com>
V.2: Rebased on master.
Signed-off-by: Edward O'Callaghan <firstname.lastname@example.org>
Reviewed-by: Patrick Georgi <email@example.com>
3 files changed