Vignesh R | ffcc66e | 2019-02-05 17:31:24 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com |
| 4 | */ |
| 5 | |
| 6 | #ifndef __DT_TI_UDMA_H |
| 7 | #define __DT_TI_UDMA_H |
| 8 | |
| 9 | #define UDMA_TR_MODE 0 |
| 10 | #define UDMA_PKT_MODE 1 |
| 11 | |
| 12 | #define UDMA_DIR_TX 0 |
| 13 | #define UDMA_DIR_RX 1 |
| 14 | |
| 15 | #define PSIL_STATIC_TR_NONE 0 |
| 16 | #define PSIL_STATIC_TR_XY 1 |
| 17 | #define PSIL_STATIC_TR_MCAN 2 |
| 18 | |
| 19 | #define UDMA_PDMA_TR_XY(id) \ |
| 20 | ti,psil-config##id { \ |
| 21 | linux,udma-mode = <UDMA_TR_MODE>; \ |
| 22 | statictr-type = <PSIL_STATIC_TR_XY>; \ |
| 23 | } |
| 24 | |
| 25 | #define UDMA_PDMA_PKT_XY(id) \ |
| 26 | ti,psil-config##id { \ |
| 27 | linux,udma-mode = <UDMA_PKT_MODE>; \ |
| 28 | statictr-type = <PSIL_STATIC_TR_XY>; \ |
| 29 | } |
| 30 | |
| 31 | #endif /* __DT_TI_UDMA_H */ |