2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>

* sh7032/clock/ckinit.c, sh7032/delay/delay.c, sh7032/timer/timer.c,
	sh7045/clock/ckinit.c, sh7045/timer/timer.c, sh7750/clock/ckinit.c,
	sh7750/timer/timer.c: Eliminate the clicks_per_microsecond field in
	the SuperH CPU Table and define another mechanism for drivers to
	obtain this information.
This commit is contained in:
Joel Sherrill
2007-11-26 23:02:03 +00:00
parent 1e2072e423
commit 99f67930c2
8 changed files with 37 additions and 20 deletions

View File

@@ -33,6 +33,8 @@
#include <rtems/score/sh_io.h>
#include <rtems/score/iosh7045.h>
extern uint32_t bsp_clicks_per_second;
/*
* We use a Phi/4 timer
*/
@@ -68,7 +70,7 @@ void Timer_initialize( void )
rtems_interrupt_level level;
rtems_isr *ignored;
Timer_MHZ = rtems_cpu_configuration_get_clicks_per_second() / 1000000 ;
Timer_MHZ = bsp_clicks_per_second / 1000000 ;
/*
* Timer has never overflowed. This may not be necessary on some