| 1 |
/* SPDX-License-Identifier: BSD-3-Clause */ |
| 2 |
/* |
| 3 |
* Copyright 2024 NXP |
| 4 |
*/ |
| 5 |
#ifndef S32CC_CLK_UTILS_H |
| 6 |
#define S32CC_CLK_UTILS_H |
| 7 |
|
| 8 |
#include <s32cc-clk-modules.h> |
| 9 |
|
| 10 |
struct s32cc_clk *s32cc_get_clk_from_table(const struct s32cc_clk_array *const *clk_arr, |
| 11 |
size_t size, |
| 12 |
unsigned long clk_id); |
| 13 |
|
| 14 |
int s32cc_get_id_from_table(const struct s32cc_clk_array *const *clk_arr, |
| 15 |
size_t size, const struct s32cc_clk *clk, |
| 16 |
unsigned long *clk_index); |
| 17 |
|
| 18 |
struct s32cc_clk *s32cc_get_arch_clk(unsigned long id); |
| 19 |
int s32cc_get_clk_id(const struct s32cc_clk *clk, unsigned long *id); |
| 20 |
|
| 21 |
void s32cc_clk_register_drv(void); |
| 22 |
|
| 23 |
#endif /* S32CC_CLK_UTILS_H */ |