mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-07-27 18:40:12 +00:00
On some MediaTek platforms, the cores' System Timers aren't initialized corectly by TEE, so we need to enable them manually, otherwise CNTVCT_EL0 will return 0, and any delay function will generate an infinite loop. Based on [1]. [1]: https://patchwork.kernel.org/project/linux-mediatek/patch/20220509210741.12020-3-angelogioacchino.delregno@collabora.com/ Signed-off-by: Alexandru Chimac <alex@chimac.ro>
11 lines
302 B
Plaintext
11 lines
302 B
Plaintext
if TIMER
|
|
config TIMER_MTK_CPUXGPT
|
|
bool "Timer initialization for MediaTek CPUXGPT"
|
|
depends on MEDIATEK_MCUSYS
|
|
default n
|
|
help
|
|
Some Mediatek platforms have a buggy ATF that doesn't enable
|
|
the ARM Architected Timers. Say Y here if you have a device
|
|
with one of those platforms.
|
|
endif
|