at91sam3: Modified cidr comparisson to ignore version bits
production processor versions increment, thus the version bits should be ignored for future proofing. e.g. Engineering sample version == 0x00, production version 0x01
This commit is contained in:
parent
3e83991560
commit
ac6f8f9616
|
@ -1999,7 +1999,8 @@ sam3_GetDetails(struct sam3_bank_private *pPrivate)
|
|||
LOG_DEBUG("Begin");
|
||||
pDetails = all_sam3_details;
|
||||
while (pDetails->name) {
|
||||
if (pDetails->chipid_cidr == pPrivate->pChip->cfg.CHIPID_CIDR) {
|
||||
// Compare cidr without version bits
|
||||
if (pDetails->chipid_cidr == (pPrivate->pChip->cfg.CHIPID_CIDR & 0xFFFFFFE0)) {
|
||||
break;
|
||||
} else {
|
||||
pDetails++;
|
||||
|
|
Loading…
Reference in New Issue