2022-04-12 07:07:32

by Chuanhong Guo

[permalink] [raw]
Subject: [PATCH] arm: mediatek: select arch timer for mt7629

This chip has an armv7 arch timer according to the dts. Select it in
Kconfig to enforce the support for it.
Otherwise the system time is just completely wrong if user forget to
enable ARM_ARCH_TIMER in kernel config.

Fixes: a43379dddf1b ("arm: mediatek: add MT7629 smp bring up code")
Signed-off-by: Chuanhong Guo <[email protected]>
---
arch/arm/mach-mediatek/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
index 9e0f592d87d8..35a3430c7942 100644
--- a/arch/arm/mach-mediatek/Kconfig
+++ b/arch/arm/mach-mediatek/Kconfig
@@ -30,6 +30,7 @@ config MACH_MT7623
config MACH_MT7629
bool "MediaTek MT7629 SoCs support"
default ARCH_MEDIATEK
+ select HAVE_ARM_ARCH_TIMER

config MACH_MT8127
bool "MediaTek MT8127 SoCs support"
--
2.35.1


2022-04-22 22:05:45

by Matthias Brugger

[permalink] [raw]
Subject: Re: [PATCH] arm: mediatek: select arch timer for mt7629



On 09/04/2022 11:13, Chuanhong Guo wrote:
> This chip has an armv7 arch timer according to the dts. Select it in
> Kconfig to enforce the support for it.
> Otherwise the system time is just completely wrong if user forget to
> enable ARM_ARCH_TIMER in kernel config.
>
> Fixes: a43379dddf1b ("arm: mediatek: add MT7629 smp bring up code")
> Signed-off-by: Chuanhong Guo <[email protected]>

Applied, thanks!

> ---
> arch/arm/mach-mediatek/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
> index 9e0f592d87d8..35a3430c7942 100644
> --- a/arch/arm/mach-mediatek/Kconfig
> +++ b/arch/arm/mach-mediatek/Kconfig
> @@ -30,6 +30,7 @@ config MACH_MT7623
> config MACH_MT7629
> bool "MediaTek MT7629 SoCs support"
> default ARCH_MEDIATEK
> + select HAVE_ARM_ARCH_TIMER
>
> config MACH_MT8127
> bool "MediaTek MT8127 SoCs support"