aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2012-01-25 14:58:47 +0000
committerSpencer Oliver <spen@spen-soft.co.uk>2012-01-27 19:24:19 +0000
commit1340f952a7b3891dc5c94cd2424fabab751c4e5c (patch)
treea465eccd8fe6121f9bfa7e1233d5ad28d601af4a
parent15f546e92fae1e468ba62e75039f28841cdc2c89 (diff)
downloadriscv-openocd-1340f952a7b3891dc5c94cd2424fabab751c4e5c.zip
riscv-openocd-1340f952a7b3891dc5c94cd2424fabab751c4e5c.tar.gz
riscv-openocd-1340f952a7b3891dc5c94cd2424fabab751c4e5c.tar.bz2
flash: fix stellaris class regression
for some reason the following commit was incorrect 769064de4bd8fc59804c37a418b83fcdba6fd36f Only the Sandstorm and Fury class should write this register. Change-Id: Ie18f1da6e9b59fb99cca47aa93c7f2fee447ccea Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/400 Tested-by: jenkins
-rw-r--r--src/flash/nor/stellaris.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c
index b14c078..1aaa6e4 100644
--- a/src/flash/nor/stellaris.c
+++ b/src/flash/nor/stellaris.c
@@ -529,7 +529,7 @@ static void stellaris_set_flash_timing(struct flash_bank *bank)
uint32_t usecrl = (stellaris_info->mck_freq/1000000ul-1);
/* only valid for Sandstorm and Fury class devices */
- if (stellaris_info->target_class < 2)
+ if (stellaris_info->target_class > 1)
return;
LOG_DEBUG("usecrl = %i",(int)(usecrl));