| d150b629 | 11-Jul-2022 |
Rex-BC Chen <rex-bc.chen@mediatek.com> |
feat(mediatek): move dp drivers to common folder
Display port driver can be reused, so we move it to common/drivers.
TEST=build mt8195 pass BUG=b:233720142
Signed-off-by: Bo-Chen Chen <rex-bc.chen
feat(mediatek): move dp drivers to common folder
Display port driver can be reused, so we move it to common/drivers.
TEST=build mt8195 pass BUG=b:233720142
Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com> Change-Id: I58c7b41ba3ad653cdf6f6fbae6778abfd7e950a9
show more ...
|
| 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 ...
|
| 52035dee | 20-Jun-2022 |
Leon Chen <leon.chen@mediatek.com> |
feat(mediatek): introduce mtk init framework
Provide six initcall levels for drivers/modules initialize HW controllers or runtime arguments during cold boot.
The initcall level cold boot execution
feat(mediatek): introduce mtk init framework
Provide six initcall levels for drivers/modules initialize HW controllers or runtime arguments during cold boot.
The initcall level cold boot execution order:
-MTK_EARLY_PLAT_INIT Call before MMU enabled.
-MTK_ARCH_INIT MMU Enabled, arch related init(GiC init, interrupt type registration).
-MTK_PLAT_SETUP_0_INIT MTK driver init level 0.
-MTK_PLAT_SETUP_1_INIT MTK driver init level 1.
-MTK_PLAT_RUNTIME_INIT MTK driver init. After this initcall, TF-A handovers to MTK 2nd bootloader.
-MTK_PLAT_BL33_DEFER_INIT MTK 2nd bootloader traps to TF-A before handover to rich OS. This initcall executed in the trap handler(boot_to_kernel).
Signed-off-by: Leon Chen <leon.chen@mediatek.com> Change-Id: Icd7fe95372441db73c975ccb6ce77a6c529df1cc
show more ...
|
| c21a736d | 05-Jan-2022 |
Rex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com> |
feat(mt8195): apply erratas of CA78 for MT8195
MT8195 uses Cortex A78 CPU, so we apply these erratas.
TEST=build pass BUG=none
Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Change-Id: I5ce
feat(mt8195): apply erratas of CA78 for MT8195
MT8195 uses Cortex A78 CPU, so we apply these erratas.
TEST=build pass BUG=none
Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Change-Id: I5ce3d5c490a12226bff4eb5a2d55687da0f74f0e
show more ...
|