1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
2 /* Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. */
3 
4 #ifndef DT_BINDINGS_MEMORY_TEGRA234_MC_H
5 #define DT_BINDINGS_MEMORY_TEGRA234_MC_H
6 
7 /* special clients */
8 #define TEGRA234_SID_INVALID		0x00
9 #define TEGRA234_SID_PASSTHROUGH	0x7f
10 
11 /* NISO0 stream IDs */
12 #define TEGRA234_SID_APE	0x02
13 #define TEGRA234_SID_HDA	0x03
14 #define TEGRA234_SID_GPCDMA	0x04
15 #define TEGRA234_SID_MGBE	0x06
16 #define TEGRA234_SID_PCIE0	0x12
17 #define TEGRA234_SID_PCIE4	0x13
18 #define TEGRA234_SID_PCIE5	0x14
19 #define TEGRA234_SID_PCIE6	0x15
20 #define TEGRA234_SID_PCIE9	0x1f
21 #define TEGRA234_SID_MGBE_VF1	0x49
22 #define TEGRA234_SID_MGBE_VF2	0x4a
23 #define TEGRA234_SID_MGBE_VF3	0x4b
24 
25 /* NISO1 stream IDs */
26 #define TEGRA234_SID_SDMMC4	0x02
27 #define TEGRA234_SID_PCIE1	0x05
28 #define TEGRA234_SID_PCIE2	0x06
29 #define TEGRA234_SID_PCIE3	0x07
30 #define TEGRA234_SID_PCIE7	0x08
31 #define TEGRA234_SID_PCIE8	0x09
32 #define TEGRA234_SID_PCIE10	0x0b
33 #define TEGRA234_SID_BPMP	0x10
34 #define TEGRA234_SID_HOST1X	0x27
35 #define TEGRA234_SID_VIC	0x34
36 
37 /*
38  * memory client IDs
39  */
40 
41 /* High-definition audio (HDA) read clients */
42 #define TEGRA234_MEMORY_CLIENT_HDAR 0x15
43 #define TEGRA234_MEMORY_CLIENT_HOST1XDMAR 0x16
44 /* PCIE6 read clients */
45 #define TEGRA234_MEMORY_CLIENT_PCIE6AR 0x28
46 /* PCIE6 write clients */
47 #define TEGRA234_MEMORY_CLIENT_PCIE6AW 0x29
48 /* PCIE7 read clients */
49 #define TEGRA234_MEMORY_CLIENT_PCIE7AR 0x2a
50 /* PCIE7 write clients */
51 #define TEGRA234_MEMORY_CLIENT_PCIE7AW 0x30
52 /* PCIE8 read clients */
53 #define TEGRA234_MEMORY_CLIENT_PCIE8AR 0x32
54 /* High-definition audio (HDA) write clients */
55 #define TEGRA234_MEMORY_CLIENT_HDAW 0x35
56 /* PCIE8 write clients */
57 #define TEGRA234_MEMORY_CLIENT_PCIE8AW 0x3b
58 /* PCIE9 read clients */
59 #define TEGRA234_MEMORY_CLIENT_PCIE9AR 0x3c
60 /* PCIE6r1 read clients */
61 #define TEGRA234_MEMORY_CLIENT_PCIE6AR1 0x3d
62 /* PCIE9 write clients */
63 #define TEGRA234_MEMORY_CLIENT_PCIE9AW 0x3e
64 /* PCIE10 read clients */
65 #define TEGRA234_MEMORY_CLIENT_PCIE10AR 0x3f
66 /* PCIE10 write clients */
67 #define TEGRA234_MEMORY_CLIENT_PCIE10AW 0x40
68 /* PCIE10r1 read clients */
69 #define TEGRA234_MEMORY_CLIENT_PCIE10AR1 0x48
70 /* PCIE7r1 read clients */
71 #define TEGRA234_MEMORY_CLIENT_PCIE7AR1 0x49
72 /* MGBE0 read client */
73 #define TEGRA234_MEMORY_CLIENT_MGBEARD 0x58
74 /* MGBEB read client */
75 #define TEGRA234_MEMORY_CLIENT_MGBEBRD 0x59
76 /* MGBEC read client */
77 #define TEGRA234_MEMORY_CLIENT_MGBECRD 0x5a
78 /* MGBED read client */
79 #define TEGRA234_MEMORY_CLIENT_MGBEDRD 0x5b
80 /* MGBE0 write client */
81 #define TEGRA234_MEMORY_CLIENT_MGBEAWR 0x5c
82 /* MGBEB write client */
83 #define TEGRA234_MEMORY_CLIENT_MGBEBWR 0x5f
84 /* MGBEC write client */
85 #define TEGRA234_MEMORY_CLIENT_MGBECWR 0x61
86 /* sdmmcd memory read client */
87 #define TEGRA234_MEMORY_CLIENT_SDMMCRAB 0x63
88 /* MGBED write client */
89 #define TEGRA234_MEMORY_CLIENT_MGBEDWR 0x65
90 /* sdmmcd memory write client */
91 #define TEGRA234_MEMORY_CLIENT_SDMMCWAB 0x67
92 #define TEGRA234_MEMORY_CLIENT_VICSRD 0x6c
93 #define TEGRA234_MEMORY_CLIENT_VICSWR 0x6d
94 /* BPMP read client */
95 #define TEGRA234_MEMORY_CLIENT_BPMPR 0x93
96 /* BPMP write client */
97 #define TEGRA234_MEMORY_CLIENT_BPMPW 0x94
98 /* BPMPDMA read client */
99 #define TEGRA234_MEMORY_CLIENT_BPMPDMAR 0x95
100 /* BPMPDMA write client */
101 #define TEGRA234_MEMORY_CLIENT_BPMPDMAW 0x96
102 /* APEDMA read client */
103 #define TEGRA234_MEMORY_CLIENT_APEDMAR 0x9f
104 /* APEDMA write client */
105 #define TEGRA234_MEMORY_CLIENT_APEDMAW 0xa0
106 /* PCIE0 read clients */
107 #define TEGRA234_MEMORY_CLIENT_PCIE0R 0xd8
108 /* PCIE0 write clients */
109 #define TEGRA234_MEMORY_CLIENT_PCIE0W 0xd9
110 /* PCIE1 read clients */
111 #define TEGRA234_MEMORY_CLIENT_PCIE1R 0xda
112 /* PCIE1 write clients */
113 #define TEGRA234_MEMORY_CLIENT_PCIE1W 0xdb
114 /* PCIE2 read clients */
115 #define TEGRA234_MEMORY_CLIENT_PCIE2AR 0xdc
116 /* PCIE2 write clients */
117 #define TEGRA234_MEMORY_CLIENT_PCIE2AW 0xdd
118 /* PCIE3 read clients */
119 #define TEGRA234_MEMORY_CLIENT_PCIE3R 0xde
120 /* PCIE3 write clients */
121 #define TEGRA234_MEMORY_CLIENT_PCIE3W 0xdf
122 /* PCIE4 read clients */
123 #define TEGRA234_MEMORY_CLIENT_PCIE4R 0xe0
124 /* PCIE4 write clients */
125 #define TEGRA234_MEMORY_CLIENT_PCIE4W 0xe1
126 /* PCIE5 read clients */
127 #define TEGRA234_MEMORY_CLIENT_PCIE5R 0xe2
128 /* PCIE5 write clients */
129 #define TEGRA234_MEMORY_CLIENT_PCIE5W 0xe3
130 /* PCIE5r1 read clients */
131 #define TEGRA234_MEMORY_CLIENT_PCIE5R1 0xef
132 
133 #endif
134