]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: rmobile: rzg2_beacon: Migrate reset to SYSRESET_PSCI
authorAdam Ford <aford173@gmail.com>
Fri, 17 Dec 2021 19:47:59 +0000 (13:47 -0600)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 22 Jan 2022 22:12:56 +0000 (23:12 +0100)
Instead of a custom cpu_reset function, use the sysreset_psci
instead to reduce redundant code clutter.

Signed-off-by: Adam Ford <aford173@gmail.com>
board/beacon/beacon-rzg2m/beacon-rzg2m.c
configs/rzg2_beacon_defconfig

index df6044a4297539d04b5589d22afdb4809a908c3e..4b41c6fdaa26fd719566eea46c70f923474924ed 100644 (file)
@@ -6,7 +6,6 @@
 #include <common.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <asm/arch/rcar-mstp.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -18,15 +17,6 @@ int board_init(void)
        return 0;
 }
 
-#define RST_BASE       0xE6160000
-#define RST_CA57RESCNT (RST_BASE + 0x40)
-#define RST_CODE       0xA5A5000F
-
-void reset_cpu(void)
-{
-       writel(RST_CODE, RST_CA57RESCNT);
-}
-
 #if IS_ENABLED(CONFIG_MULTI_DTB_FIT)
 int board_fit_config_name_match(const char *name)
 {
index e1af7b48158ace25db29b17e17bb98d75b9a40b8..1ae12b1de6b7e0ed29df9a3d5b9e074a5eb0afef 100644 (file)
@@ -72,6 +72,8 @@ CONFIG_SCIF_CONSOLE=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_RENESAS_RPC_SPI=y
+CONFIG_SYSRESET=y
+CONFIG_SYSRESET_PSCI=y
 CONFIG_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_EHCI_HCD=y