aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2012-01-17 16:05:44 +0000
committerSpencer Oliver <spen@spen-soft.co.uk>2012-01-23 11:41:49 +0000
commit769064de4bd8fc59804c37a418b83fcdba6fd36f (patch)
treecb0978efc7b4d62b08d7913f3a3dcaa01052496e /src
parent8959fccc1926e8748e914730b8e05ca7e8b8d05b (diff)
flash: update stellaris_set_flash_timing for target class
stellaris_set_flash_timing should only be used for Sandstorm and Fury device classes. Change-Id: Ib5eff9d954c039f2c5726a8ecc3ee45d1694cfd3 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/389 Tested-by: jenkins
Diffstat (limited to 'src')
-rw-r--r--src/flash/nor/stellaris.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c
index 69a9d05f..b14c078e 100644
--- a/src/flash/nor/stellaris.c
+++ b/src/flash/nor/stellaris.c
@@ -528,6 +528,10 @@ static void stellaris_set_flash_timing(struct flash_bank *bank)
struct target *target = bank->target;
uint32_t usecrl = (stellaris_info->mck_freq/1000000ul-1);
+ /* only valid for Sandstorm and Fury class devices */
+ if (stellaris_info->target_class < 2)
+ return;
+
LOG_DEBUG("usecrl = %i",(int)(usecrl));
target_write_u32(target, SCB_BASE | USECRL, usecrl);
}