arm-trusted-firmware/include/drivers/nxp/clk/s32cc/s32cc-clk-utils.h
Ghennadi Procopciuc 61b5ef21af feat(s32g274a): split early clock initialization
Initializing all early clocks before the MMU is enabled can impact boot
time. Therefore, splitting the setup into A53 clocks and peripheral
clocks can be beneficial, with the peripheral clocks configured after
fully initializing the MMU.

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

24 lines
682 B
C

/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Copyright 2024 NXP
*/
#ifndef S32CC_CLK_UTILS_H
#define S32CC_CLK_UTILS_H
#include <stdbool.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(bool mmap_regs);
#endif /* S32CC_CLK_UTILS_H */