BWCT boards uses two different SPI flash chips
check for both status codes
This commit is contained in:
parent
2a0a392e1c
commit
fc29b8c535
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174877
@ -256,11 +256,12 @@ SPI_InitFlash(void)
|
||||
value = pSPI->SPI_RDR;
|
||||
value = pSPI->SPI_SR;
|
||||
|
||||
value = GetFlashStatus() & 0xFC;
|
||||
#ifdef BOOT_BWCT
|
||||
if (((value = GetFlashStatus()) & 0xFC) != 0xB4)
|
||||
if (value != 0xB4 && value != 0xAC)
|
||||
printf(" Bad SPI status: 0x%x\n", value);
|
||||
#else
|
||||
if (((value = GetFlashStatus()) & 0xFC) != 0xBC)
|
||||
if (value != 0xBC)
|
||||
printf(" Bad SPI status: 0x%x\n", value);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user