blob: da203a74972db47906f8b3c1c9ea46328ba6e87a [file] [log] [blame]
Yann Gautier9aea69e2018-07-24 17:13:36 +02001/*
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 ******************************************************************************/
15int dt_open_and_check(void);
16int fdt_get_address(void **fdt_addr);
17bool fdt_check_node(int node);
18bool fdt_check_status(int node);
19bool fdt_check_secure_status(int node);
20uint32_t fdt_read_uint32_default(int node, const char *prop_name,
21 uint32_t dflt_value);
22int fdt_read_uint32_array(int node, const char *prop_name,
23 uint32_t *array, uint32_t count);
24
25#endif /* __STM32MP1_DT_H__ */