mirror of https://github.com/thesofproject/sof.git
timer: add platform timer to sof context
Adds pointer to default platform timer to main sof context. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
parent
45e3a93b57
commit
dece398b22
|
@ -16,6 +16,7 @@ struct clock_info;
|
|||
struct dma_trace_data;
|
||||
struct ipc;
|
||||
struct sa;
|
||||
struct timer;
|
||||
struct trace;
|
||||
|
||||
/**
|
||||
|
@ -45,6 +46,9 @@ struct sof {
|
|||
/* platform clock information */
|
||||
struct clock_info *clocks;
|
||||
|
||||
/* default platform timer */
|
||||
struct timer *platform_timer;
|
||||
|
||||
__aligned(PLATFORM_DCACHE_ALIGN) int alignment[0];
|
||||
} __aligned(PLATFORM_DCACHE_ALIGN);
|
||||
|
||||
|
|
|
@ -175,6 +175,8 @@ int platform_init(struct sof *sof)
|
|||
#endif
|
||||
int ret;
|
||||
|
||||
sof->platform_timer = &timer;
|
||||
|
||||
/* clear mailbox for early trace and debug */
|
||||
trace_point(TRACE_BOOT_PLATFORM_MBOX);
|
||||
bzero((void *)MAILBOX_BASE, MAILBOX_SIZE);
|
||||
|
|
|
@ -172,6 +172,8 @@ int platform_init(struct sof *sof)
|
|||
struct dai *ssp1;
|
||||
int ret;
|
||||
|
||||
sof->platform_timer = &timer;
|
||||
|
||||
/* clear mailbox for early trace and debug */
|
||||
trace_point(TRACE_BOOT_PLATFORM_MBOX);
|
||||
bzero((void *)MAILBOX_BASE, MAILBOX_SIZE);
|
||||
|
|
|
@ -152,6 +152,8 @@ int platform_init(struct sof *sof)
|
|||
{
|
||||
int ret;
|
||||
|
||||
sof->platform_timer = &timer;
|
||||
|
||||
platform_interrupt_init();
|
||||
platform_clock_init(sof);
|
||||
scheduler_init_edf();
|
||||
|
|
|
@ -341,6 +341,8 @@ int platform_init(struct sof *sof)
|
|||
#endif
|
||||
int ret;
|
||||
|
||||
sof->platform_timer = &timer;
|
||||
|
||||
/* pm runtime already initialized, request the DSP to stay in D0
|
||||
* until we are allowed to do full power gating (by the IPC req).
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue