]> git.dujemihanovic.xyz Git - u-boot.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)
commit724379d9afc850de2767094987a761f096af7718
treedae54522689ef43d46e7a4939a191d22bd532cbf
parent29b58bba91147c3c03dcb998a1efe4a4d026d7e1
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