Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 367
src/platform: Add "mtk" Zephyr platform for MediaTek DSPs#9755
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
e49e31e3b6df4a2763b7df67cb2872861bf827ea54File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Boilerplate. Because the "Platform" is a kconfig "choice" (of which | ||
| # "MTK" is an member), it can't be selected automatically from other | ||
| # kconfigs, nor expressed as a default. Don't put anything else here. | ||
| # Board-level config goes in Zephyr (and ideally in DTS). App-level | ||
| # config goes in prj.conf. | ||
| CONFIG_MTK=y | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Boilerplate. Because the "Platform" is a kconfig "choice" (of which | ||
| # "MTK" is an member), it can't be selected automatically from other | ||
| # kconfigs, nor expressed as a default. Don't put anything else here. | ||
| # Board-level config goes in Zephyr (and ideally in DTS). App-level | ||
| # config goes in prj.conf. | ||
Collaborator There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just a note it is accepted practise use to put vendor specific app settings in these board files. E.g. Intel example #9609 . I do agree anything that can be put in Zephyr board files/DTS or the app prj.conf, should not be put here. | ||
| CONFIG_MTK=y | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Boilerplate. Because the "Platform" is a kconfig "choice" (of which | ||
| # "MTK" is an member), it can't be selected automatically from other | ||
| # kconfigs, nor expressed as a default. Don't put anything else here. | ||
| # Board-level config goes in Zephyr (and ideally in DTS). App-level | ||
| # config goes in prj.conf. | ||
| CONFIG_MTK=y |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Boilerplate. Because the "Platform" is a kconfig "choice" (of which | ||
| # "MTK" is an member), it can't be selected automatically from other | ||
| # kconfigs, nor expressed as a default. Don't put anything else here. | ||
| # Board-level config goes in Zephyr (and ideally in DTS). App-level | ||
| # config goes in prj.conf. | ||
| CONFIG_MTK=y |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -104,6 +104,28 @@ class PlatformConfig: | ||
| "rmb_LX7_HiFi5_PROD", | ||
| RIMAGE_KEY = "key param ignored by acp_6_0" | ||
| ), | ||
| # MediaTek platforms | ||
| # (move to platform_configs_all on next Zephyr SDK release after 0.17.0) | ||
| "mt8195" : PlatformConfig( | ||
| "mtk", "mt8195/mt8195/adsp", | ||
| f"RJ-2024.3{xtensa_tools_version_postfix}", | ||
| "hifi4_8195_PROD", | ||
| ), | ||
| "mt8186" : PlatformConfig( | ||
| "mtk", "mt8186/mt8186/adsp", | ||
| f"RJ-2024.3{xtensa_tools_version_postfix}", | ||
| "hifi5_7stg_I64D128", | ||
| ), | ||
| "mt8188" : PlatformConfig( | ||
| "mtk", "mt8188/mt8188/adsp", | ||
| f"RJ-2024.3{xtensa_tools_version_postfix}", | ||
| "hifi5_7stg_I64D128", | ||
| ), | ||
| "mt8196" : PlatformConfig( | ||
| "mtk", "mt8196/mt8196/adsp", | ||
| f"RJ-2024.3{xtensa_tools_version_postfix}", | ||
| "HiFi5_MPU_lock_2023_11", | ||
| ), | ||
| } | ||
| # These can all be built out of the box. --all builds all these. | ||
| @@ -1173,7 +1195,7 @@ def gzip_compress(fname, gzdst=None): | ||
| RI_INFO_UNSUPPORTED += ['imx8', 'imx8x', 'imx8m', 'imx8ulp', 'imx95'] | ||
| RI_INFO_UNSUPPORTED += ['rn', 'acp_6_0'] | ||
| RI_INFO_UNSUPPORTED += ['mt8186', 'mt8195'] | ||
| RI_INFO_UNSUPPORTED += ['mt8186', 'mt8188', 'mt8195', 'mt8196'] | ||
andyross marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| # For temporary workarounds. Unlike _UNSUPPORTED above, the platforms below will print a warning. | ||
| RI_INFO_FIXME = [ ] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -231,7 +231,7 @@ config ACP_7_0 | ||
| Select if your target platform is acp_7_0-compatible | ||
| config MT8186 | ||
| bool "Build for MTK MT8186" | ||
| bool "Build for MTK MT8186 (XTOS)" | ||
| select XT_INTERRUPT_LEVEL_1 | ||
| select XT_INTERRUPT_LEVEL_2 | ||
| select XT_INTERRUPT_LEVEL_3 | ||
| @@ -244,9 +244,10 @@ config MT8186 | ||
| select SCHEDULE_DMA_MULTI_CHANNEL | ||
| help | ||
| Select if your target platform is mt8186-compatible | ||
| Builds legacy/xtos firmware | ||
| config MT8188 | ||
| bool "Build for MTK MT8188" | ||
| bool "Build for MTK MT8188 (XTOS)" | ||
| select XT_INTERRUPT_LEVEL_1 | ||
| select XT_INTERRUPT_LEVEL_2 | ||
| select XT_INTERRUPT_LEVEL_3 | ||
| @@ -259,9 +260,10 @@ config MT8188 | ||
| select SCHEDULE_DMA_MULTI_CHANNEL | ||
| help | ||
| Select if your target platform is mt8188-compatible. | ||
| Builds legacy/xtos firmware | ||
| config MT8195 | ||
| bool "Build for MTK MT8195" | ||
| bool "Build for MTK MT8195 (XTOS)" | ||
| select XT_INTERRUPT_LEVEL_1 | ||
| select XT_INTERRUPT_LEVEL_2 | ||
| select XT_INTERRUPT_LEVEL_3 | ||
| @@ -272,6 +274,14 @@ config MT8195 | ||
| select SCHEDULE_DMA_MULTI_CHANNEL | ||
| help | ||
| Select if your target platform is mt8195-compatible | ||
| Builds legacy/xtos firmware | ||
| config MTK | ||
| bool "Build for Mediatek (Zephyr)" | ||
| select SCHEDULE_DMA_MULTI_CHANNEL | ||
| select HOST_PTABLE | ||
| help | ||
| Select if your target is a Mediatek DSP. Builds Zephyr firmware. | ||
Collaborator There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will likely conflict with #9758 . Not a big issue, just need one to go first and then rebase... | ||
| endchoice | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.