forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
PR 1257/bsps
|
PR 1257/bsps
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* The generic CPU dependent initialization has been performed
|
* The generic CPU dependent initialization has been performed
|
||||||
* before this routine is invoked.
|
* before this routine is invoked.
|
||||||
*
|
*
|
||||||
* COPYRIGHT (c) 1989-1998.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
||||||
@@ -46,6 +46,20 @@ rtems_cpu_table Cpu_table;
|
|||||||
|
|
||||||
char *rtems_progname;
|
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.
|
* Use the shared implementations of the following routines.
|
||||||
* Look in rtems/c/src/lib/libbsp/shared/bsppost.c and
|
* Look in rtems/c/src/lib/libbsp/shared/bsppost.c and
|
||||||
@@ -213,24 +227,24 @@ void bsp_start(void)
|
|||||||
defined(mbx821_004b) || \
|
defined(mbx821_004b) || \
|
||||||
defined(mbx821_005b) || \
|
defined(mbx821_005b) || \
|
||||||
defined(mbx821_006b))
|
defined(mbx821_006b))
|
||||||
Cpu_table.clicks_per_usec = 0; /* for 32768Hz extclk */
|
bsp_clicks_per_usec = 0; /* for 32768Hz extclk */
|
||||||
#else
|
#else
|
||||||
Cpu_table.clicks_per_usec = 1; /* for 4MHz extclk */
|
bsp_clicks_per_usec = 1; /* for 4MHz extclk */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Cpu_table.serial_per_sec = 10000000;
|
bsp_serial_per_sec = 10000000;
|
||||||
Cpu_table.serial_external_clock = 1;
|
bsp_serial_external_clock = 1;
|
||||||
Cpu_table.serial_xon_xoff = 0;
|
bsp_serial_xon_xoff = 0;
|
||||||
Cpu_table.serial_cts_rts = 1;
|
bsp_serial_cts_rts = 1;
|
||||||
Cpu_table.serial_rate = 9600;
|
bsp_serial_rate = 9600;
|
||||||
#if ( defined(mbx821_001) || defined(mbx821_001b) || defined(mbx860_001b) )
|
#if ( defined(mbx821_001) || defined(mbx821_001b) || defined(mbx860_001b) )
|
||||||
Cpu_table.clock_speed = 50000000;
|
bsp_clock_speed = 50000000;
|
||||||
Cpu_table.timer_average_overhead = 3;
|
bsp_timer_average_overhead = 3;
|
||||||
Cpu_table.timer_least_valid = 3;
|
bsp_timer_least_valid = 3;
|
||||||
#else
|
#else
|
||||||
Cpu_table.clock_speed = 40000000;
|
bsp_clock_speed = 40000000;
|
||||||
Cpu_table.timer_average_overhead = 3;
|
bsp_timer_average_overhead = 3;
|
||||||
Cpu_table.timer_least_valid = 3;
|
bsp_timer_least_valid = 3;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* The generic CPU dependent initialization has been performed
|
* The generic CPU dependent initialization has been performed
|
||||||
* before this routine is invoked.
|
* before this routine is invoked.
|
||||||
*
|
*
|
||||||
* COPYRIGHT (c) 1989-1998.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
||||||
@@ -37,6 +37,19 @@ rtems_cpu_table Cpu_table;
|
|||||||
|
|
||||||
char *rtems_progname;
|
char *rtems_progname;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Driver configuration parameters
|
||||||
|
*/
|
||||||
|
uint32_t bsp_clicks_per_usec;
|
||||||
|
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.
|
* Use the shared implementations of the following routines.
|
||||||
* Look in rtems/c/src/lib/libbsp/shared/bsppost.c and
|
* Look in rtems/c/src/lib/libbsp/shared/bsppost.c and
|
||||||
@@ -158,20 +171,20 @@ void bsp_start(void)
|
|||||||
if( Cpu_table.interrupt_stack_size < 4 * 1024 )
|
if( Cpu_table.interrupt_stack_size < 4 * 1024 )
|
||||||
Cpu_table.interrupt_stack_size = 4 * 1024;
|
Cpu_table.interrupt_stack_size = 4 * 1024;
|
||||||
|
|
||||||
Cpu_table.clicks_per_usec = 1; /* for 4MHz extclk */
|
bsp_clicks_per_usec = 1; /* for 4MHz extclk */
|
||||||
Cpu_table.serial_per_sec = 10000000;
|
bsp_serial_per_sec = 10000000;
|
||||||
Cpu_table.serial_external_clock = 1;
|
bsp_serial_external_clock = 1;
|
||||||
Cpu_table.serial_xon_xoff = 0;
|
bsp_serial_xon_xoff = 0;
|
||||||
Cpu_table.serial_cts_rts = 1;
|
bsp_serial_cts_rts = 1;
|
||||||
Cpu_table.serial_rate = 9600;
|
bsp_serial_rate = 9600;
|
||||||
#if ( defined(mbx821_001) || defined(mbx821_001b) || defined(mbx860_001b) )
|
#if ( defined(mbx821_001) || defined(mbx821_001b) || defined(mbx860_001b) )
|
||||||
Cpu_table.clock_speed = 50000000;
|
bsp_clock_speed = 50000000;
|
||||||
Cpu_table.timer_average_overhead = 3;
|
bsp_timer_average_overhead = 3;
|
||||||
Cpu_table.timer_least_valid = 3;
|
bsp_timer_least_valid = 3;
|
||||||
#else
|
#else
|
||||||
Cpu_table.clock_speed = 40000000;
|
bsp_clock_speed = 40000000;
|
||||||
Cpu_table.timer_average_overhead = 3;
|
bsp_timer_average_overhead = 3;
|
||||||
Cpu_table.timer_least_valid = 3;
|
bsp_timer_least_valid = 3;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user