mediatek: mt8173: apply MULTI_CONSOLE framework- Switch uart driver from Mediatek 8250 to TI 16550- Enable MULTI_CONSOLESigned-off-by: kenny liang <kenny.liang@mediatek.com>Change-Id: Ie3948d9e
mediatek: mt8173: apply MULTI_CONSOLE framework- Switch uart driver from Mediatek 8250 to TI 16550- Enable MULTI_CONSOLESigned-off-by: kenny liang <kenny.liang@mediatek.com>Change-Id: Ie3948d9e64d05d29a1f69592792e277b680c4ed4
show more ...
Remove deprecated plat_crash_console_*The default implementations are defined in crash_console_helpers.S. Theplatforms have to define plat_crash_console_*.Implemented placeholders for platforms
Remove deprecated plat_crash_console_*The default implementations are defined in crash_console_helpers.S. Theplatforms have to define plat_crash_console_*.Implemented placeholders for platforms that were missing helpers.Change-Id: Iea60b6f851956916e421dfd8c34a62d96eb9148eSigned-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
Sanitise includes across codebaseEnforce full include path for includes. Deprecate old paths.The following folders inside include/lib have been left unchanged:- include/lib/cpus/${ARCH}- inclu
Sanitise includes across codebaseEnforce full include path for includes. Deprecate old paths.The following folders inside include/lib have been left unchanged:- include/lib/cpus/${ARCH}- include/lib/el3_runtime/${ARCH}The reason for this change is that having a global namespace forincludes isn't a good idea. It defeats one of the advantages of havingfolders and it introduces problems that are sometimes subtle (becauseyou may not know the header you are actually including if there are twoof them).For example, this patch had to be created because two headers werecalled the same way: e0ea0928d5b7 ("Fix gpio includes of mt8173 platformto avoid collision."). More recently, this patch has had similarproblems: 46f9b2c3a282 ("drivers: add tzc380 support").This problem was introduced in commit 4ecca33988b9 ("Move include andsource files to logical locations"). At that time, there weren't toomany headers so it wasn't a real issue. However, time has shown thatthis creates problems.Platforms that want to preserve the way they include headers may add theremoved paths to PLAT_INCLUDES, but this is discouraged.Change-Id: I39dc53ed98f9e297a5966e723d1936d6ccf2fc8fSigned-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
mediatek: Migrate to new interfaces- mt6795: Migrate to new GIC interfaces.- Remove support for PSCI platform compatibility layer.- Migrate to bl31_early_platform_setup2().- Migrate from cm_init
mediatek: Migrate to new interfaces- mt6795: Migrate to new GIC interfaces.- Remove support for PSCI platform compatibility layer.- Migrate to bl31_early_platform_setup2().- Migrate from cm_init_context() to cm_init_my_context().- Use PLAT_VIRT_ADDR_SPACE_SIZE and PLAT_PHY_ADDR_SPACE_SIZE.- Update Makefile paths.- Use private definition of bl31_params_t.This is an incomplete migration, mt6795 doesn't currently compile.Change-Id: Icf9307637066cd6f2166524715e4f117f5ce2350Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Use SPDX license identifiersTo make software license auditing simpler, use SPDX[0] licenseidentifiers instead of duplicating the license text in every file.NOTE: Files that have been imported by
Use SPDX license identifiersTo make software license auditing simpler, use SPDX[0] licenseidentifiers instead of duplicating the license text in every file.NOTE: Files that have been imported by FreeBSD have not been modified.[0]: https://spdx.org/Change-Id: I80a00e1f641b8cc075ca5a95b10607ed9ed8761aSigned-off-by: dp-arm <dimitris.papastamos@arm.com>
Get rid of use of compatibility APImake 'make ARCH=aarch64 CROSS_COMPILE=aarch64-linux-gnu- PLAT=mt8173ENABLE_PLAT_COMPAT=0' work.Change-Id: I13f35d8aef23dfa0e65883fa0be43f1513c9fef5Signed-off-
Get rid of use of compatibility APImake 'make ARCH=aarch64 CROSS_COMPILE=aarch64-linux-gnu- PLAT=mt8173ENABLE_PLAT_COMPAT=0' work.Change-Id: I13f35d8aef23dfa0e65883fa0be43f1513c9fef5Signed-off-by: Koan-Sin Tan <koansin.tan@gmail.com>
Introduce utils.h header fileThis patch introduces a new header file: include/lib/utils.h.Its purpose is to provide generic macros and helper functions thatare independent of any BL image, archit
Introduce utils.h header fileThis patch introduces a new header file: include/lib/utils.h.Its purpose is to provide generic macros and helper functions thatare independent of any BL image, architecture, platform and evennot specific to Trusted Firmware.For now, it contains only 2 macros: ARRAY_SIZE() andIS_POWER_OF_TWO(). These were previously defined in bl_common.h andxlat_tables.c respectively.bl_common.h includes utils.h to retain compatibility for platformsthat relied on bl_common.h for the ARRAY_SIZE() macro. Upstreamplatform ports that use this macro have been updated to includeutils.h.Change-Id: I960450f54134f25d1710bfbdc4184f12c049a9a9
Implement plat_get_syscnt_freq2 on platformsReplaced plat_get_syscnt_freq by plat_get_syscnt_freq2 on allupstream platforms.Change-Id: I3248f3f65a16dc5e9720012a05c35b9e3ba6abbe
Move `plat_get_syscnt_freq()` to arm_common.cThis patch moves the definition for `plat_get_syscnt_freq()`from arm_bl31_setup.c to arm_common.c. This could be usefulin case a delay timer needs to
Move `plat_get_syscnt_freq()` to arm_common.cThis patch moves the definition for `plat_get_syscnt_freq()`from arm_bl31_setup.c to arm_common.c. This could be usefulin case a delay timer needs to be installed based on thegeneric timer in other BLs.This patch also modifies the return type for this functionfrom `uint64_t` to `unsigned long long` within ARM and otherplatform files.Change-Id: Iccdfa811948e660d4fdcaae60ad1d700e4eda80d
mt8173: Add #error directive to prevent RESET_TO_BL31MT8173 platform code is incompatible with RESET_TO_BL31, add #errordirective to prevent the case.We also move mt8173_def.h and plat_private.h
mt8173: Add #error directive to prevent RESET_TO_BL31MT8173 platform code is incompatible with RESET_TO_BL31, add #errordirective to prevent the case.We also move mt8173_def.h and plat_private.h to include directory, andremove some unnecessary code.Change-Id: I47b8d0a506820a4ea1fbe8c8fb0ec6c68d88feb5Signed-off-by: Jimmy Huang <jimmy.huang@mediatek.com>
Disable PL011 UART before configuring itThe PL011 TRM (ARM DDI 0183G) specifies that the UART must bedisabled before any of the control registers are programmed. ThePL011 driver included in TF do
Disable PL011 UART before configuring itThe PL011 TRM (ARM DDI 0183G) specifies that the UART must bedisabled before any of the control registers are programmed. ThePL011 driver included in TF does not disable the UART, so theinitialization in BL2 and BL31 is violating this requirement(and potentially in BL1 if the UART is enabled after reset).This patch modifies the initialization function in the PL011console driver to disable the UART before programming thecontrol registers.Register clobber list and documentation updated.Fixes ARM-software/tf-issues#300Change-Id: I839b2d681d48b03f821ac53663a6a78e8b30a1a1
Initial platform port for MediaTek mt8173- Boot up 4 cores.- Add a generic UART driver.- Add generic CPU helper functions- Supoort suspend- Add system_off & system_reset implementation- Add cr
Initial platform port for MediaTek mt8173- Boot up 4 cores.- Add a generic UART driver.- Add generic CPU helper functions- Supoort suspend- Add system_off & system_reset implementation- Add crash console reporting implementation- Add get_sys_suspend_power_state() for PSCI 1.0 SYSTEM_SUSPEND- Add Mediatek SIP runtime service- Add delay timer platform implementationChange-Id: I44138249f115ee10b9cbd26fdbc2dd3af04d825fSigned-off-by: CC Ma <cc.ma@mediatek.com>Signed-off-by: Jimmy Huang <jimmy.huang@mediatek.com>