2 * Copyright (c) 2017-2018, STMicroelectronics - All Rights Reserved
4 * SPDX-License-Identifier: BSD-3-Clause
7 #ifndef STM32MP1_CLKFUNC_H
8 #define STM32MP1_CLKFUNC_H
23 _UNKNOWN_OSC_ID
= 0xFF
26 extern const char *stm32mp_osc_node_label
[NB_OSC
];
28 int fdt_osc_read_freq(const char *name
, uint32_t *freq
);
29 bool fdt_osc_read_bool(enum stm32mp_osc_id osc_id
, const char *prop_name
);
30 uint32_t fdt_osc_read_uint32_default(enum stm32mp_osc_id osc_id
,
31 const char *prop_name
,
34 uint32_t fdt_rcc_read_addr(void);
35 int fdt_rcc_read_uint32_array(const char *prop_name
,
36 uint32_t *array
, uint32_t count
);
37 int fdt_rcc_subnode_offset(const char *name
);
38 const fdt32_t
*fdt_rcc_read_prop(const char *prop_name
, int *lenp
);
39 bool fdt_get_rcc_secure_status(void);
41 uintptr_t fdt_get_stgen_base(void);
42 int fdt_get_clock_id(int node
);
44 #endif /* STM32MP1_CLKFUNC_H */