summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-08-30 20:05:40 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-08-30 20:05:40 +0000
commitfbe1c23c12c8db7820a8f9a3fb62cfa9a60a745c (patch)
treebb07772c4bc999855a7d8e0d2e00b6078aa797e7
parent98ae6c24f031c559fd95af3fd30dac2d04b3ec51 (diff)
downloadopenocd+libswd-fbe1c23c12c8db7820a8f9a3fb62cfa9a60a745c.tar.gz
openocd+libswd-fbe1c23c12c8db7820a8f9a3fb62cfa9a60a745c.tar.bz2
openocd+libswd-fbe1c23c12c8db7820a8f9a3fb62cfa9a60a745c.tar.xz
openocd+libswd-fbe1c23c12c8db7820a8f9a3fb62cfa9a60a745c.zip
David Brownell <david-b@pacbell.net> Fix Sandstorm revision checking: right bits, right value!
git-svn-id: svn://svn.berlios.de/openocd/trunk@2653 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/flash/stellaris.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/stellaris.c b/src/flash/stellaris.c
index f479af04..806544d5 100644
--- a/src/flash/stellaris.c
+++ b/src/flash/stellaris.c
@@ -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%)";
}