1 // SPDX-License-Identifier: GPL-2.0
3 * This file implements basic PSCI support for Renesas r8a779a0 SoC
5 * Copyright (C) 2020 Renesas Electronics Corp.
11 #include <asm/secure.h>
13 int __secure psci_features(u32 function_id, u32 psci_fid)
16 case ARM_PSCI_0_2_FN_PSCI_VERSION:
17 case ARM_PSCI_0_2_FN_SYSTEM_RESET:
20 /* case ARM_PSCI_0_2_FN_CPU_ON: */
21 /* case ARM_PSCI_0_2_FN_CPU_OFF: */
22 /* case ARM_PSCI_0_2_FN_AFFINITY_INFO: */
23 /* case ARM_PSCI_0_2_FN_MIGRATE_INFO_TYPE: */
24 /* case ARM_PSCI_0_2_FN_SYSTEM_OFF: */
25 return ARM_PSCI_RET_NI;
28 u32 __secure psci_version(void)
30 return ARM_PSCI_VER_0_2;
33 #define RST_BASE 0xE6160000 /* Domain0 */
34 #define RST_SRESCR0 (RST_BASE + 0x18)
35 #define RST_SPRES 0x5AA58000
37 void __secure __noreturn psci_system_reset(void)
39 writel(RST_SPRES, RST_SRESCR0);
45 int psci_update_dt(void *fdt)