]> git.baikalelectronics.ru Git - uboot.git/commit
xilinx: versal-net: Add support for timer and start it
authorAshok Reddy Soma <ashok.reddy.soma@amd.com>
Tue, 10 Jan 2023 07:44:07 +0000 (08:44 +0100)
committerMichal Simek <michal.simek@amd.com>
Mon, 16 Jan 2023 14:34:37 +0000 (15:34 +0100)
commitfb306feef2824ce305bb05b781378744a0f21c5d
treedae54522689ef43d46e7a4939a191d22bd532cbf
parent2b72a6b0f1a29d8237ed44160f54a70bc9d68bb8
xilinx: versal-net: Add support for timer and start it

Add support for starting timer by setting up time stamp generator
registers. This is done only for EL3 i.e. mini U-Boot case.
For other cases, it will be done TF-A.

Add COUNTER_FREQUENCY and IOU_SWITCH_DIVISOR0 to Kconfig so that they
can be tuned as required.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/fcd8b0dc4b45a11f5e753afff42f84738ac813da.1673336645.git.michal.simek@amd.com
arch/arm/mach-versal-net/Kconfig
arch/arm/mach-versal-net/include/mach/hardware.h
board/xilinx/versal-net/board.c
configs/xilinx_versal_net_mini_defconfig
configs/xilinx_versal_net_virt_defconfig