From 5f6de0d0c112038efcf8e2e9755ac4c9b77686cc Mon Sep 17 00:00:00 2001 From: Ruibin Chang Date: Tue, 11 May 2021 17:41:02 +0800 Subject: zephyr: modify timer for more precision Change CONFIG_SYS_CLOCK_TICKS_PER_SEC to match our timer3 frequency for more precise timing (1 tick ~= 30.5us). BUG=none BRANCH=none TEST=on hayato, console cmd "gettime" twice and compare to my timer time Signed-off-by: Ruibin Chang Change-Id: I1fbd2b0674a591c57548250bc1b3ce60d8e0405c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2887025 Reviewed-by: Denis Brockus Reviewed-by: Keith Short --- .../projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zephyr/projects/it8xxx2_evb') diff --git a/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig b/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig index cde997421a..5e6a7677f9 100644 --- a/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig +++ b/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig @@ -43,7 +43,7 @@ CONFIG_ADC_ITE_IT8XXX2=y CONFIG_PLATFORM_EC_ADC_RESOLUTION=10 CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32768 -CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000 +CONFIG_SYS_CLOCK_TICKS_PER_SEC=32768 # Code RAM base for IT8XXX2 CONFIG_CROS_EC_PROGRAM_MEMORY_BASE=0x80000000 -- cgit v1.2.1