spi_flash: fixed erases that cross 16MiB boundaries.

In the ST Micro and Macronix drivers, when 4-byte addressing was enabled, erases
that crossed 16MiB boundaries would wrap around to the beginning of the starting
segment.

Change-Id: I3ffa40a7b22dc705f73a00d238c3e17e13c08557
2 files changed