| a6ff0067 | 16-Jan-2023 |
Chris Kay <chris.kay@arm.com> |
build: permit multiple linker scripts
This change allows platforms to provide more than one linker script to any image utilizing the `MAKE_BL` build system macro.
This is already done by some Media
build: permit multiple linker scripts
This change allows platforms to provide more than one linker script to any image utilizing the `MAKE_BL` build system macro.
This is already done by some MediaTek platforms via the `EXTRA_LINKERFILE` build system variable, which has now been removed.
In its place, additional linker scripts may be added to the `<IMAGE>_LINKER_SCRIPT_SOURCES` variable.
BREAKING-CHANGE: The `EXTRA_LINKERFILE` build system variable has been replaced with the `<IMAGE>_LINKER_SCRIPT_SOURCES` variable. See the commit message for more information.
Change-Id: I3f0b69200d6a4841fd158cd09344ce9e67047271 Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| a321337b | 06-Jan-2023 |
Liju-Clr Chen <liju-clr.chen@mediatek.com> |
refactor(mediatek): add new LPM API for further extension
Add new LPM API `mt_lp_rm_find_constraint` and `mt_lp_rm_run_constraint` for further extension.
Signed-off-by: Liju-Clr Chen <liju-clr.chen
refactor(mediatek): add new LPM API for further extension
Add new LPM API `mt_lp_rm_find_constraint` and `mt_lp_rm_run_constraint` for further extension.
Signed-off-by: Liju-Clr Chen <liju-clr.chen@mediatek.com> Change-Id: I8298811e03227285a7d086166edf9e87471f74b4
show more ...
|
| b0208c73 | 06-Jan-2023 |
Liju-Clr Chen <liju-clr.chen@mediatek.com> |
refactor(mediatek): change the parameters of LPM API
Change the parameters of the LPM API for further extension.
Change-Id: Id8897c256c2118d00c6b9f3e7424ebc6100f02eb Signed-off-by: Liju-Clr Chen <l
refactor(mediatek): change the parameters of LPM API
Change the parameters of the LPM API for further extension.
Change-Id: Id8897c256c2118d00c6b9f3e7424ebc6100f02eb Signed-off-by: Liju-Clr Chen <liju-clr.chen@mediatek.com>
show more ...
|
| 1c5fc9a2 | 06-Jan-2023 |
Liju-Clr Chen <liju-clr.chen@mediatek.com> |
refactor(mediatek): change LPM header file path for further extension
Move `mt_lp_rm.h` to `plat/mediatek/include/lpm` for further extension.
Change-Id: If377ce6791ce80f82643b0f2466eb0f1aa5aa40b Si
refactor(mediatek): change LPM header file path for further extension
Move `mt_lp_rm.h` to `plat/mediatek/include/lpm` for further extension.
Change-Id: If377ce6791ce80f82643b0f2466eb0f1aa5aa40b Signed-off-by: Liju-Clr Chen <liju-clr.chen@mediatek.com>
show more ...
|
| e56a939c | 15-Dec-2022 |
Shaocheng Wang <shaocheng.wang@mediatek.corp-partner.google.com> |
feat(mt8188): keep infra and peri on when system suspend
In order to wake up system from USB devices, keep infra and peri on when system suspend.
Change-Id: I0a0eb2e72709b0cc1bf11b36241a50cb5d85d9b
feat(mt8188): keep infra and peri on when system suspend
In order to wake up system from USB devices, keep infra and peri on when system suspend.
Change-Id: I0a0eb2e72709b0cc1bf11b36241a50cb5d85d9b8 Signed-off-by: Shaocheng Wang <shaocheng.wang@mediatek.corp-partner.google.com>
show more ...
|
| 380f64b2 | 07-Sep-2022 |
James Liao <jamesjj.liao@mediatek.com> |
feat(mt8188): enable SPM and LPM
Enable SPM and LPM features for MT8188.
Signed-off-by: James Liao <jamesjj.liao@mediatek.com> Change-Id: Ib3e2b305e9e3cf5a67e6e787ff942831b5ff28cd |
| f299efbe | 16-Nov-2022 |
James Liao <jamesjj.liao@mediatek.com> |
feat(mt8188): add SPM feature support
Add SPM low power functions, such as system suspend.
Change-Id: I6d1ad847a81ba9c347ab6fb8a8cb8c69004b7add Signed-off-by: James Liao <jamesjj.liao@mediatek.com> |
| 45d50759 | 07-Sep-2022 |
James Liao <jamesjj.liao@mediatek.com> |
feat(mt8188): add MT8188 SPM support
Add SPM basic functions including SPM init.
Signed-off-by: James Liao <jamesjj.liao@mediatek.com> Change-Id: I5d4860685c15f3b8d555e697837862287f0c303e |
| c234ad17 | 15-Nov-2022 |
James Liao <jamesjj.liao@mediatek.com> |
feat(mediatek): add SPM's SSPM notifier
The notifier is used to notify SSPM to sleep when system suspend or notify SSPM to wakeup when system resume.
Change-Id: I027ca356a84ea1e58be54a8a5eb302b3b96
feat(mediatek): add SPM's SSPM notifier
The notifier is used to notify SSPM to sleep when system suspend or notify SSPM to wakeup when system resume.
Change-Id: I027ca356a84ea1e58be54a8a5eb302b3b96c2e22 Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
show more ...
|
| 1a64689d | 07-Sep-2022 |
James Liao <jamesjj.liao@mediatek.com> |
feat(mt8188): add the register definitions accessed by SPM
SPM needs to access some modules' registers to decide its sleep behavior. This patch add these register definitions to platform_def.h.
Sig
feat(mt8188): add the register definitions accessed by SPM
SPM needs to access some modules' registers to decide its sleep behavior. This patch add these register definitions to platform_def.h.
Signed-off-by: James Liao <jamesjj.liao@mediatek.com> Change-Id: I3bebe74e367d5f6a7b59563036e18a83a3ef31e9
show more ...
|
| 917abdd9 | 07-Sep-2022 |
James Liao <jamesjj.liao@mediatek.com> |
feat(mediatek): add new features of LPM
Add new functions and intefaces of LPM to support more interactions between LPM providers and users.
Signed-off-by: James Liao <jamesjj.liao@mediatek.com> Ch
feat(mediatek): add new features of LPM
Add new functions and intefaces of LPM to support more interactions between LPM providers and users.
Signed-off-by: James Liao <jamesjj.liao@mediatek.com> Change-Id: I8ebbda0c0ef5be3a7a388a38c09424ebf785996f
show more ...
|
| 601e2d43 | 10-Jan-2023 |
Manish Pandey <manish.pandey2@arm.com> |
Merge changes from topic "bk/warnings" into integration
* changes: docs: describe the new warning levels build: add -Wunused-const-variable=2 to W=2 build: include -Wextra in generic builds
Merge changes from topic "bk/warnings" into integration
* changes: docs: describe the new warning levels build: add -Wunused-const-variable=2 to W=2 build: include -Wextra in generic builds docs(porting-guide): update a reference fix(st-usb): replace redundant checks with asserts fix(brcm): add braces around bodies of conditionals fix(renesas): align incompatible function pointers fix(zynqmp): remove redundant api_version check fix: remove old-style declarations fix: unify fallthrough annotations
show more ...
|
| 98415e1a | 30-Dec-2022 |
Chengci.Xu <chengci.xu@mediatek.com> |
feat(mt8188): update INFRA IOMMU enable flow
IOMMU kernel driver has changed the function parameters, so update IOMMU TF-A driver to be consistent with it.
Change-Id: I2adda69bdbdc31833781fac5e6c1f
feat(mt8188): update INFRA IOMMU enable flow
IOMMU kernel driver has changed the function parameters, so update IOMMU TF-A driver to be consistent with it.
Change-Id: I2adda69bdbdc31833781fac5e6c1f4b10da161be Signed-off-by: Chengci.Xu <chengci.xu@mediatek.com>
show more ...
|
| e138400d | 18-Nov-2022 |
Boyan Karatotev <boyan.karatotev@arm.com> |
fix: unify fallthrough annotations
Compiling with -Wimplicit-fallthrough=3 (enabled by -Wextra) produces many warnings about fallthrough comments either missing or being wrong. Unify the comments so
fix: unify fallthrough annotations
Compiling with -Wimplicit-fallthrough=3 (enabled by -Wextra) produces many warnings about fallthrough comments either missing or being wrong. Unify the comments so we comply with -Wextra.
Note that Coverity recommends against using the __attribute__ directive. Also, zlib does not build with a higher value of -Wimplicit-fallthrough. Finally, compilers strip comments before expanding macros. As such, checkpatch's fallthrough annotation (or higher levels of the flag) isn't really possible.
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Change-Id: I060cf4f8dc04c02cbb45cf4ceb69569a8369ccee
show more ...
|
| 32071c02 | 11-Nov-2022 |
Liju-Clr Chen <liju-clr.chen@mediatek.com> |
fix(mt8188): add mmap entry for CPU idle SRAM
CPU PM driver accesses CPU idle SRAM during the system suspend process. The region of CPU idle SRAM needs to be added as mmap entry. Otherwise, the exec
fix(mt8188): add mmap entry for CPU idle SRAM
CPU PM driver accesses CPU idle SRAM during the system suspend process. The region of CPU idle SRAM needs to be added as mmap entry. Otherwise, the execption would occur.
BUG=b:244215539 TEST=Test of suspend resume passes.
Signed-off-by: Liju-Clr Chen <liju-clr.chen@mediatek.com> Change-Id: I5838964fd9cb1b833e4006e2123febb4a4601003
show more ...
|
| 210ebbb0 | 23-Sep-2022 |
James Liao <jamesjj.liao@mediatek.com> |
fix(mt8188): refine gic init flow after system resume
Call gicv3_distif_init() instead of mt_gic_init() in armv8_2_mcusys_pwr_on_common(). This is to prevent gicv3_rdistif_init() and gicv3_cpuif_ena
fix(mt8188): refine gic init flow after system resume
Call gicv3_distif_init() instead of mt_gic_init() in armv8_2_mcusys_pwr_on_common(). This is to prevent gicv3_rdistif_init() and gicv3_cpuif_enable() from being called twice in the power-on flow. gicv3_rdistif_init() and gicv3_cpuif_enable() are called in later armv8_2_cpu_pwr_on_common().
BUG=b:244215539 TEST=Suspend Resume Test pass
Change-Id: Id752c1ccbb9eab277ed6278c2dd90a051a894146 Signed-off-by: Liju-Clr Chen <liju-clr.chen@mediatek.com>
show more ...
|
| 600f1681 | 08-Nov-2022 |
Allen-KH Cheng <allen-kh.cheng@mediatek.corp-partner.google.com> |
fix(mt8186): fix the DRAM voltage after the system resumes
The DRAM power supply must sustain at 0.8V after the system resumes. Otherwise, unexpected errors would occur. Therefore, we update the DRA
fix(mt8186): fix the DRAM voltage after the system resumes
The DRAM power supply must sustain at 0.8V after the system resumes. Otherwise, unexpected errors would occur. Therefore, we update the DRAM voltage to 0.8v in PMIC voltage wrap table.
BUG=b:253537849 TEST=Suspend Resume Test
Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.corp-partner.google.com> Change-Id: Idd42d5a2d646468822e391e48d01d870c3b7f0d3
show more ...
|
| c70f567a | 20-Sep-2022 |
Trevor Wu <trevor.wu@mediatek.com> |
feat(mt8188): add audio support
For MT8188, MTK_AUDIO_SMC_OP_DOMAIN_SIDEBANDS is required for normal mode switch. - Add audio common code and chip specific code. - Add new id (MTK_SIP_AUDIO_CONT
feat(mt8188): add audio support
For MT8188, MTK_AUDIO_SMC_OP_DOMAIN_SIDEBANDS is required for normal mode switch. - Add audio common code and chip specific code. - Add new id (MTK_SIP_AUDIO_CONTROL) to mtk_sip_def.h. - Enable for MT8188.
Signed-off-by: Trevor Wu <trevor.wu@mediatek.com> Change-Id: Iff4680cd0b520b2b519ecf30ecafe100f147cc62
show more ...
|
| f278d84d | 03-Nov-2022 |
Liju-Clr Chen <liju-clr.chen@mediatek.com> |
refactor(mt8195): use ptp3 common drivers
Some 8195 ptp3 drivers are the same in plat/mediatek/drivers/ptp3, so add this patch to reuse them.
Change-Id: I2b1801a73b6a2979e20d49d314c57f663dc5bf04 Si
refactor(mt8195): use ptp3 common drivers
Some 8195 ptp3 drivers are the same in plat/mediatek/drivers/ptp3, so add this patch to reuse them.
Change-Id: I2b1801a73b6a2979e20d49d314c57f663dc5bf04 Signed-off-by: Liju-Clr Chen <liju-clr.chen@mediatek.com>
show more ...
|
| 44a10511 | 17-Oct-2022 |
Riven Chen <riven.chen@mediatek.corp-partner.google.com> |
feat(mt8188): add support for PTP3
Add PTP3 driver to protect CPU from excessive voltage drop in CPU heavy loading.
Signed-off-by: Riven Chen <riven.chen@mediatek.corp-partner.google.com> Change-Id
feat(mt8188): add support for PTP3
Add PTP3 driver to protect CPU from excessive voltage drop in CPU heavy loading.
Signed-off-by: Riven Chen <riven.chen@mediatek.corp-partner.google.com> Change-Id: I394096be43e1d1d615f99b22f38f0b3ae0bb40c1
show more ...
|
| 0b1186a3 | 14-Oct-2022 |
Rex-BC Chen <rex-bc.chen@mediatek.com> |
feat(mt8188): enable MTK_PUBEVENT_ENABLE
Enable MTK_PUBEVENT_ENABLE for subscribing CPUPM events. This patch also corrects the header file naming.
Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.
feat(mt8188): enable MTK_PUBEVENT_ENABLE
Enable MTK_PUBEVENT_ENABLE for subscribing CPUPM events. This patch also corrects the header file naming.
Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com> Change-Id: Iabd89a4ead21ccafa833390367484bfea5d351f6
show more ...
|
| fcf4dd9f | 26-Oct-2022 |
Rex-BC Chen <rex-bc.chen@mediatek.com> |
fix(mediatek): switch console to runtime state before leaving BL31
We should switch console to runtime state. If we don't do this, the state will keep boot state even we exit from BL31.
Signed-off-
fix(mediatek): switch console to runtime state before leaving BL31
We should switch console to runtime state. If we don't do this, the state will keep boot state even we exit from BL31.
Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com> Change-Id: Id2269ccf2fdc22e0fa088c3c0365836730172233
show more ...
|
| 28a8b738 | 07-Oct-2022 |
Tinghan Shen <tinghan.shen@mediatek.com> |
fix(mt8186): fix EMI_MPU domain setting for DSP
Correct the domain setting for DSP. It should be 6.
BUG=b:249954378 TEST=audio is functional.
Change-Id: Ie79aa0dad3d2b1ef5de0f2acc51ded13b6f085ac S
fix(mt8186): fix EMI_MPU domain setting for DSP
Correct the domain setting for DSP. It should be 6.
BUG=b:249954378 TEST=audio is functional.
Change-Id: Ie79aa0dad3d2b1ef5de0f2acc51ded13b6f085ac Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com>
show more ...
|
| af1ee1fa | 05-Oct-2022 |
Olivier Deprez <olivier.deprez@arm.com> |
Merge changes from topic "mt8188 cpu_pm" into integration
* changes: feat(mediatek): move lpm drivers back to common feat(mt8188): add cpu_pm driver fix(mt8188): refine c-state power domain fo
Merge changes from topic "mt8188 cpu_pm" into integration
* changes: feat(mediatek): move lpm drivers back to common feat(mt8188): add cpu_pm driver fix(mt8188): refine c-state power domain for extensibility
show more ...
|
| 8a998b5a | 03-Oct-2022 |
Yidi Lin <yidilin@chromium.org> |
fix(mt8186-emi-mpu): fix SCP permission
Hardware video decoding is not working after enabling EMI MPU protection for SCP.
According to coreboot DEVAPC setting, SCP belongs to domain 4 instead of do
fix(mt8186-emi-mpu): fix SCP permission
Hardware video decoding is not working after enabling EMI MPU protection for SCP.
According to coreboot DEVAPC setting, SCP belongs to domain 4 instead of domain 3. So correct the permission setting.
BUG=b:249954378 TEST=play video and see codec irq count is incrementing.
Signed-off-by: Yidi Lin <yidilin@chromium.org> Change-Id: If71de3eabf8682909f96924c159aa92f25deb96c
show more ...
|