blob: e6adeccd7ed87e081ddea55b2594819eefa34013 [file] [log] [blame]
Ghennadi Procopciucecc98d22024-06-12 07:38:52 +03001/* 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
10struct 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
Ghennadi Procopciuc302831c2024-09-11 09:29:50 +030014int 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
Ghennadi Procopciucecc98d22024-06-12 07:38:52 +030018struct s32cc_clk *s32cc_get_arch_clk(unsigned long id);
Ghennadi Procopciuc302831c2024-09-11 09:29:50 +030019int s32cc_get_clk_id(const struct s32cc_clk *clk, unsigned long *id);
Ghennadi Procopciucecc98d22024-06-12 07:38:52 +030020
Ghennadi Procopciucf648e5d2024-06-12 09:07:16 +030021void s32cc_clk_register_drv(void);
22
Ghennadi Procopciucecc98d22024-06-12 07:38:52 +030023#endif /* S32CC_CLK_UTILS_H */