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

mt8195_adsp support #21

Merged
merged 2 commits into from
Aug 29, 2023
Merged

mt8195_adsp support #21

merged 2 commits into from
Aug 29, 2023

Conversation

andyross
Copy link
Contributor

@andyross andyross commented Aug 7, 2023

Headers for the mt8195_adsp device. See zephyrproject-rtos/zephyr#61197 and zephyrproject-rtos/sdk-ng#694

Note the disabled file (albeit a really obscure one I promise no one will need) in the HAL build. Seems like current Cadence headers have skewed far enough away from our HAL code that some things are breaking.

@dcpleung
Copy link
Member

The addi.a is added by the tie-asm.h in your second commit inside xchal_cp_AudioEngineLX_store. If you change it to addi, there is no need to remove state-asm.S.

@nashif nashif self-requested a review August 26, 2023 15:03
Headers for the MT8195 Audio DSP.  Specifically these were extracted
from a just-configured Cadence RI-2021.6 toolchain for the core
"hifi4_8195_PROD".

Signed-off-by: Andy Ross <[email protected]>
The "addi.a" instruction referenced in this file doesn't build with
non-Cadence assemblers.  By name, it would seem to be a "add immediate
single precision floating point", but the way it's used is clearly
as an integer counter in a regular GPR.  Use an addi, which seems to
be the intent, to make this build.  In practice this code won't ever
be executed by Zephyr apps anyway.

Signed-off-by: Andy Ross <[email protected]>
@andyross
Copy link
Contributor Author

Rebase and take Daniel's suggestion about the weird instruction. Which... I mean I guess it's probably the same as an addi, but it's absolutely not documented anywhere... But for sure building one possibly-broken code path in a HAL file that will never be used is cleaner than disabling the whole file.

@nashif nashif merged commit e7964dd into zephyrproject-rtos:master Aug 29, 2023
1 check failed
@dbaluta dbaluta mentioned this pull request Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants