aboutsummaryrefslogtreecommitdiff
path: root/board/renesas/ebisu
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2023-05-31 20:10:28 +0200
committerMarek Vasut <marek.vasut+renesas@mailbox.org>2023-06-08 22:26:51 +0200
commita4fc6ee9e70eae21d4470b52d866442a4a068c79 (patch)
tree787ba8536fbe13bdb3b227a41c10e9ed7db450f3 /board/renesas/ebisu
parent3aa4fb12f4abd31bce7fe6294dd47fd0966a791a (diff)
downloadu-boot-a4fc6ee9e70eae21d4470b52d866442a4a068c79.zip
u-boot-a4fc6ee9e70eae21d4470b52d866442a4a068c79.tar.gz
u-boot-a4fc6ee9e70eae21d4470b52d866442a4a068c79.tar.bz2
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>
Diffstat (limited to 'board/renesas/ebisu')
-rw-r--r--board/renesas/ebisu/ebisu.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/board/renesas/ebisu/ebisu.c b/board/renesas/ebisu/ebisu.c
index 9a70192..fd2d990 100644
--- a/board/renesas/ebisu/ebisu.c
+++ b/board/renesas/ebisu/ebisu.c
@@ -34,12 +34,3 @@ int board_init(void)
{
return 0;
}
-
-#define RST_BASE 0xE6160000
-#define RST_CA53RESCNT (RST_BASE + 0x44)
-#define RST_CA53_CODE 0x5A5A000F
-
-void reset_cpu(void)
-{
- writel(RST_CA53_CODE, RST_CA53RESCNT);
-}