mirror of
https://github.com/im-tomu/foboot.git
synced 2024-09-20 02:40:09 +00:00
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:
parent
bb8079711b
commit
80056860b6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user