spi25: Integrate 4BA support
Allow 4-byte addresses for instructions usually used with 3-byte
addresses. Decide in which way the 4th byte will be communicated
based on the state of the chip (i.e. have we enabled 4BA mode)
and a new feature bit for an extended address register. If we
are not in 4BA mode and no extended address register is available
or the write to it fails, bail out.
We cache the state of 4BA mode and the extended address register
in the flashctx.
Signed-off-by: Nico Huber <email@example.com>
Reviewed-by: Stefan Reinauer <firstname.lastname@example.org>
Tested-by: build bot (Jenkins) <email@example.com>
5 files changed