Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
imx_rdc.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018, Diego Sueiro
3 * Copyright 2024 NXP
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_
9#define ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_
10
11#define A7_DOMAIN_ID 0
12#define A9_DOMAIN_ID 0
13#define A53_DOMAIN_ID 0
14#define M4_DOMAIN_ID 1
15#define M7_DOMAIN_ID 1
16
17#define RDC_DOMAIN_PERM_NONE (0x0)
18#define RDC_DOMAIN_PERM_W (0x1)
19#define RDC_DOMAIN_PERM_R (0x2)
20#define RDC_DOMAIN_PERM_RW (RDC_DOMAIN_PERM_W|RDC_DOMAIN_PERM_R)
21
22#define RDC_DOMAIN_PERM(domain, perm) (perm << (domain * 2))
23
24#define RDC_DT_VAL(nodelabel) DT_PROP(DT_NODELABEL(nodelabel), rdc)
25
26#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_ */