From: Chandni Cherukuri Date: Thu, 22 Nov 2018 04:45:25 +0000 (+0530) Subject: plat/arm/sgi: override 'plat_psci_ops_t' for SGI-Clark.Helios platform X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=187ae3158ca17057e3bda1263d2b5ca9fe8f1d62;p=project%2Fbcm63xx%2Fatf.git plat/arm/sgi: override 'plat_psci_ops_t' for SGI-Clark.Helios platform 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 --- diff --git a/plat/arm/css/sgi/sgi_bl31_setup.c b/plat/arm/css/sgi/sgi_bl31_setup.c index a254388b..b1aa089b 100644 --- a/plat/arm/css/sgi/sgi_bl31_setup.c +++ b/plat/arm/css/sgi/sgi_bl31_setup.c @@ -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); }