Skip to content

Commit b0cc9dc

Browse files
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 thesofproject#8863. Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
1 parent 9737e12 commit b0cc9dc

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

src/platform/imx8/platform.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,6 @@ int platform_init(struct sof *sof)
155155
{
156156
int ret;
157157

158-
#ifndef __ZEPHYR__
159-
sof->platform_timer = platform_shared_get(&timer_shared, sizeof(timer_shared));
160-
sof->cpu_timers = sof->platform_timer;
161-
#endif
162-
163-
platform_interrupt_init();
164158
platform_clock_init(sof);
165159
scheduler_init_edf();
166160

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

172-
#ifndef __ZEPHYR__
173-
platform_timer_start(sof->platform_timer);
174-
#endif
175-
176-
sa_init(sof, CONFIG_SYSTICK_PERIOD);
177-
178166
clock_set_freq(CLK_CPU(cpu_get_id()), CLK_MAX_CPU_HZ);
179167

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

192-
#if CONFIG_TRACE
193-
/* Initialize DMA for Trace*/
194-
trace_point(TRACE_BOOT_PLATFORM_DMA_TRACE);
195-
dma_trace_init_complete(sof->dmat);
196-
#endif
197-
198-
/* show heap status */
199-
heap_trace_all(1);
200-
201180
return 0;
202181
}
203182

0 commit comments

Comments
 (0)