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 <firstname.lastname@example.org>
Tested-by: build bot (Jenkins) <email@example.com>
Reviewed-by: David Hendricks <firstname.lastname@example.org>
V.2: Rebased on master.
Signed-off-by: Edward O'Callaghan <email@example.com>
Reviewed-by: Patrick Georgi <firstname.lastname@example.org>
3 files changed