From 80056860b6614ede3508d0606e754ac3ba7e76ed Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Fri, 22 Nov 2019 19:04:32 +0800 Subject: [PATCH] booster: allow alternate spi id If the alternate spi id is detected, force it to the original spi id. Signed-off-by: Sean Cross --- booster/src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/booster/src/main.c b/booster/src/main.c index a7f2f99..7d7e42b 100644 --- a/booster/src/main.c +++ b/booster/src/main.c @@ -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); } @@ -260,4 +263,4 @@ __attribute__((noreturn)) void fobooster_main(void) rgb_mode_writing(); finish_flashing(); -} \ No newline at end of file +}