blob: 5beb06bb2afa9fa31e46a359629798d31fb00f09 [file] [log] [blame]
Yann Gautier4d429472019-02-14 11:15:20 +01001/*
2 * Copyright (c) 2017-2019, STMicroelectronics - All Rights Reserved
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef STM32MP_CLKFUNC_H
8#define STM32MP_CLKFUNC_H
9
10#include <stdbool.h>
11
12#include <libfdt.h>
13
14int fdt_get_rcc_node(void *fdt);
15uint32_t fdt_rcc_read_addr(void);
16int fdt_rcc_read_uint32_array(const char *prop_name,
17 uint32_t *array, uint32_t count);
18int fdt_rcc_subnode_offset(const char *name);
19const fdt32_t *fdt_rcc_read_prop(const char *prop_name, int *lenp);
20bool fdt_get_rcc_secure_status(void);
21
22uintptr_t fdt_get_stgen_base(void);
23int fdt_get_clock_id(int node);
24
25#endif /* STM32MP_CLKFUNC_H */