]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: rmobile: Deduplicate R-Car Gen3/Gen4 reset_cpu()
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 31 May 2023 18:10:28 +0000 (20:10 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 8 Jun 2023 20:26:51 +0000 (22:26 +0200)
commita4fc6ee9e70eae21d4470b52d866442a4a068c79
tree787ba8536fbe13bdb3b227a41c10e9ed7db450f3
parent3aa4fb12f4abd31bce7fe6294dd47fd0966a791a
ARM: rmobile: Deduplicate R-Car Gen3/Gen4 reset_cpu()

The reset_cpu() implementation is basically the same across Gen3
SoCs and identical across Gen4 SoCs. Introduce weak default for
reset_cpu(), so that it does not have to be duplicated in every
board file again.

There is a slight difference for CA53 only systems, like E3 and D3,
which now check MIDR for CPU ID first just like the other systems,
but this is OK since the MIDR always returns CA53 core type and the
correct reset register is written.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
board/renesas/condor/condor.c
board/renesas/draak/draak.c
board/renesas/eagle/eagle.c
board/renesas/ebisu/ebisu.c
board/renesas/falcon/falcon.c
board/renesas/rcar-common/common.c
board/renesas/salvator-x/salvator-x.c
board/renesas/spider/spider.c
board/renesas/whitehawk/whitehawk.c