xref: /rk3399_ARM-atf/include/drivers/st/stm32mp_clkfunc.h (revision 447b2b137d7286a1ef451336c6e73fb7fd8999a1)
1*447b2b13SYann Gautier /*
2*447b2b13SYann Gautier  * Copyright (c) 2017-2019, STMicroelectronics - All Rights Reserved
3*447b2b13SYann Gautier  *
4*447b2b13SYann Gautier  * SPDX-License-Identifier: BSD-3-Clause
5*447b2b13SYann Gautier  */
6*447b2b13SYann Gautier 
7*447b2b13SYann Gautier #ifndef STM32MP_CLKFUNC_H
8*447b2b13SYann Gautier #define STM32MP_CLKFUNC_H
9*447b2b13SYann Gautier 
10*447b2b13SYann Gautier #include <stdbool.h>
11*447b2b13SYann Gautier 
12*447b2b13SYann Gautier #include <libfdt.h>
13*447b2b13SYann Gautier 
14*447b2b13SYann Gautier int fdt_get_rcc_node(void *fdt);
15*447b2b13SYann Gautier uint32_t fdt_rcc_read_addr(void);
16*447b2b13SYann Gautier int fdt_rcc_read_uint32_array(const char *prop_name,
17*447b2b13SYann Gautier 			      uint32_t *array, uint32_t count);
18*447b2b13SYann Gautier int fdt_rcc_subnode_offset(const char *name);
19*447b2b13SYann Gautier const fdt32_t *fdt_rcc_read_prop(const char *prop_name, int *lenp);
20*447b2b13SYann Gautier bool fdt_get_rcc_secure_status(void);
21*447b2b13SYann Gautier 
22*447b2b13SYann Gautier uintptr_t fdt_get_stgen_base(void);
23*447b2b13SYann Gautier int fdt_get_clock_id(int node);
24*447b2b13SYann Gautier 
25*447b2b13SYann Gautier #endif /* STM32MP_CLKFUNC_H */
26