imx_rdc.h 620 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2018, Diego Sueiro
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_
  7. #define ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_
  8. #define A7_DOMAIN_ID 0
  9. #define A9_DOMAIN_ID 0
  10. #define M4_DOMAIN_ID 1
  11. #define RDC_DOMAIN_PERM_NONE (0x0)
  12. #define RDC_DOMAIN_PERM_W (0x1)
  13. #define RDC_DOMAIN_PERM_R (0x2)
  14. #define RDC_DOMAIN_PERM_RW (RDC_DOMAIN_PERM_W|RDC_DOMAIN_PERM_R)
  15. #define RDC_DOMAIN_PERM(domain, perm) (perm << (domain * 2))
  16. #define RDC_DT_VAL(nodelabel) DT_PROP(DT_NODELABEL(nodelabel), rdc)
  17. #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_ */