Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup: platform: imx8: post-native Zephyr drivers switch cleanup #9077

Merged
merged 4 commits into from
Apr 29, 2024
Merged
Changes from 1 commit
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
Next Next commit
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>
  • Loading branch information
LaurentiuM1234 committed Apr 23, 2024
commit b0cc9dc7b5da9c58505c4e7547b0330ed2443885
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