17c36209bSGhennadi Procopciuc /* SPDX-License-Identifier: BSD-3-Clause */ 27c36209bSGhennadi Procopciuc /* 37c36209bSGhennadi Procopciuc * Copyright 2024 NXP 47c36209bSGhennadi Procopciuc */ 57c36209bSGhennadi Procopciuc #ifndef S32CC_CLK_UTILS_H 67c36209bSGhennadi Procopciuc #define S32CC_CLK_UTILS_H 77c36209bSGhennadi Procopciuc 87c36209bSGhennadi Procopciuc #include <s32cc-clk-modules.h> 97c36209bSGhennadi Procopciuc 107c36209bSGhennadi Procopciuc struct s32cc_clk *s32cc_get_clk_from_table(const struct s32cc_clk_array *const *clk_arr, 117c36209bSGhennadi Procopciuc size_t size, 127c36209bSGhennadi Procopciuc unsigned long clk_id); 137c36209bSGhennadi Procopciuc 14*96e069cbSGhennadi Procopciuc int s32cc_get_id_from_table(const struct s32cc_clk_array *const *clk_arr, 15*96e069cbSGhennadi Procopciuc size_t size, const struct s32cc_clk *clk, 16*96e069cbSGhennadi Procopciuc unsigned long *clk_index); 17*96e069cbSGhennadi Procopciuc 187c36209bSGhennadi Procopciuc struct s32cc_clk *s32cc_get_arch_clk(unsigned long id); 19*96e069cbSGhennadi Procopciuc int s32cc_get_clk_id(const struct s32cc_clk *clk, unsigned long *id); 207c36209bSGhennadi Procopciuc 2166af5425SGhennadi Procopciuc void s32cc_clk_register_drv(void); 2266af5425SGhennadi Procopciuc 237c36209bSGhennadi Procopciuc #endif /* S32CC_CLK_UTILS_H */ 24