15f0cdb05SDan Handley /* 2*7dfb9911SJimmy Brisson * Copyright (c) 2013-2021, ARM Limited and Contributors. All rights reserved. 35f0cdb05SDan Handley * 482cb2c1aSdp-arm * SPDX-License-Identifier: BSD-3-Clause 55f0cdb05SDan Handley */ 65f0cdb05SDan Handley 72bc3dba9SAntonio Nino Diaz #ifndef PLATFORM_H 82bc3dba9SAntonio Nino Diaz #define PLATFORM_H 95f0cdb05SDan Handley 105f0cdb05SDan Handley #include <stdint.h> 115f0cdb05SDan Handley 1209d40e0eSAntonio Nino Diaz #include <lib/psci/psci.h> 130cb64d01SAchin Gupta #if defined(SPD_spmd) 140cb64d01SAchin Gupta #include <services/spm_core_manifest.h> 150cb64d01SAchin Gupta #endif 16*7dfb9911SJimmy Brisson #if TRNG_SUPPORT 17*7dfb9911SJimmy Brisson #include "plat_trng.h" 18*7dfb9911SJimmy Brisson #endif 1909d40e0eSAntonio Nino Diaz 205f0cdb05SDan Handley /******************************************************************************* 215f0cdb05SDan Handley * Forward declarations 225f0cdb05SDan Handley ******************************************************************************/ 23d35dee23Sdp-arm struct auth_img_desc_s; 245f0cdb05SDan Handley struct meminfo; 255f0cdb05SDan Handley struct image_info; 265f0cdb05SDan Handley struct entry_point_info; 277baff11fSYatharth Kochar struct image_desc; 2872600226SYatharth Kochar struct bl_load_info; 2972600226SYatharth Kochar struct bl_params; 302fccb228SAntonio Nino Diaz struct mmap_region; 31aeaa225cSPaul Beesley struct spm_mm_boot_info; 32e458302bSAntonio Nino Diaz struct sp_res_desc; 332be57b86SSumit Garg enum fw_enc_status_t; 345f0cdb05SDan Handley 355f0cdb05SDan Handley /******************************************************************************* 3695cfd4adSJuan Castillo * plat_get_rotpk_info() flags 3795cfd4adSJuan Castillo ******************************************************************************/ 3895cfd4adSJuan Castillo #define ROTPK_IS_HASH (1 << 0) 3904943d33SSoby Mathew /* Flag used to skip verification of the certificate ROTPK while the platform 4004943d33SSoby Mathew ROTPK is not deployed */ 4104943d33SSoby Mathew #define ROTPK_NOT_DEPLOYED (1 << 1) 4295cfd4adSJuan Castillo 4395cfd4adSJuan Castillo /******************************************************************************* 447cda17bbSSumit Garg * plat_get_enc_key_info() flags 457cda17bbSSumit Garg ******************************************************************************/ 467cda17bbSSumit Garg /* 477cda17bbSSumit Garg * Flag used to notify caller that information provided in key buffer is an 487cda17bbSSumit Garg * identifier rather than an actual key. 497cda17bbSSumit Garg */ 507cda17bbSSumit Garg #define ENC_KEY_IS_IDENTIFIER (1 << 0) 517cda17bbSSumit Garg 527cda17bbSSumit Garg /******************************************************************************* 53dec5e0d1SDan Handley * Function declarations 545f0cdb05SDan Handley ******************************************************************************/ 55dec5e0d1SDan Handley /******************************************************************************* 56dec5e0d1SDan Handley * Mandatory common functions 57dec5e0d1SDan Handley ******************************************************************************/ 58d4486391SAntonio Nino Diaz unsigned int plat_get_syscnt_freq2(void); 59d4486391SAntonio Nino Diaz 6016948ae1SJuan Castillo int plat_get_image_source(unsigned int image_id, 61dec5e0d1SDan Handley uintptr_t *dev_handle, 62dec5e0d1SDan Handley uintptr_t *image_spec); 63a0ad6019SSoby Mathew uintptr_t plat_get_ns_image_entrypoint(void); 6467487846SSoby Mathew unsigned int plat_my_core_pos(void); 6567487846SSoby Mathew int plat_core_pos_by_mpidr(u_register_t mpidr); 662374ab17SAmbroise Vincent int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size); 67dec5e0d1SDan Handley 6851faada7SDouglas Raillard #if STACK_PROTECTOR_ENABLED 6951faada7SDouglas Raillard /* 7051faada7SDouglas Raillard * Return a new value to be used for the stack protection's canary. 7151faada7SDouglas Raillard * 7251faada7SDouglas Raillard * Ideally, this value is a random number that is impossible to predict by an 7351faada7SDouglas Raillard * attacker. 7451faada7SDouglas Raillard */ 7551faada7SDouglas Raillard u_register_t plat_get_stack_protector_canary(void); 7651faada7SDouglas Raillard #endif /* STACK_PROTECTOR_ENABLED */ 7751faada7SDouglas Raillard 78dec5e0d1SDan Handley /******************************************************************************* 79dec5e0d1SDan Handley * Mandatory interrupt management functions 80dec5e0d1SDan Handley ******************************************************************************/ 819865ac15SDan Handley uint32_t plat_ic_get_pending_interrupt_id(void); 829865ac15SDan Handley uint32_t plat_ic_get_pending_interrupt_type(void); 839865ac15SDan Handley uint32_t plat_ic_acknowledge_interrupt(void); 849865ac15SDan Handley uint32_t plat_ic_get_interrupt_type(uint32_t id); 859865ac15SDan Handley void plat_ic_end_of_interrupt(uint32_t id); 865f0cdb05SDan Handley uint32_t plat_interrupt_type_to_line(uint32_t type, 875f0cdb05SDan Handley uint32_t security_state); 885f0cdb05SDan Handley 89dec5e0d1SDan Handley /******************************************************************************* 90eb68ea9bSJeenu Viswambharan * Optional interrupt management functions, depending on chosen EL3 components. 91eb68ea9bSJeenu Viswambharan ******************************************************************************/ 92eb68ea9bSJeenu Viswambharan unsigned int plat_ic_get_running_priority(void); 93ca43b55dSJeenu Viswambharan int plat_ic_is_spi(unsigned int id); 94ca43b55dSJeenu Viswambharan int plat_ic_is_ppi(unsigned int id); 95ca43b55dSJeenu Viswambharan int plat_ic_is_sgi(unsigned int id); 96cbd3f370SJeenu Viswambharan unsigned int plat_ic_get_interrupt_active(unsigned int id); 97979225f4SJeenu Viswambharan void plat_ic_disable_interrupt(unsigned int id); 98979225f4SJeenu Viswambharan void plat_ic_enable_interrupt(unsigned int id); 9974dce7faSJeenu Viswambharan int plat_ic_has_interrupt_type(unsigned int type); 10074dce7faSJeenu Viswambharan void plat_ic_set_interrupt_type(unsigned int id, unsigned int type); 101f3a86600SJeenu Viswambharan void plat_ic_set_interrupt_priority(unsigned int id, unsigned int priority); 1028db978b5SJeenu Viswambharan void plat_ic_raise_el3_sgi(int sgi_num, u_register_t target); 103fc529feeSJeenu Viswambharan void plat_ic_set_spi_routing(unsigned int id, unsigned int routing_mode, 104fc529feeSJeenu Viswambharan u_register_t mpidr); 105a2816a16SJeenu Viswambharan void plat_ic_set_interrupt_pending(unsigned int id); 106a2816a16SJeenu Viswambharan void plat_ic_clear_interrupt_pending(unsigned int id); 107d55a4450SJeenu Viswambharan unsigned int plat_ic_set_priority_mask(unsigned int mask); 1084ee8d0beSJeenu Viswambharan unsigned int plat_ic_get_interrupt_id(unsigned int raw); 109eb68ea9bSJeenu Viswambharan 110eb68ea9bSJeenu Viswambharan /******************************************************************************* 111dec5e0d1SDan Handley * Optional common functions (may be overridden) 112dec5e0d1SDan Handley ******************************************************************************/ 1134c0d0390SSoby Mathew uintptr_t plat_get_my_stack(void); 1141a0a3f06SYatharth Kochar void plat_report_exception(unsigned int exception_type); 11544804252SSandrine Bailleux int plat_crash_console_init(void); 116c67b09bdSSoby Mathew int plat_crash_console_putc(int c); 117831b0e98SJimmy Brisson void plat_crash_console_flush(void); 11840fc6cd1SJuan Castillo void plat_error_handler(int err) __dead2; 1191c3ea103SAntonio Nino Diaz void plat_panic_handler(void) __dead2; 1207f56e9a3SSoby Mathew const char *plat_log_get_prefix(unsigned int log_level); 12101f62b6dSRoberto Vargas void bl2_plat_preload_setup(void); 12201f62b6dSRoberto Vargas int plat_try_next_boot_source(void); 123dec5e0d1SDan Handley 124dec5e0d1SDan Handley /******************************************************************************* 125dec5e0d1SDan Handley * Mandatory BL1 functions 126dec5e0d1SDan Handley ******************************************************************************/ 1275a06bb7eSDan Handley void bl1_early_platform_setup(void); 128dec5e0d1SDan Handley void bl1_plat_arch_setup(void); 129dec5e0d1SDan Handley void bl1_platform_setup(void); 130dec5e0d1SDan Handley struct meminfo *bl1_plat_sec_mem_layout(void); 1315f0cdb05SDan Handley 132b7cb133eSJeenu Viswambharan /******************************************************************************* 133b7cb133eSJeenu Viswambharan * Optional EL3 component functions in BL31 134b7cb133eSJeenu Viswambharan ******************************************************************************/ 135b7cb133eSJeenu Viswambharan 136b7cb133eSJeenu Viswambharan /* SDEI platform functions */ 137b7cb133eSJeenu Viswambharan #if SDEI_SUPPORT 138cbf9e84aSBalint Dobszay void plat_sdei_setup(void); 139b7cb133eSJeenu Viswambharan int plat_sdei_validate_entry_point(uintptr_t ep, unsigned int client_mode); 140b7cb133eSJeenu Viswambharan void plat_sdei_handle_masked_trigger(uint64_t mpidr, unsigned int intr); 141b7cb133eSJeenu Viswambharan #endif 142b7cb133eSJeenu Viswambharan 14376454abfSJeenu Viswambharan void plat_ea_handler(unsigned int ea_reason, uint64_t syndrome, void *cookie, 14476454abfSJeenu Viswambharan void *handle, uint64_t flags); 14576454abfSJeenu Viswambharan 14648bfb88eSYatharth Kochar /* 14748bfb88eSYatharth Kochar * The following function is mandatory when the 14848bfb88eSYatharth Kochar * firmware update feature is used. 14948bfb88eSYatharth Kochar */ 15048bfb88eSYatharth Kochar int bl1_plat_mem_check(uintptr_t mem_base, unsigned int mem_size, 15148bfb88eSYatharth Kochar unsigned int flags); 15248bfb88eSYatharth Kochar 153dec5e0d1SDan Handley /******************************************************************************* 154dec5e0d1SDan Handley * Optional BL1 functions (may be overridden) 155dec5e0d1SDan Handley ******************************************************************************/ 1567baff11fSYatharth Kochar /* 1577baff11fSYatharth Kochar * The following functions are used for image loading process in BL1. 1587baff11fSYatharth Kochar */ 1597baff11fSYatharth Kochar void bl1_plat_set_ep_info(unsigned int image_id, 1607baff11fSYatharth Kochar struct entry_point_info *ep_info); 16148bfb88eSYatharth Kochar /* 16248bfb88eSYatharth Kochar * The following functions are mandatory when firmware update 16348bfb88eSYatharth Kochar * feature is used and optional otherwise. 16448bfb88eSYatharth Kochar */ 1657baff11fSYatharth Kochar unsigned int bl1_plat_get_next_image_id(void); 1667baff11fSYatharth Kochar struct image_desc *bl1_plat_get_image_desc(unsigned int image_id); 167dec5e0d1SDan Handley 16848bfb88eSYatharth Kochar /* 16948bfb88eSYatharth Kochar * The following functions are used by firmware update 17048bfb88eSYatharth Kochar * feature and may optionally be overridden. 17148bfb88eSYatharth Kochar */ 1721f37b944SDan Handley __dead2 void bl1_plat_fwu_done(void *client_cookie, void *reserved); 17348bfb88eSYatharth Kochar 17411f001cbSMasahiro Yamada /* 175566034fcSSoby Mathew * This BL1 function can be used by the platforms to update/use image 176566034fcSSoby Mathew * information for a given `image_id`. 17711f001cbSMasahiro Yamada */ 178566034fcSSoby Mathew int bl1_plat_handle_pre_image_load(unsigned int image_id); 179566034fcSSoby Mathew int bl1_plat_handle_post_image_load(unsigned int image_id); 18048bfb88eSYatharth Kochar 1817b4e1fbbSAlexei Fedorov #if MEASURED_BOOT 1827b4e1fbbSAlexei Fedorov /* 1837b4e1fbbSAlexei Fedorov * Calculates and writes BL2 hash data to the platform's defined location. 1847b4e1fbbSAlexei Fedorov * For ARM platforms the data are written to TB_FW_CONFIG DTB. 1857b4e1fbbSAlexei Fedorov */ 1867b4e1fbbSAlexei Fedorov void bl1_plat_set_bl2_hash(const image_desc_t *image_desc); 1877b4e1fbbSAlexei Fedorov #endif 1887b4e1fbbSAlexei Fedorov 189dec5e0d1SDan Handley /******************************************************************************* 190dec5e0d1SDan Handley * Mandatory BL2 functions 191dec5e0d1SDan Handley ******************************************************************************/ 192a6f340feSSoby Mathew void bl2_early_platform_setup2(u_register_t arg0, u_register_t arg1, u_register_t arg2, u_register_t arg3); 193dec5e0d1SDan Handley void bl2_plat_arch_setup(void); 194dec5e0d1SDan Handley void bl2_platform_setup(void); 195dec5e0d1SDan Handley struct meminfo *bl2_plat_sec_mem_layout(void); 196dec5e0d1SDan Handley 19772600226SYatharth Kochar /* 19872600226SYatharth Kochar * This function can be used by the platforms to update/use image 19972600226SYatharth Kochar * information for given `image_id`. 20072600226SYatharth Kochar */ 201ba68ef55SMasahiro Yamada int bl2_plat_handle_pre_image_load(unsigned int image_id); 20272600226SYatharth Kochar int bl2_plat_handle_post_image_load(unsigned int image_id); 20372600226SYatharth Kochar 20493d81d64SSandrine Bailleux /******************************************************************************* 205dec5e0d1SDan Handley * Optional BL2 functions (may be overridden) 206dec5e0d1SDan Handley ******************************************************************************/ 2077b4e1fbbSAlexei Fedorov #if MEASURED_BOOT 2087b4e1fbbSAlexei Fedorov /* Read TCG_DIGEST_SIZE bytes of BL2 hash data */ 2097b4e1fbbSAlexei Fedorov void bl2_plat_get_hash(void *data); 2107b4e1fbbSAlexei Fedorov #endif 211b1d27b48SRoberto Vargas 212b1d27b48SRoberto Vargas /******************************************************************************* 213b1d27b48SRoberto Vargas * Mandatory BL2 at EL3 functions: Must be implemented if BL2_AT_EL3 image is 214b1d27b48SRoberto Vargas * supported 215b1d27b48SRoberto Vargas ******************************************************************************/ 216b1d27b48SRoberto Vargas void bl2_el3_early_platform_setup(u_register_t arg0, u_register_t arg1, 217b1d27b48SRoberto Vargas u_register_t arg2, u_register_t arg3); 218b1d27b48SRoberto Vargas void bl2_el3_plat_arch_setup(void); 219b1d27b48SRoberto Vargas 220b1d27b48SRoberto Vargas /******************************************************************************* 221b1d27b48SRoberto Vargas * Optional BL2 at EL3 functions (may be overridden) 222b1d27b48SRoberto Vargas ******************************************************************************/ 223b1d27b48SRoberto Vargas void bl2_el3_plat_prepare_exit(void); 224b1d27b48SRoberto Vargas 225dec5e0d1SDan Handley /******************************************************************************* 2269003fa0bSYatharth Kochar * Mandatory BL2U functions. 2279003fa0bSYatharth Kochar ******************************************************************************/ 2289003fa0bSYatharth Kochar void bl2u_early_platform_setup(struct meminfo *mem_layout, 2299003fa0bSYatharth Kochar void *plat_info); 2309003fa0bSYatharth Kochar void bl2u_plat_arch_setup(void); 2319003fa0bSYatharth Kochar void bl2u_platform_setup(void); 2329003fa0bSYatharth Kochar 2339003fa0bSYatharth Kochar /******************************************************************************* 2349003fa0bSYatharth Kochar * Conditionally mandatory BL2U functions for CSS platforms. 2359003fa0bSYatharth Kochar ******************************************************************************/ 2369003fa0bSYatharth Kochar /* 2379003fa0bSYatharth Kochar * This function is used to perform any platform-specific actions required to 2389003fa0bSYatharth Kochar * handle the BL2U_SCP firmware. 2399003fa0bSYatharth Kochar */ 2409003fa0bSYatharth Kochar int bl2u_plat_handle_scp_bl2u(void); 2419003fa0bSYatharth Kochar 2429003fa0bSYatharth Kochar /******************************************************************************* 243d178637dSJuan Castillo * Mandatory BL31 functions 244dec5e0d1SDan Handley ******************************************************************************/ 245a6f340feSSoby Mathew void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, 246a6f340feSSoby Mathew u_register_t arg2, u_register_t arg3); 247dec5e0d1SDan Handley void bl31_plat_arch_setup(void); 248dec5e0d1SDan Handley void bl31_platform_setup(void); 24978e61613SSoby Mathew void bl31_plat_runtime_setup(void); 2509865ac15SDan Handley struct entry_point_info *bl31_plat_get_next_image_ep_info(uint32_t type); 251dec5e0d1SDan Handley 252dec5e0d1SDan Handley /******************************************************************************* 253d178637dSJuan Castillo * Mandatory PSCI functions (BL31) 254dec5e0d1SDan Handley ******************************************************************************/ 25567487846SSoby Mathew int plat_setup_psci_ops(uintptr_t sec_entrypoint, 2569fb8af33SRoberto Vargas const struct plat_psci_ops **psci_ops); 25767487846SSoby Mathew const unsigned char *plat_get_power_domain_tree_desc(void); 25867487846SSoby Mathew 25967487846SSoby Mathew /******************************************************************************* 260d178637dSJuan Castillo * Optional PSCI functions (BL31). 26167487846SSoby Mathew ******************************************************************************/ 26204c1db1eSdp-arm void plat_psci_stat_accounting_start(const psci_power_state_t *state_info); 26304c1db1eSdp-arm void plat_psci_stat_accounting_stop(const psci_power_state_t *state_info); 26404c1db1eSdp-arm u_register_t plat_psci_stat_get_residency(unsigned int lvl, 26504c1db1eSdp-arm const psci_power_state_t *state_info, 2665b33ad17SDeepika Bhavnani unsigned int last_cpu_idx); 26767487846SSoby Mathew plat_local_state_t plat_get_target_pwr_state(unsigned int lvl, 26867487846SSoby Mathew const plat_local_state_t *states, 26967487846SSoby Mathew unsigned int ncpu); 270dec5e0d1SDan Handley 271dec5e0d1SDan Handley /******************************************************************************* 272d178637dSJuan Castillo * Optional BL31 functions (may be overridden) 273dff8e47aSDan Handley ******************************************************************************/ 274afff8cbdSAchin Gupta void bl31_plat_enable_mmu(uint32_t flags); 275dff8e47aSDan Handley 276dff8e47aSDan Handley /******************************************************************************* 277d178637dSJuan Castillo * Optional BL32 functions (may be overridden) 278dff8e47aSDan Handley ******************************************************************************/ 279afff8cbdSAchin Gupta void bl32_plat_enable_mmu(uint32_t flags); 280dff8e47aSDan Handley 2816eadf762SJuan Castillo /******************************************************************************* 28295cfd4adSJuan Castillo * Trusted Board Boot functions 2836eadf762SJuan Castillo ******************************************************************************/ 28495cfd4adSJuan Castillo int plat_get_rotpk_info(void *cookie, void **key_ptr, unsigned int *key_len, 28595cfd4adSJuan Castillo unsigned int *flags); 28648279d52SJuan Castillo int plat_get_nv_ctr(void *cookie, unsigned int *nv_ctr); 28748279d52SJuan Castillo int plat_set_nv_ctr(void *cookie, unsigned int nv_ctr); 288d35dee23Sdp-arm int plat_set_nv_ctr2(void *cookie, const struct auth_img_desc_s *img_desc, 289d35dee23Sdp-arm unsigned int nv_ctr); 2902374ab17SAmbroise Vincent int get_mbedtls_heap_helper(void **heap_addr, size_t *heap_size); 2912be57b86SSumit Garg int plat_get_enc_key_info(enum fw_enc_status_t fw_enc_status, uint8_t *key, 2922be57b86SSumit Garg size_t *key_len, unsigned int *flags, 2932be57b86SSumit Garg const uint8_t *img_id, size_t img_id_len); 2946eadf762SJuan Castillo 2952fccb228SAntonio Nino Diaz /******************************************************************************* 2962fccb228SAntonio Nino Diaz * Secure Partitions functions 2972fccb228SAntonio Nino Diaz ******************************************************************************/ 2982fccb228SAntonio Nino Diaz const struct mmap_region *plat_get_secure_partition_mmap(void *cookie); 299aeaa225cSPaul Beesley const struct spm_mm_boot_info *plat_get_secure_partition_boot_info( 3002fccb228SAntonio Nino Diaz void *cookie); 301e458302bSAntonio Nino Diaz int plat_spm_sp_rd_load(struct sp_res_desc *rd, const void *ptr, size_t size); 302680389a6SAntonio Nino Diaz int plat_spm_sp_get_next_address(void **sp_base, size_t *sp_size, 303680389a6SAntonio Nino Diaz void **rd_base, size_t *rd_size); 3040cb64d01SAchin Gupta #if defined(SPD_spmd) 30552696946SOlivier Deprez int plat_spm_core_manifest_load(spmc_manifest_attribute_t *manifest, 30623d5ba86SOlivier Deprez const void *pm_addr); 3070cb64d01SAchin Gupta #endif 30872600226SYatharth Kochar /******************************************************************************* 30972600226SYatharth Kochar * Mandatory BL image load functions(may be overridden). 31072600226SYatharth Kochar ******************************************************************************/ 31172600226SYatharth Kochar /* 31272600226SYatharth Kochar * This function returns pointer to the list of images that the 31372600226SYatharth Kochar * platform has populated to load. 31472600226SYatharth Kochar */ 31572600226SYatharth Kochar struct bl_load_info *plat_get_bl_image_load_info(void); 31672600226SYatharth Kochar 31772600226SYatharth Kochar /* 31872600226SYatharth Kochar * This function returns a pointer to the shared memory that the 31972600226SYatharth Kochar * platform has kept aside to pass trusted firmware related 32072600226SYatharth Kochar * information that next BL image could need. 32172600226SYatharth Kochar */ 32272600226SYatharth Kochar struct bl_params *plat_get_next_bl_params(void); 32372600226SYatharth Kochar 32472600226SYatharth Kochar /* 32572600226SYatharth Kochar * This function flushes to main memory all the params that are 32672600226SYatharth Kochar * passed to next image. 32772600226SYatharth Kochar */ 32872600226SYatharth Kochar void plat_flush_next_bl_params(void); 32972600226SYatharth Kochar 3305c8babcdSSoby Mathew /* 3315c8babcdSSoby Mathew * The below function enable Trusted Firmware components like SPDs which 3325c8babcdSSoby Mathew * haven't migrated to the new platform API to compile on platforms which 3335c8babcdSSoby Mathew * have the compatibility layer disabled. 3345c8babcdSSoby Mathew */ 3357fabe1a8SRoberto Vargas unsigned int platform_core_pos_helper(unsigned long mpidr); 33651faada7SDouglas Raillard 3370e753437SManish V Badarkhe /* 3380e753437SManish V Badarkhe * Optional function to get SOC version 3390e753437SManish V Badarkhe */ 3400e753437SManish V Badarkhe int32_t plat_get_soc_version(void); 3410e753437SManish V Badarkhe 3420e753437SManish V Badarkhe /* 3430e753437SManish V Badarkhe * Optional function to get SOC revision 3440e753437SManish V Badarkhe */ 3450e753437SManish V Badarkhe int32_t plat_get_soc_revision(void); 3460e753437SManish V Badarkhe 3476f0a2f04SManish V Badarkhe /* 3486f0a2f04SManish V Badarkhe * Optional function to check for SMCCC function availability for platform 3496f0a2f04SManish V Badarkhe */ 3506f0a2f04SManish V Badarkhe int32_t plat_is_smccc_feature_available(u_register_t fid); 3516f0a2f04SManish V Badarkhe 3522bc3dba9SAntonio Nino Diaz #endif /* PLATFORM_H */ 353