2009-08-18 Joel Sherrill <joel.sherrill@OARcorp.com>

* s3c2400/clock/clockdrv.c, s3c24xx/clock/clockdrv.c: Add stubs for
	nanoseconds since tick handler.
This commit is contained in:
Joel Sherrill
2009-08-18 15:37:52 +00:00
parent 63b3dff5ec
commit 7ca51e389d
3 changed files with 31 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
2009-08-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* s3c2400/clock/clockdrv.c, s3c24xx/clock/clockdrv.c: Add stubs for
nanoseconds since tick handler.
2009-08-06 Xi Yang <hiyangxi@gmail.com> 2009-08-06 Xi Yang <hiyangxi@gmail.com>
* pxa255/clock/clock.c: Adjust clock for Skyeye. Joel added empty * pxa255/clock/clock.c: Adjust clock for Skyeye. Joel added empty

View File

@@ -32,12 +32,22 @@ rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
3, /* unused for ARM cpus */ 3, /* unused for ARM cpus */
0 }; /* unused for ARM cpus */ 0 }; /* unused for ARM cpus */
/* If you follow the code, this is never used, so any value /* If you follow the code, this is never used, so any value
* should work * should work
*/ */
#define CLOCK_VECTOR 0 #define CLOCK_VECTOR 0
/**
* Return the nanoseconds since last tick
*/
uint32_t clock_driver_get_nanoseconds_since_last_tick(void)
{
return 0;
}
#define Clock_driver_nanoseconds_since_last_tick \
clock_driver_get_nanoseconds_since_last_tick
/** /**
* When we get the clock interrupt * When we get the clock interrupt
* - clear the interrupt bit? * - clear the interrupt bit?
@@ -65,9 +75,9 @@ rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
* - enable it * - enable it
* - clear any pending interrupts * - clear any pending interrupts
* *
* Since you may want the clock always running, you can * Since you may want the clock always running, you can
* enable interrupts here. If you do so, the clock_isr_on(), * enable interrupts here. If you do so, the clock_isr_on(),
* clock_isr_off(), and clock_isr_is_on() functions can be * clock_isr_off(), and clock_isr_is_on() functions can be
* NOPs. * NOPs.
*/ */
#define Clock_driver_support_initialize_hardware() \ #define Clock_driver_support_initialize_hardware() \
@@ -90,7 +100,7 @@ rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
} while (0) } while (0)
/** /**
* Do whatever you need to shut the clock down and remove the * Do whatever you need to shut the clock down and remove the
* interrupt handler. Since this normally only gets called on * interrupt handler. Since this normally only gets called on
* RTEMS shutdown, you may not need to do anything other than * RTEMS shutdown, you may not need to do anything other than
* remove the ISR. * remove the ISR.

View File

@@ -37,6 +37,16 @@ rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
*/ */
#define CLOCK_VECTOR 0 #define CLOCK_VECTOR 0
/**
* Return the nanoseconds since last tick
*/
uint32_t clock_driver_get_nanoseconds_since_last_tick(void)
{
return 0;
}
#define Clock_driver_nanoseconds_since_last_tick \
clock_driver_get_nanoseconds_since_last_tick
/** /**
* When we get the clock interrupt * When we get the clock interrupt
@@ -73,7 +83,7 @@ rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
#define Clock_driver_support_initialize_hardware() \ #define Clock_driver_support_initialize_hardware() \
do { \ do { \
uint32_t cr; \ uint32_t cr; \
uint32_t freq,m,p,s; \ uint32_t freq; \
/* set MUX for Timer4 to 1/16 */ \ /* set MUX for Timer4 to 1/16 */ \
cr=rTCFG1 & 0xFFF0FFFF; \ cr=rTCFG1 & 0xFFF0FFFF; \
rTCFG1=(cr | (3<<16)); \ rTCFG1=(cr | (3<<16)); \