diff options
| author | Hai Pham <[email protected]> | 2025-10-27 18:08:52 +0100 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2025-11-06 20:09:59 +0100 |
| commit | eb5ffe54adbd9a9636869a82b8857c9e058b466d (patch) | |
| tree | 0eba25948fc068baf8ce360d153d3da7d784a9e3 /arch | |
| parent | 77864586121e639a1e64170fb1107edbcded269e (diff) | |
arm64: renesas: Use reset macro from common header
Clean up to avoid more reset macro duplication.
Signed-off-by: Hai Pham <[email protected]>
Signed-off-by: Marek Vasut <[email protected]>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/arm/mach-renesas/include/mach/rcar-gen4-base.h | 2 | ||||
| -rw-r--r-- | arch/arm/mach-renesas/psci-rcar64.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-renesas/include/mach/rcar-gen4-base.h b/arch/arm/mach-renesas/include/mach/rcar-gen4-base.h index 403054e4a7e..d882a9ba4a0 100644 --- a/arch/arm/mach-renesas/include/mach/rcar-gen4-base.h +++ b/arch/arm/mach-renesas/include/mach/rcar-gen4-base.h @@ -29,6 +29,8 @@ #define RST_BASE 0xE6160000 /* Domain0 */ #define RST_SRESCR0 (RST_BASE + 0x18) #define RST_SPRES 0x5AA58000 +#define RST_WDTRSTCR (RST_BASE + 0x10) +#define RST_RWDT 0xA55A8002 /* Arm Generic Timer */ #define CNTCR_BASE 0xE6080000 diff --git a/arch/arm/mach-renesas/psci-rcar64.c b/arch/arm/mach-renesas/psci-rcar64.c index a230692c9e0..459dd55ff45 100644 --- a/arch/arm/mach-renesas/psci-rcar64.c +++ b/arch/arm/mach-renesas/psci-rcar64.c @@ -8,6 +8,7 @@ #include <asm/io.h> #include <asm/psci.h> #include <asm/secure.h> +#include <asm/arch/renesas.h> int __secure psci_features(u32 function_id, u32 psci_fid) { @@ -29,10 +30,6 @@ u32 __secure psci_version(void) return ARM_PSCI_VER_0_2; } -#define RST_BASE 0xE6160000 /* Domain0 */ -#define RST_SRESCR0 (RST_BASE + 0x18) -#define RST_SPRES 0x5AA58000 - void __secure __noreturn psci_system_reset(void) { writel(RST_SPRES, RST_SRESCR0); |
