diff --git a/plat/arm/common/arm_common.c b/plat/arm/common/arm_common.c index 60c777e..e2b99a3 100644 --- a/plat/arm/common/arm_common.c +++ b/plat/arm/common/arm_common.c @@ -13,7 +13,9 @@ #include #include #include +#include #include +#include #include #include @@ -235,6 +237,23 @@ } #endif +/***************************************************************************** + * plat_is_smccc_feature_available() - This function checks whether SMCCC + * feature is availabile for platform. + * @fid: SMCCC function id + * + * Return SMC_OK if SMCCC feature is available and SMC_ARCH_CALL_NOT_SUPPORTED + * otherwise. + *****************************************************************************/ +int32_t plat_is_smccc_feature_available(u_register_t fid) +{ + switch (fid) { + case SMCCC_ARCH_SOC_ID: + default: + return SMC_ARCH_CALL_NOT_SUPPORTED; + } +} + /* * Weak function to get ARM platform SOC-ID, Always return SOC-ID=0 * ToDo: Get proper SOC-ID for every ARM platform and define this