From 99b7e9d8603f42f5ed8a8691711ba77416a3238b Mon Sep 17 00:00:00 2001 From: Immo Birnbaum Date: Wed, 10 Nov 2021 14:54:05 +0100 Subject: [PATCH] boards: arm: qemu_cortex_a9: change board's timing parameters - Fix the system clock frequency: should be 111.1 MHz instead of 100 MHz. - Set ticks per second to 1000 for higher system clock precision. - Set QEMU icount shift value to 3 so that one instruction gets executed every 2^3 = 8 ns. Signed-off-by: Immo Birnbaum --- boards/arm/qemu_cortex_a9/Kconfig.defconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/arm/qemu_cortex_a9/Kconfig.defconfig b/boards/arm/qemu_cortex_a9/Kconfig.defconfig index 8393c10b721..a61f3ba99f6 100644 --- a/boards/arm/qemu_cortex_a9/Kconfig.defconfig +++ b/boards/arm/qemu_cortex_a9/Kconfig.defconfig @@ -15,10 +15,10 @@ config BOARD config SYS_CLOCK_HW_CYCLES_PER_SEC int - default 100000000 + default 111111111 config SYS_CLOCK_TICKS_PER_SEC - default 100 + default 1000 if CONSOLE @@ -71,7 +71,7 @@ endif # NETWORKING if QEMU_ICOUNT config QEMU_ICOUNT_SHIFT - default 8 + default 3 config QEMU_ICOUNT_SLEEP default y