From 4d6655983c3d68017646ccf271ed1fbe75adfb35 Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Sun, 24 Nov 2024 09:38:00 -0800 Subject: [PATCH] soc/mediatek/mtk_adsp: Set XTENSA_CCOUNT_HZ This got missed. Set it correctly for hygiene, though very few things use it. There is a spot in SOF where it's helpful to have a number for "fasted cpu clock rate" and this is the best candidate. Signed-off-by: Andy Ross --- soc/mediatek/mt8xxx/Kconfig.defconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/soc/mediatek/mt8xxx/Kconfig.defconfig b/soc/mediatek/mt8xxx/Kconfig.defconfig index 303be6c87b8..dd429d36bbf 100644 --- a/soc/mediatek/mt8xxx/Kconfig.defconfig +++ b/soc/mediatek/mt8xxx/Kconfig.defconfig @@ -36,6 +36,12 @@ config MTK_ADSP_TIMER config XTENSA_TIMER default n +config XTENSA_CCOUNT_HZ + default 720000000 if SOC_MT8195 + default 400000000 if SOC_MT8186 + default 800000000 if SOC_MT8188 + default 800000000 if SOC_MT8196 + config SYS_CLOCK_HW_CYCLES_PER_SEC default $(dt_node_int_prop_int,$(dt_nodelabel_path,ostimer64),freq-hz)