mirror of https://github.com/thesofproject/sof.git
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 <rander.wang@intel.com>
This commit is contained in:
parent
1d6abcd074
commit
1032fa30ed
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue