diff options
| author | Hai Pham <[email protected]> | 2025-10-27 18:22:55 +0100 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2025-12-03 00:17:15 +0100 |
| commit | 186de8a8fa860b44c528711d295fe3f32952074b (patch) | |
| tree | 8b44581a2349a28caf97639cef77f172f8c21398 | |
| parent | cf71963778ee1c1ac4b86c78acae138591b4169c (diff) | |
arm64: renesas: Extend stub PSCI implementation to R-Car Gen5
Extend the stub PSCI implementation with support for R-Car Gen5.
R-Car Gen5 uses different register to perform reset, therefore
add a compile-time conditional. This is __secure code, therefore
the runtime SoC detection parts are not available to it, hence
the compile time conditional.
Signed-off-by: Hai Pham <[email protected]>
Signed-off-by: Marek Vasut <[email protected]> # Tweak commit message
| -rw-r--r-- | arch/arm/mach-renesas/psci-rcar64.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-renesas/psci-rcar64.c b/arch/arm/mach-renesas/psci-rcar64.c index 459dd55ff45..22c2ee045cc 100644 --- a/arch/arm/mach-renesas/psci-rcar64.c +++ b/arch/arm/mach-renesas/psci-rcar64.c @@ -32,7 +32,12 @@ u32 __secure psci_version(void) void __secure __noreturn psci_system_reset(void) { +#if defined(CONFIG_RCAR_GEN5) + writel(RST_KCPROT_DIS, RST_RESKCPROT0); + writel(0x1, RST_SWSRES1A); +#else writel(RST_SPRES, RST_SRESCR0); +#endif while (1) ; |
