[PATCH 0/2] remoteproc: ti_k3_arm64: Program GTC FID0 register
Nishanth Menon
nm at ti.com
Wed Jan 6 20:20:30 CET 2021
Hi,
ARMv8's generic timer[1] picks up it's graycode from GTC. However,
the frequency of the GTC is supposed to be programmed in CNTFID0[2]
register prior to enabling the GTC in CNTCR[3] register. U-boot for K3
is currently missing that programming sequence. This series introduces
the clock nodes necessary for the lookup and writes the frequency to the
corresponding register for TF-A to pick up [4].
Based on: 62b07b5173e3 (tag: v2021.01-rc5, upstream/master) Prepare
v2021.01-rc5
J721e: https://pastebin.ubuntu.com/p/Wcxfd3BNSv/
J7200: https://pastebin.ubuntu.com/p/VsVqn7y8pv/
I dont have an AM654-evm handy at the moment, but the programming
sequences are similar in nature.
[1]
https://developer.arm.com/documentation/100095/0002/generic-timer/generic-timer-register-summary/aarch64-generic-timer-register-summary
[2]
https://developer.arm.com/docs/ddi0595/h/external-system-registers/cntfid0
[3]
https://developer.arm.com/docs/ddi0595/h/external-system-registers/cntcr
[4]
https://github.com/ARM-software/arm-trusted-firmware/commit/6a22d9ea3c7fa28d053d3ba264b49b7396a86f9e
Nishanth Menon (2):
arm: dts: k3-*-r5-*-board: Add GTC clock
remoteproc: ti_k3_arm64: Program CNTFID0 register in GTC
arch/arm/dts/k3-am654-r5-base-board.dts | 1 +
arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 1 +
arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 1 +
drivers/remoteproc/ti_k3_arm64_rproc.c | 15 +++++++++++++++
4 files changed, 18 insertions(+)
--
2.29.2
More information about the U-Boot
mailing list