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:
Olivier Schonken 2011-03-28 19:31:17 +02:00 committed by Øyvind Harboe
parent 3e83991560
commit ac6f8f9616
1 changed files with 2 additions and 1 deletions

View File

@ -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++;