cleanup: platform: imx8: remove redundant calls in platform_init()

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 #8863.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
This commit is contained in:
Laurentiu Mihalcea 2024-04-23 14:47:40 +03:00
parent 9737e124bc
commit b0cc9dc7b5
1 changed files with 0 additions and 21 deletions

View File

@ -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();
@ -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 */
@ -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;
}