Skip to content

Commit

Permalink
platform: cavs: do not program GPDMA/ALH ownership in Zephyr builds
Browse files Browse the repository at this point in the history
If SOF is built with Zephyr, the GPDMA/ALH ownership programming
should happen in Zephyr platform code, not on SOF side.

Link: zephyrproject-rtos/zephyr#55738
Closes: #7249
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
  • Loading branch information
kv2019i committed Jun 6, 2023
1 parent bf6ae6d commit 07ed14b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/intel/cavs/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,15 @@ static void platform_init_hw(void)
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 */
Expand Down

0 comments on commit 07ed14b

Please sign in to comment.