From 1032fa30ed04787138995a0756fcbb790b55f5f0 Mon Sep 17 00:00:00 2001 From: Rander Wang Date: Thu, 6 Jul 2023 15:42:27 +0800 Subject: [PATCH] platform: cavs: don't program general owner and io registers These registers are set in power_init() in zephyr layer, so remove redundant setting and remove hw setting in SOF layer. Signed-off-by: Rander Wang --- src/platform/intel/cavs/platform.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/platform/intel/cavs/platform.c b/src/platform/intel/cavs/platform.c index 5e0691ded..9ab891764 100644 --- a/src/platform/intel/cavs/platform.c +++ b/src/platform/intel/cavs/platform.c @@ -327,26 +327,6 @@ int platform_boot_complete(uint32_t boot_message) #endif -/* init HW */ -static void platform_init_hw(void) -{ - io_reg_write(DSP_INIT_GENO, - GENO_MDIVOSEL | GENO_DIOPTOSEL); - - io_reg_write(DSP_INIT_IOPO, - IOPO_DMIC_FLAG | IOPO_I2S_FLAG); - -#ifndef __ZEPHYR__ - io_reg_write(DSP_INIT_ALHO, - ALHO_ASO_FLAG | ALHO_CSO_FLAG); - - io_reg_write(DSP_INIT_LPGPDMA(0), - LPGPDMA_CHOSEL_FLAG | LPGPDMA_CTLOSEL_FLAG); - io_reg_write(DSP_INIT_LPGPDMA(1), - LPGPDMA_CHOSEL_FLAG | LPGPDMA_CTLOSEL_FLAG); -#endif -} - /* Runs on the primary core only */ int platform_init(struct sof *sof) { @@ -377,9 +357,6 @@ int platform_init(struct sof *sof) */ pm_runtime_disable(PM_RUNTIME_DSP, 0); - trace_point(TRACE_BOOT_PLATFORM_ENTRY); - platform_init_hw(); - trace_point(TRACE_BOOT_PLATFORM_IRQ); platform_interrupt_init();