diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-28 21:44:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-28 21:44:35 +0000 |
commit | b9f34ad768b1b311c245060b8619abb9907bbed1 (patch) | |
tree | 042e74c225320156f708f58e17e87bf934140b56 /c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c | |
parent | 2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-b9f34ad768b1b311c245060b8619abb9907bbed1.tar.bz2 |
2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c, startup/bspstart.c.nocache: Eliminate PowerPC
specific elements from the CPU Table. They have been replaced with
variables named bsp_XXX as needed.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c | 42 |
1 files changed, 28 insertions, 14 deletions
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c index d44d0b1e81..fe7e17f919 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c @@ -5,7 +5,7 @@ * The generic CPU dependent initialization has been performed * before this routine is invoked. * - * COPYRIGHT (c) 1989-1998. + * COPYRIGHT (c) 1989-2007. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -47,6 +47,20 @@ rtems_cpu_table Cpu_table; char *rtems_progname; /* + * Driver configuration parameters + */ +uint32_t bsp_clicks_per_usec; +uint32_t bsp_clock_speed; +uint32_t bsp_serial_per_sec; /* Serial clocks per second */ +boolean bsp_serial_external_clock; +boolean bsp_serial_xon_xoff; +boolean bsp_serial_cts_rts; +uint32_t bsp_serial_rate; +uint32_t bsp_timer_average_overhead; /* Average overhead of timer in ticks */ +uint32_t bsp_timer_least_valid; /* Least valid number from timer */ +boolean bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */ + +/* * Use the shared implementations of the following routines. * Look in rtems/c/src/lib/libbsp/shared/bsppost.c and * rtems/c/src/lib/libbsp/shared/bsplibc.c. @@ -213,24 +227,24 @@ void bsp_start(void) defined(mbx821_004b) || \ defined(mbx821_005b) || \ defined(mbx821_006b)) - Cpu_table.clicks_per_usec = 0; /* for 32768Hz extclk */ + bsp_clicks_per_usec = 0; /* for 32768Hz extclk */ #else - Cpu_table.clicks_per_usec = 1; /* for 4MHz extclk */ + bsp_clicks_per_usec = 1; /* for 4MHz extclk */ #endif - Cpu_table.serial_per_sec = 10000000; - Cpu_table.serial_external_clock = 1; - Cpu_table.serial_xon_xoff = 0; - Cpu_table.serial_cts_rts = 1; - Cpu_table.serial_rate = 9600; + bsp_serial_per_sec = 10000000; + bsp_serial_external_clock = 1; + bsp_serial_xon_xoff = 0; + bsp_serial_cts_rts = 1; + bsp_serial_rate = 9600; #if ( defined(mbx821_001) || defined(mbx821_001b) || defined(mbx860_001b) ) - Cpu_table.clock_speed = 50000000; - Cpu_table.timer_average_overhead = 3; - Cpu_table.timer_least_valid = 3; + bsp_clock_speed = 50000000; + bsp_timer_average_overhead = 3; + bsp_timer_least_valid = 3; #else - Cpu_table.clock_speed = 40000000; - Cpu_table.timer_average_overhead = 3; - Cpu_table.timer_least_valid = 3; + bsp_clock_speed = 40000000; + bsp_timer_average_overhead = 3; + bsp_timer_least_valid = 3; #endif /* |