From: Nishanth Menon <nm@ti.com>
To: u-boot@lists.denx.de
Subject: [PATCH 0/2] remoteproc: ti_k3_arm64: Program GTC FID0 register
Date: Wed, 6 Jan 2021 13:20:30 -0600 [thread overview]
Message-ID: <20210106192032.3549-1-nm@ti.com> (raw)
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
next reply other threads:[~2021-01-06 19:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-06 19:20 Nishanth Menon [this message]
2021-01-06 19:20 ` [PATCH 1/2] arm: dts: k3-*-r5-*-board: Add GTC clock Nishanth Menon
2021-01-06 19:20 ` [PATCH 2/2] remoteproc: ti_k3_arm64: Program CNTFID0 register in GTC Nishanth Menon
2021-01-07 4:31 ` [PATCH 0/2] remoteproc: ti_k3_arm64: Program GTC FID0 register Lokesh Vutla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210106192032.3549-1-nm@ti.com \
--to=nm@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox