soc: boards: Add Mediatek MT8186 and MT8188 audio DSPs#74352
Closed
andyross wants to merge 5 commits intozephyrproject-rtos:mainfrom
Closed
soc: boards: Add Mediatek MT8186 and MT8188 audio DSPs#74352andyross wants to merge 5 commits intozephyrproject-rtos:mainfrom
andyross wants to merge 5 commits intozephyrproject-rtos:mainfrom
Conversation
This is currently selected by the arch, but some devices (in paticular xtensa ones which have configurable interrupt setups) might not actually be able to effect an irq_offload() from within an ISR even though we have code for it. Make this a default and not a select so that lower layers can override the setting. Signed-off-by: Andy Ross <andyross@google.com>
Wire the default printk output to the console at boot, just to be sure we have stdio output good enough to get tests to pass. Signed-off-by: Andy Ross <andyross@google.com>
This is a feature of the 8195 DSP only, which is used only vestigially by SOF to store data that nothing reads. The Linux kernel on the other side uses a shared driver for all 81xx devices, which does not expose the feature. It seems to work, but it's not worth maintaining a driver in tree for legacy hardware that will never use it. Signed-off-by: Andy Ross <andyross@google.com>
These are very similar devices to mt8195, minimal changes needed beyond boilerplate configuration. Note that the cpuclk driver is not yet ported, it works only with 8195 (the clocking/power architecture seems similar between the parts, but the graph of wells and clocks is different and historically these have been three separate drivers in SOF). The biggest changes are in the image/loader scripts, which needed some rework for cross-device portability. Signed-off-by: Andy Ross <andyross@google.com>
1cb3888 to
84e17f9
Compare
Simple docs for this board family. Not a lot of complexity currently. Signed-off-by: Andy Ross <andyross@google.com>
nordicjm
requested changes
Jul 1, 2024
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| config BOARD_MT8186_ADSP | ||
| bool "Mediatek MT8186 Audio DSP" |
Contributor
There was a problem hiding this comment.
Suggested change
| bool "Mediatek MT8186 Audio DSP" |
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| config BOARD_MT8188_ADSP | ||
| bool "Mediatek MT8188 Audio DSP" |
Contributor
There was a problem hiding this comment.
Suggested change
| bool "Mediatek MT8188 Audio DSP" |
| @@ -3,3 +3,4 @@ | |||
|
|
|||
| config BOARD_MT8195_ADSP | |||
| bool "Mediatek MT8195 Audio DSP" | |||
Contributor
There was a problem hiding this comment.
Suggested change
| bool "Mediatek MT8195 Audio DSP" |
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| config SOC_FAMILY_MTK_ADSP | ||
| bool "Mediatek MT8xxx Series Audio DSPs" |
Contributor
There was a problem hiding this comment.
Suggested change
| bool "Mediatek MT8xxx Series Audio DSPs" | |
| bool |
| bool "Mediatek MT8xxx Series Audio DSPs" | ||
|
|
||
| config SOC_SERIES_MT8195_ADSP | ||
| bool "Mediatek 8195 Audio DSP" |
Contributor
There was a problem hiding this comment.
Suggested change
| bool "Mediatek 8195 Audio DSP" | |
| bool |
| Mediatek MT8195 Audio DSP | ||
|
|
||
| config SOC_SERIES_MT818X_ADSP | ||
| bool "Mediatek 818x Audio DSPs" |
Contributor
There was a problem hiding this comment.
Suggested change
| bool "Mediatek 818x Audio DSPs" | |
| bool |
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These are very similar devices to mt8195, minimal changes needed beyond boilerplate configuration.
See notes in commit messages. Also note that this requires the HAL commit in zephyrproject-rtos/hal_xtensa#30 , I know there's a convention for including cross-repo PR west updates for build purposes, but given that the RFC is about to be cut I think this can probably just wait for the HAL merge. There's no rush to get it in prior to the freeze anyway.