From ac6f8f9616aada403c52254738096ec43888ca42 Mon Sep 17 00:00:00 2001 From: Olivier Schonken Date: Mon, 28 Mar 2011 19:31:17 +0200 Subject: 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 --- src/flash/nor/at91sam3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/flash/nor/at91sam3.c') diff --git a/src/flash/nor/at91sam3.c b/src/flash/nor/at91sam3.c index 0b71e819..40ff3aa0 100644 --- a/src/flash/nor/at91sam3.c +++ b/src/flash/nor/at91sam3.c @@ -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++; -- cgit v1.2.3