hsw: timer: HSW/BDW use DSP core timers and have no ext timer.

HSW/BDW both use internal core DSP timers and dont have any external
timer.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2018-03-12 12:08:12 +00:00
parent 335dd1fb44
commit 939649bd98
1 changed files with 5 additions and 2 deletions

View File

@ -37,24 +37,27 @@
void platform_timer_start(struct timer *timer)
{
arch_timer_enable(timer);
}
void platform_timer_stop(struct timer *timer)
{
arch_timer_disable(timer);
}
int platform_timer_set(struct timer *timer, uint64_t ticks)
{
return 0;
return arch_timer_set(timer, ticks);
}
void platform_timer_clear(struct timer *timer)
{
arch_timer_clear(timer);
}
uint64_t platform_timer_get(struct timer *timer)
{
return 0;
return arch_timer_get_system(timer);
}
/* get timestamp for host stream DMA position */