plat/arm/sgi: override 'plat_psci_ops_t' for SGI-Clark.Helios platform
authorChandni Cherukuri <chandni.cherukuri@arm.com>
Thu, 22 Nov 2018 04:45:25 +0000 (10:15 +0530)
committerChandni Cherukuri <chandni.cherukuri@arm.com>
Thu, 6 Dec 2018 10:22:06 +0000 (15:52 +0530)
For SGI-Clark.Helios platform, at present, only the CPU power ON/OFF
ops are supported. So override the PSCI ops to allow callbacks only
for CPU power ON/OFF operations.

Change-Id: Idc0a3deb78cb850310cbe849d77604fa9881579c
Signed-off-by: Chandni Cherukuri <chandni.cherukuri@arm.com>
plat/arm/css/sgi/sgi_bl31_setup.c

index a254388b5d3a5b4694532b2fa1ba4a5a53053c70..b1aa089b45783fb30f38d97b57cb3a30154680b9 100644 (file)
@@ -62,5 +62,16 @@ void bl31_platform_setup(void)
 
 const plat_psci_ops_t *plat_arm_psci_override_pm_ops(plat_psci_ops_t *ops)
 {
+       /* For SGI-Clark.Helios platform only CPU ON/OFF is supported */
+       if ((sgi_plat_info.platform_id == SGI_CLARK_SID_VER_PART_NUM) &&
+           (sgi_plat_info.config_id == SGI_CLARK_HELIOS_CONFIG_ID)) {
+               ops->cpu_standby = NULL;
+               ops->system_off = NULL;
+               ops->system_reset = NULL;
+               ops->get_sys_suspend_power_state = NULL;
+               ops->pwr_domain_suspend = NULL;
+               ops->pwr_domain_suspend_finish = NULL;
+       }
+
        return css_scmi_override_pm_ops(ops);
 }