summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/mx7/psci-mx7.c
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2018-06-24 21:09:58 +0200
committerStefano Babic <sbabic@denx.de>2018-07-23 10:54:32 +0200
commitf97df68898eb080ccf712ee5845cf19660b5111b (patch)
treeab064e68394b68463844c0d10de6cd90fb5c773b /arch/arm/mach-imx/mx7/psci-mx7.c
parent28a5af11f876a4fa6f1913281985e53b5ed4ba23 (diff)
imx: mx7: psci: implement MIGRATE_INFO_TYPE
Implement MIGRATE_INFO_TYPE. This informs Linux that no migration for the trusted operating system is necessary: [ 0.000000] psci: Trusted OS migration not required Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'arch/arm/mach-imx/mx7/psci-mx7.c')
-rw-r--r--arch/arm/mach-imx/mx7/psci-mx7.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mx7/psci-mx7.c b/arch/arm/mach-imx/mx7/psci-mx7.c
index cd72449d9b..aae96c553f 100644
--- a/arch/arm/mach-imx/mx7/psci-mx7.c
+++ b/arch/arm/mach-imx/mx7/psci-mx7.c
@@ -201,6 +201,12 @@ __secure s32 psci_affinity_info(u32 __always_unused function_id,
return psci_state[cpu];
}
+__secure s32 psci_migrate_info_type(u32 function_id)
+{
+ /* Trusted OS is either not present or does not require migration */
+ return 2;
+}
+
__secure s32 psci_features(u32 __always_unused function_id, u32 psci_fid)
{
switch (psci_fid) {
@@ -208,6 +214,7 @@ __secure s32 psci_features(u32 __always_unused function_id, u32 psci_fid)
case ARM_PSCI_0_2_FN_CPU_OFF:
case ARM_PSCI_0_2_FN_CPU_ON:
case ARM_PSCI_0_2_FN_AFFINITY_INFO:
+ case ARM_PSCI_0_2_FN_MIGRATE_INFO_TYPE:
case ARM_PSCI_0_2_FN_SYSTEM_OFF:
case ARM_PSCI_0_2_FN_SYSTEM_RESET:
case ARM_PSCI_1_0_FN_PSCI_FEATURES: