booster: allow alternate spi id

If the alternate spi id is detected, force it to the original spi id.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-11-22 19:04:32 +08:00
parent bb8079711b
commit 80056860b6

View File

@ -202,6 +202,9 @@ __attribute__((noreturn)) void fobooster_main(void)
ftfl_busy_wait();
read_spi_id = spiId();
// PVT has two possible SPI flashes
if (read_spi_id == 0xc8144015)
read_spi_id = 0xc2152815;
if (cached_spi_id != read_spi_id) {
error(SPI_MISMATCH);
}