David Brownell <david-b@pacbell.net> Fix Sandstorm revision checking: right bits...
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 30 Aug 2009 20:05:40 +0000 (20:05 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 30 Aug 2009 20:05:40 +0000 (20:05 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2653 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/flash/stellaris.c

index f479af04127047fcad23ad60117d4a99cddfa951..806544d5ae996e5c6c4848c07e8eba3cca476894 100644 (file)
@@ -581,7 +581,7 @@ static int stellaris_read_part_info(struct flash_bank_s *bank)
                 * Parts before rev C0 used 15 MHz; some C0 parts use 15 MHz
                 * (LM3S618), but some other C0 parts are 12 MHz (LM3S811).
                 */
-               if (((did0 >> 16) & 0xff) <= 2) {
+               if (((did0 >> 8) & 0xff) < 2) {
                        stellaris_info->iosc_freq = 15000000;
                        stellaris_info->iosc_desc = " (±50%)";
                }