Lines Matching +full:psci +full:- +full:0
5 * SPDX-License-Identifier: GPL-2.0+
6 * This file implements LS102X platform PSCI SYSTEM-SUSPEND function
11 #include <asm/psci.h>
13 /* Default PSCI function, return -1, Not Implemented */
21 /* PSCI function and ID table definition*/
28 /* 32 bits PSCI default functions */
72 PSCI_TABLE(0, 0)
74 /* 64 bits PSCI default functions */
98 PSCI_TABLE(0, 0)
101 /* PSCI call is Fast Call(atomic), so mask DAIF */
103 stp x15, xzr, [sp, #-16]!
104 ldr x15, =0x3C0
107 stp x29, x30, [sp, #-16]!
108 stp x27, x28, [sp, #-16]!
109 stp x25, x26, [sp, #-16]!
110 stp x23, x24, [sp, #-16]!
111 stp x21, x22, [sp, #-16]!
112 stp x19, x20, [sp, #-16]!
114 stp x18, x15, [sp, #-16]!
133 /* Caller must put PSCI function-ID table base in x9 */
136 1: ldr x10, [x9] /* Load PSCI function table */
138 ubfx x10, x10, #0, #32
141 b.eq 2f /* PSCI function found */
145 2: blr x11 /* Call PSCI function */
152 ldr x0, =0xFFFFFFFF
156 /* SMC function ID 0x84000000-0x8400001F: 32 bits PSCI */
157 ldr w9, =0x8400001F
160 ldr w9, =0x84000000
172 /* SMC function ID 0xC4000000-0xC400001F: 64 bits PSCI */
173 ldr x9, =0xC400001F
176 ldr x9, =0xC4000000
188 * used for the return value, while in this PSCI environment, X0 usually holds
201 ubfx x10, x10, #0, #8
233 cmp x9, #0x13
235 cmp x9, #0x17