Yann Gautier | 9aea69e | 2018-07-24 17:13:36 +0200 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef __STM32MP1_DT_H__ |
| 8 | #define __STM32MP1_DT_H__ |
| 9 | |
| 10 | #include <stdbool.h> |
| 11 | |
| 12 | /******************************************************************************* |
| 13 | * Function and variable prototypes |
| 14 | ******************************************************************************/ |
| 15 | int dt_open_and_check(void); |
| 16 | int fdt_get_address(void **fdt_addr); |
| 17 | bool fdt_check_node(int node); |
| 18 | bool fdt_check_status(int node); |
| 19 | bool fdt_check_secure_status(int node); |
| 20 | uint32_t fdt_read_uint32_default(int node, const char *prop_name, |
| 21 | uint32_t dflt_value); |
| 22 | int fdt_read_uint32_array(int node, const char *prop_name, |
| 23 | uint32_t *array, uint32_t count); |
| 24 | |
| 25 | #endif /* __STM32MP1_DT_H__ */ |