From 5889f02032bd353a6ca69ff65918128392aeead9 Mon Sep 17 00:00:00 2001 From: Rex-BC Chen Date: Thu, 5 Aug 2021 23:51:28 +0800 Subject: payloads/libpayload: add MTK_TIMER_V2 config The timer structure (in particular, the offset to memory addresses) on recent MTK SoCs for example MT8195 has been changed. BUG=b:195274787 Signed-off-by: Rex-BC Chen Change-Id: Ifd6ff65a825c4309c47f3b115b80a8ecd42fedac Reviewed-on: https://review.coreboot.org/c/coreboot/+/56845 Reviewed-by: Hung-Te Lin Reviewed-by: Rex-BC Chen Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) --- payloads/libpayload/drivers/timer/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'payloads/libpayload') diff --git a/payloads/libpayload/drivers/timer/Kconfig b/payloads/libpayload/drivers/timer/Kconfig index 175e4bb377..406457af8e 100644 --- a/payloads/libpayload/drivers/timer/Kconfig +++ b/payloads/libpayload/drivers/timer/Kconfig @@ -45,6 +45,9 @@ config TIMER_RK3399 config TIMER_MTK bool "Timer for MediaTek" +config TIMER_MTK_V2 + bool "Timer for MediaTek V2" + endchoice config TIMER_GENERIC_HZ @@ -53,6 +56,7 @@ config TIMER_GENERIC_HZ default 6250000 if TIMER_IPQ806X default 24000000 if TIMER_MCT default 13000000 if TIMER_MTK + default 13000000 if TIMER_MTK_V2 default 24000000 if TIMER_RK3288 default 24000000 if TIMER_RK3399 default 1000000 if TIMER_TEGRA_1US @@ -67,6 +71,7 @@ config TIMER_GENERIC_REG default 0x0200A028 if TIMER_IPQ806X default 0x101C0100 if TIMER_MCT default 0x10008068 if TIMER_MTK + default 0x100080A8 if TIMER_MTK_V2 default 0xff810028 if TIMER_RK3288 default 0xff850008 if TIMER_RK3399 default 0x60005010 if TIMER_TEGRA_1US @@ -79,6 +84,7 @@ config TIMER_GENERIC_HIGH_REG default 0x004A2004 if TIMER_IPQ40XX default 0x101C0104 if TIMER_MCT default 0x10008078 if TIMER_MTK + default 0x100080B0 if TIMER_MTK_V2 default 0xff81002C if TIMER_RK3288 default 0xff85000C if TIMER_RK3399 default 0x0 -- cgit v1.2.3