/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (c) 2024, STMicroelectronics */ #ifndef SCMI_SERVER_CLOCK_CONSUMER_H #define SCMI_SERVER_CLOCK_CONSUMER_H #include #include #include #include #ifdef CFG_SCMI_SERVER_CLOCK_CONSUMER /* * Initialize SCMI clock from clock consumer information from DT. * Returns a TEE_Result compliant value */ TEE_Result optee_scmi_server_init_clocks(const void *fdt, int node, struct scpfw_agent_config *agent_cfg, struct scpfw_channel_config *channel_cfg); #else static inline TEE_Result optee_scmi_server_init_clocks(const void *fdt __unused, int node __unused, struct scpfw_agent_config *agent_cfg __unused, struct scpfw_channel_config *channel_cfg __unused) { return TEE_SUCCESS; } #endif /* CFG_SCMI_SERVER_CLOCK_CONSUMER */ #endif /* SCMI_SERVER_CLOCK_CONSUMER_H */