Skip to content

Commit 0b400a2

Browse files
committed
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>
1 parent 2055996 commit 0b400a2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/platform/haswell/timer.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,27 @@
3737

3838
void platform_timer_start(struct timer *timer)
3939
{
40+
arch_timer_enable(timer);
4041
}
4142

4243
void platform_timer_stop(struct timer *timer)
4344
{
45+
arch_timer_disable(timer);
4446
}
4547

4648
int platform_timer_set(struct timer *timer, uint64_t ticks)
4749
{
48-
return 0;
50+
return arch_timer_set(timer, ticks);
4951
}
5052

5153
void platform_timer_clear(struct timer *timer)
5254
{
55+
arch_timer_clear(timer);
5356
}
5457

5558
uint64_t platform_timer_get(struct timer *timer)
5659
{
57-
return 0;
60+
return arch_timer_get_system(timer);
5861
}
5962

6063
/* get timestamp for host stream DMA position */

0 commit comments

Comments
 (0)