summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/uC5282/startup/linkcmds
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-02-17 13:25:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-02-17 13:25:10 +0000
commitf383c6df9a3fcd7421725732edf7c3c1e47951af (patch)
treed78b325ef0344cf3dbe684092ce8df7790392b55 /c/src/lib/libbsp/m68k/uC5282/startup/linkcmds
parent2011-02-17 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-f383c6df9a3fcd7421725732edf7c3c1e47951af.tar.bz2
2011-02-17 Till Straumann <strauman@slac.stanford.edu>
PR 1738/bsps * README, startup/bspstart.c, startup/linkcmds: Add support for dynamic clock speed determination. This algorithm is described in the README file. The output of the RTEMS Timing Tests was moved to TIMES to signicantly shrink the README. * TIMES: New file.
Diffstat (limited to 'c/src/lib/libbsp/m68k/uC5282/startup/linkcmds')
-rw-r--r--c/src/lib/libbsp/m68k/uC5282/startup/linkcmds11
1 files changed, 10 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/m68k/uC5282/startup/linkcmds b/c/src/lib/libbsp/m68k/uC5282/startup/linkcmds
index 58e3c6155f..47ea80d8d6 100644
--- a/c/src/lib/libbsp/m68k/uC5282/startup/linkcmds
+++ b/c/src/lib/libbsp/m68k/uC5282/startup/linkcmds
@@ -30,8 +30,17 @@ _DownloadLocation = 0x40000;
/*
* System clock speed
+ *
+ * If autodetection of the system clock pased on the PLL ref. clock
+ * (AFAIK 8MHz for both 64MHz and 80MHz boards) doesn't work then
+ * you can:
+ * - define (nonzero) system clock speed from app- linkflags (or here)
+ * - use a uCbootloader env. var: SYS_CLOCK_SPEED to define it.
+ * You can also redefine the PLL reference clock speed from linkflags
+ * or here...
*/
-_CPUClockSpeed = DEFINED(_CPUClockSpeed) ? _CPUClockSpeed : 64000000 ;
+_CPUClockSpeed = DEFINED(_CPUClockSpeed) ? _CPUClockSpeed : 0 ;
+_PLLRefClockSpeed = DEFINED(_PLLRefClockSpeed) ? _PLLRefClockSpeed : 8000000;
/*
* Location of on-chip devices