Skip to content

remoteproc: ti_k3_arm64: Program GTC FID0 register

Nishanth Menon u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2arm: dts: k3-*-r5-*-board: Add GTC clockarch/arm/dts/k3-am654-r5-base-board.dts arch/arm/dts/k3-j7200-r5-common-proc-board.dts arch/arm/dts/k3-j721e-r5-common-proc-board.dts+3 -00 replies
2/2remoteproc: ti_k3_arm64: Program CNTFID0 register in GTCdrivers/remoteproc/ti_k3_arm64_rproc.c+15 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] remoteproc: ti_k3_arm64: Program GTC FID0 register

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(+)
Signature · 1 line
2.29.2