Skip to content

Commit

Permalink
cleanup: platform: imx8: remove redundant calls in platform_init()
Browse files Browse the repository at this point in the history
XTOS is no longer supported on imx8. As a consequence,
some calls from imx8's platform_init() have become
redundant. Remove these calls/initializations as well
as those who are redundant because of some configurations
that are not enabled (e.g: `CONFIG_TRACE`, or `CONFIG_HAVE_AGENT`).

This is a followup for thesofproject#8863.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
  • Loading branch information
LaurentiuM1234 committed Apr 23, 2024
1 parent 9737e12 commit b0cc9dc
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/platform/imx8/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,6 @@ int platform_init(struct sof *sof)
{
int ret;

#ifndef __ZEPHYR__
sof->platform_timer = platform_shared_get(&timer_shared, sizeof(timer_shared));
sof->cpu_timers = sof->platform_timer;
#endif

platform_interrupt_init();
platform_clock_init(sof);
scheduler_init_edf();

Expand All @@ -169,12 +163,6 @@ int platform_init(struct sof *sof)
timer_domain_init(sof->platform_timer, PLATFORM_DEFAULT_CLOCK);
scheduler_init_ll(sof->platform_timer_domain);

#ifndef __ZEPHYR__
platform_timer_start(sof->platform_timer);
#endif

sa_init(sof, CONFIG_SYSTICK_PERIOD);

clock_set_freq(CLK_CPU(cpu_get_id()), CLK_MAX_CPU_HZ);

/* init DMA */
Expand All @@ -189,15 +177,6 @@ int platform_init(struct sof *sof)
if (ret < 0)
return -ENODEV;

#if CONFIG_TRACE
/* Initialize DMA for Trace*/
trace_point(TRACE_BOOT_PLATFORM_DMA_TRACE);
dma_trace_init_complete(sof->dmat);
#endif

/* show heap status */
heap_trace_all(1);

return 0;
}

Expand Down

0 comments on commit b0cc9dc

Please sign in to comment.