Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/platform/baytrail/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,16 @@ EXT_MAN_PORT(
},
));

SHARED_DATA struct timer timer = {
static SHARED_DATA struct timer timer = {
.id = TIMER3, /* external timer */
.irq = IRQ_NUM_EXT_TIMER,
};

static SHARED_DATA struct timer arch_timer = {
.id = TIMER1, /* internal timer */
.irq = IRQ_NUM_TIMER1,
};

int platform_boot_complete(uint32_t boot_message)
{
uint32_t mb_offset = 0;
Expand Down Expand Up @@ -200,7 +205,7 @@ int platform_init(struct sof *sof)
int ret;

sof->platform_timer = &timer;
sof->cpu_timers = &timer;
sof->cpu_timers = &arch_timer;

/* clear mailbox for early trace and debug */
trace_point(TRACE_BOOT_PLATFORM_MBOX);
Expand Down