Zephyr API Documentation  3.6.0
A Scalable Open Source RTOS
3.6.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
imx_rdc.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018, Diego Sueiro
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_
8#define ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_
9
10#define A7_DOMAIN_ID 0
11#define A9_DOMAIN_ID 0
12#define M4_DOMAIN_ID 1
13#define M7_DOMAIN_ID 1
14
15#define RDC_DOMAIN_PERM_NONE (0x0)
16#define RDC_DOMAIN_PERM_W (0x1)
17#define RDC_DOMAIN_PERM_R (0x2)
18#define RDC_DOMAIN_PERM_RW (RDC_DOMAIN_PERM_W|RDC_DOMAIN_PERM_R)
19
20#define RDC_DOMAIN_PERM(domain, perm) (perm << (domain * 2))
21
22#define RDC_DT_VAL(nodelabel) DT_PROP(DT_NODELABEL(nodelabel), rdc)
23
24#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_ */