k3-udma.h 668 B

12345678910111213141516171819202122232425262728293031
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com
  4. */
  5. #ifndef __DT_TI_UDMA_H
  6. #define __DT_TI_UDMA_H
  7. #define UDMA_TR_MODE 0
  8. #define UDMA_PKT_MODE 1
  9. #define UDMA_DIR_TX 0
  10. #define UDMA_DIR_RX 1
  11. #define PSIL_STATIC_TR_NONE 0
  12. #define PSIL_STATIC_TR_XY 1
  13. #define PSIL_STATIC_TR_MCAN 2
  14. #define UDMA_PDMA_TR_XY(id) \
  15. ti,psil-config##id { \
  16. linux,udma-mode = <UDMA_TR_MODE>; \
  17. statictr-type = <PSIL_STATIC_TR_XY>; \
  18. }
  19. #define UDMA_PDMA_PKT_XY(id) \
  20. ti,psil-config##id { \
  21. linux,udma-mode = <UDMA_PKT_MODE>; \
  22. statictr-type = <PSIL_STATIC_TR_XY>; \
  23. }
  24. #endif /* __DT_TI_UDMA_H */