summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-10-16 16:09:09 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-10-16 16:09:09 +0000
commit77c103d606225d2fd628a7794f1969469c33d06f (patch)
tree700dda963c90c18fc2d1dd1097e04332e47b21a6 /c/src
parent2009-10-15 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-77c103d606225d2fd628a7794f1969469c33d06f.tar.bz2
2009-10-16 Jennifer Averett <jennifer.averett@OARcorp.com>
* startup/bspstart.c: Add bsp_clicks_per_usec.
Diffstat (limited to 'c/src')
-rw-r--r--c/src/lib/libbsp/powerpc/psim/ChangeLog4
-rw-r--r--c/src/lib/libbsp/powerpc/psim/startup/bspstart.c8
2 files changed, 11 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/ChangeLog b/c/src/lib/libbsp/powerpc/psim/ChangeLog
index 43eb4236dd..32f2d464e5 100644
--- a/c/src/lib/libbsp/powerpc/psim/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/psim/ChangeLog
@@ -1,3 +1,7 @@
+2009-10-16 Jennifer Averett <jennifer.averett@OARcorp.com>
+
+ * startup/bspstart.c: Add bsp_clicks_per_usec.
+
2008-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* bsp_specs: Backport from CVS-HEAD.
diff --git a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
index a7c677d5ce..a09487f8af 100644
--- a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
@@ -4,7 +4,7 @@
* The generic CPU dependent initialization has been performed
* before any of these are invoked.
*
- * COPYRIGHT (c) 1989-2008.
+ * COPYRIGHT (c) 1989-20089
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -45,6 +45,11 @@ extern int PSIM_INSTRUCTIONS_PER_MICROSECOND;
unsigned int BSP_bus_frequency;
/*
+ * Driver configuration parameters
+ */
+uint32_t bsp_clicks_per_usec;
+
+/*
* Time base divisior (how many tick for 1 second).
*/
unsigned int BSP_time_base_divisor;
@@ -106,6 +111,7 @@ void bsp_start( void )
* initialize the device driver parameters
*/
BSP_bus_frequency = (unsigned int)&PSIM_INSTRUCTIONS_PER_MICROSECOND;
+ bsp_clicks_per_usec = BSP_bus_frequency;
BSP_time_base_divisor = 1;
/*