xref: /netbsd-src/sys/external/gpl2/dts/dist/include/dt-bindings/dma/x2000-dma.h (revision 0a3071956a3a9fdebdbf7f338cf2d439b45fc728)
1 /*	$NetBSD: x2000-dma.h,v 1.1.1.1 2021/11/07 16:49:57 jmcneill Exp $	*/
2 
3 /* SPDX-License-Identifier: GPL-2.0-only */
4 /*
5  * This header provides macros for X2000 DMA bindings.
6  *
7  * Copyright (c) 2020 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
8  */
9 
10 #ifndef __DT_BINDINGS_DMA_X2000_DMA_H__
11 #define __DT_BINDINGS_DMA_X2000_DMA_H__
12 
13 /*
14  * Request type numbers for the X2000 DMA controller (written to the DRTn
15  * register for the channel).
16  */
17 #define X2000_DMA_AUTO		0x8
18 #define X2000_DMA_UART5_TX	0xa
19 #define X2000_DMA_UART5_RX	0xb
20 #define X2000_DMA_UART4_TX	0xc
21 #define X2000_DMA_UART4_RX	0xd
22 #define X2000_DMA_UART3_TX	0xe
23 #define X2000_DMA_UART3_RX	0xf
24 #define X2000_DMA_UART2_TX	0x10
25 #define X2000_DMA_UART2_RX	0x11
26 #define X2000_DMA_UART1_TX	0x12
27 #define X2000_DMA_UART1_RX	0x13
28 #define X2000_DMA_UART0_TX	0x14
29 #define X2000_DMA_UART0_RX	0x15
30 #define X2000_DMA_SSI0_TX	0x16
31 #define X2000_DMA_SSI0_RX	0x17
32 #define X2000_DMA_SSI1_TX	0x18
33 #define X2000_DMA_SSI1_RX	0x19
34 #define X2000_DMA_I2C0_TX	0x24
35 #define X2000_DMA_I2C0_RX	0x25
36 #define X2000_DMA_I2C1_TX	0x26
37 #define X2000_DMA_I2C1_RX	0x27
38 #define X2000_DMA_I2C2_TX	0x28
39 #define X2000_DMA_I2C2_RX	0x29
40 #define X2000_DMA_I2C3_TX	0x2a
41 #define X2000_DMA_I2C3_RX	0x2b
42 #define X2000_DMA_I2C4_TX	0x2c
43 #define X2000_DMA_I2C4_RX	0x2d
44 #define X2000_DMA_I2C5_TX	0x2e
45 #define X2000_DMA_I2C5_RX	0x2f
46 #define X2000_DMA_UART6_TX	0x30
47 #define X2000_DMA_UART6_RX	0x31
48 #define X2000_DMA_UART7_TX	0x32
49 #define X2000_DMA_UART7_RX	0x33
50 #define X2000_DMA_UART8_TX	0x34
51 #define X2000_DMA_UART8_RX	0x35
52 #define X2000_DMA_UART9_TX	0x36
53 #define X2000_DMA_UART9_RX	0x37
54 #define X2000_DMA_SADC_RX	0x38
55 
56 #endif /* __DT_BINDINGS_DMA_X2000_DMA_H__ */
57