From 97d2d7317c19e39829af9d6d9e0a58f513330619 Mon Sep 17 00:00:00 2001 From: Ruibin Chang Date: Thu, 6 May 2021 15:51:52 +0800 Subject: [PATCH] ITE soc/riscv/ite/it8xxx2/Kconfig: correct hw clock freq Correct SYS_CLOCK_HW_CYCLES_PER_SEC and SYS_CLOCK_TICKS_PER_SEC to match our real setting value for precise timing. Signed-off-by: Ruibin Chang --- soc/riscv/riscv-ite/it8xxx2/Kconfig.defconfig.series | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/soc/riscv/riscv-ite/it8xxx2/Kconfig.defconfig.series b/soc/riscv/riscv-ite/it8xxx2/Kconfig.defconfig.series index 538075efe09..1e7d3fc8d5a 100644 --- a/soc/riscv/riscv-ite/it8xxx2/Kconfig.defconfig.series +++ b/soc/riscv/riscv-ite/it8xxx2/Kconfig.defconfig.series @@ -14,7 +14,10 @@ config ITE_IT8XXX2_INTC select HAS_FLASH_LOAD_OFFSET config SYS_CLOCK_HW_CYCLES_PER_SEC - default 660000 + default 32768 + +config SYS_CLOCK_TICKS_PER_SEC + default 32768 if ITE_IT8XXX2_INTC config NUM_IRQS