summaryrefslogtreecommitdiff
path: root/arch/arm/dts/r7s72100-gr-peach-u-boot.dts
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2022-03-29 14:19:08 +0200
committerMarek Vasut <marek.vasut+renesas@gmail.com>2022-09-02 13:25:01 +0200
commit33aca1c86856e4cd303dad3701fe7b3589fb805e (patch)
treeaf482213abef0619843c558ac13ea27f8074ef28 /arch/arm/dts/r7s72100-gr-peach-u-boot.dts
parente17205d067e0304d8d59e25c0d2fe5f3c10c1b56 (diff)
ARM: renesas: Propagate RPC-IF enablement to subsequent software
As the Renesas Reduced Pin Count Interface may be locked by TF-A, it is disabled by default[1]. When unlocked, TF-A passes a DT fragment to enable it, which is applied to the U-Boot DT[2]. Unlike the memory layout, the RPC-IF enablement is not propagated to subsequent software. Hence e.g. Linux cannot know if the RPC-IF is locked or not, and will lock-up when trying to access the RPC-IF when locked. Fix this by checking if the RPC-IF is enabled in the TF-A DT fragment, and setting the status of the RPC-IF device node in the target DT, if present, to "okay". Do this only when a "flash" subnode is found, to avoid errors in subsequent software when the RPC-IF is not intended to be used. Note that this requires the status of the RPC-IF node to be set to "disabled" in the target DT, just like in the U-Boot DT. [1] commit 3d5f45c95c9db73d ("ARM: dts: rmobile: Disable RPC HF by default") [2] commit 361377dbdbc9f0f5 ("ARM: rmobile: Merge prior-stage firmware DT fragment into U-Boot DT on Gen3") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'arch/arm/dts/r7s72100-gr-peach-u-boot.dts')
0 files changed, 0 insertions, 0 deletions