| ef988aed | 09-Aug-2022 |
Rex-BC Chen <rex-bc.chen@mediatek.com> |
feat(mediatek): support coreboot BL31 loading
The ChromeOS project uses Coreboot as BL2 instead of MediaTek regular bootloader, so we use COREBOOT flag to support Coreboot boot flow.
Signed-off-by:
feat(mediatek): support coreboot BL31 loading
The ChromeOS project uses Coreboot as BL2 instead of MediaTek regular bootloader, so we use COREBOOT flag to support Coreboot boot flow.
Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com> Change-Id: I45e95ea51e90158187452eba52fc58090d1c60a4
show more ...
|
| 394b9208 | 26-Jun-2022 |
Leon Chen <leon.chen@mediatek.com> |
feat(mediatek): implement generic platform port
Implement mandatory platform port functions. Receive boot arguments from bl2, populate bl33 and bl32 image entry structs, call each MTK initcall level
feat(mediatek): implement generic platform port
Implement mandatory platform port functions. Receive boot arguments from bl2, populate bl33 and bl32 image entry structs, call each MTK initcall levels in these mandatory platform port functions. After bl31_main exit and handover to 2nd boot loader, mtk bl33 issues SMC and traps to TF-A to execute boot_to_kernel and then handover to Linux kernel.
Signed-off-by: Leon Chen <leon.chen@mediatek.com> Change-Id: I8d5a3511668fc749c4c71edf1ac700002cb5a9c8
show more ...
|
| 6a7e8ebf | 08-Jun-2022 |
Leon Chen <leon.chen@mediatek.com> |
refactor(mediatek): smc registration services
To modularize SMC handler, provide macro function in mtk_sip_svc.h. Drivers register SMC name with value in mtk_sip_def.h, and bind the SMC handler with
refactor(mediatek): smc registration services
To modularize SMC handler, provide macro function in mtk_sip_svc.h. Drivers register SMC name with value in mtk_sip_def.h, and bind the SMC handler with the SMC ID by calling DECLARE_SMC_HANDLER macro.
MTK_SIP_SMC_FROM_BL33_TABLE expand the SMC table as switch-case table statically. DECLARE_SMC_HANDLER wrap SMC handlers with a structure and put in a section. During cold boot initialization, in MTK_EARLY_PLAT_INIT level parse the section to assign each handler with an index. Each SMC request can be identified with switch-case and take the index to call into corresponding SMC handler.
Signed-off-by: Leon Chen <leon.chen@mediatek.com> Change-Id: I03da212c786de0ec0ea646ba906065ecfcd82571
show more ...
|
| bb28dc7a | 01-Aug-2020 |
Yuchen Huang <yuchen.huang@mediatek.com> |
mediatek: mt8192: add uart save and restore api
When system resume, we want to print log as soon as possible. So we add uart save and restore api, and they will be called when systtem suspend and re
mediatek: mt8192: add uart save and restore api
When system resume, we want to print log as soon as possible. So we add uart save and restore api, and they will be called when systtem suspend and resume.
Change-Id: I83b477fd2b39567c9c6b70534ef186993f7053ae Signed-off-by: Yuchen Huang <yuchen.huang@mediatek.com> Signed-off-by: Roger Lu <roger.lu@mediatek.com>
show more ...
|
| a5612057 | 03-May-2019 |
kenny liang <kenny.liang@mediatek.com> |
mediatek: mt8183: pass platform parameters
Add plat parameter structs to support BL2 to pass variable-length, variable-type parameters to BL31. The parameters are structured as a link list. During B
mediatek: mt8183: pass platform parameters
Add plat parameter structs to support BL2 to pass variable-length, variable-type parameters to BL31. The parameters are structured as a link list. During BL31 setup time, we traverse the list to process each parameter.
Signed-off-by: kenny liang <kenny.liang@mediatek.com> Change-Id: Ie84cfc9606656fb1d2780a68cadf27e09afa6628
show more ...
|