arm-trusted-firmware/include/drivers/nxp/clk/s32cc/s32cc-clk-utils.h
Ghennadi Procopciuc 514c738045 feat(nxp-clk): dynamic map of the clock modules
Add all clock modules as entries in MMU using dynamic regions.

Change-Id: I56f724ced4bd024554c7b38afd14ea420de80cc6
Signed-off-by: Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com>
2025-01-14 13:02:51 +02:00

23 lines
651 B
C

/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Copyright 2024 NXP
*/
#ifndef S32CC_CLK_UTILS_H
#define S32CC_CLK_UTILS_H
#include <s32cc-clk-modules.h>
struct s32cc_clk *s32cc_get_clk_from_table(const struct s32cc_clk_array *const *clk_arr,
size_t size,
unsigned long clk_id);
int s32cc_get_id_from_table(const struct s32cc_clk_array *const *clk_arr,
size_t size, const struct s32cc_clk *clk,
unsigned long *clk_index);
struct s32cc_clk *s32cc_get_arch_clk(unsigned long id);
int s32cc_get_clk_id(const struct s32cc_clk *clk, unsigned long *id);
int s32cc_clk_register_drv(void);
#endif /* S32CC_CLK_UTILS_H */