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

intel_adsp: cavs: add missing lpgpdma access and ownership initialization #55738

Merged
merged 1 commit into from
May 30, 2023

Conversation

kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Mar 13, 2023

While pruning SOF code from HW access that should be done in Zephyr. a few registers were found that were programmed in SOF (i.e. in application code) where as these should be programmed in Zephyr code.

These registers are similar to DSP_INIT_IOPO which is already programmed in power_init().

soc/xtensa/intel_adsp/cavs/power.c Outdated Show resolved Hide resolved
@kv2019i
Copy link
Collaborator Author

kv2019i commented Apr 26, 2023

V2 uploaded:

  • dropped the other patch (not needed)
  • alh change moved from soc code to driver based on feedback from review

drivers/dai/intel/alh/alh.c Outdated Show resolved Hide resolved
@kv2019i kv2019i marked this pull request as draft May 5, 2023 14:23
For Intel cavs2.5, access from LPGPDMAC to Audio Link Hub
RX/TX registers needs to be explicitly enabled before use.

The logic follow hardware initialization done in
SOF project sof/src/platform/intel/cavs/platform.c

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i kv2019i force-pushed the 202303-platform-init branch from 7ac2a56 to 98aff27 Compare May 29, 2023 09:59
@nashif nashif merged commit aa5b66b into zephyrproject-rtos:main May 30, 2023
kv2019i added a commit to kv2019i/sof that referenced this pull request Jun 5, 2023
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: thesofproject#7249
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
kv2019i added a commit to thesofproject/sof that referenced this pull request Jun 6, 2023
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants