Yann Gautier | 4d42947 | 2019-02-14 11:15:20 +0100 | [diff] [blame] | 1 | /* |
| 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 | |
| 14 | int fdt_get_rcc_node(void *fdt); |
| 15 | uint32_t fdt_rcc_read_addr(void); |
| 16 | int fdt_rcc_read_uint32_array(const char *prop_name, |
| 17 | uint32_t *array, uint32_t count); |
| 18 | int fdt_rcc_subnode_offset(const char *name); |
| 19 | const fdt32_t *fdt_rcc_read_prop(const char *prop_name, int *lenp); |
| 20 | bool fdt_get_rcc_secure_status(void); |
| 21 | |
| 22 | uintptr_t fdt_get_stgen_base(void); |
| 23 | int fdt_get_clock_id(int node); |
| 24 | |
| 25 | #endif /* STM32MP_CLKFUNC_H */ |