2018-08-09 00:11:21 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018, Diego Sueiro
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_
|
|
|
|
#define ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_
|
2018-08-09 00:11:21 +08:00
|
|
|
|
|
|
|
#define A7_DOMAIN_ID 0
|
|
|
|
#define A9_DOMAIN_ID 0
|
|
|
|
#define M4_DOMAIN_ID 1
|
|
|
|
|
|
|
|
#define RDC_DOMAIN_PERM_NONE (0x0)
|
|
|
|
#define RDC_DOMAIN_PERM_W (0x1)
|
|
|
|
#define RDC_DOMAIN_PERM_R (0x2)
|
|
|
|
#define RDC_DOMAIN_PERM_RW (RDC_DOMAIN_PERM_W|RDC_DOMAIN_PERM_R)
|
|
|
|
|
|
|
|
#define RDC_DOMAIN_PERM(domain, perm) (perm << (domain * 2))
|
|
|
|
|
2020-04-02 06:33:01 +08:00
|
|
|
#define RDC_DT_VAL(nodelabel) DT_PROP(DT_NODELABEL(nodelabel), rdc)
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_ */
|