Skip to content

Commit 5c8d08f

Browse files
digetxthierryreding
authored andcommitted
dt-bindings: memory: tegra: Add hot resets definitions
Add definitions for the Tegra20+ memory controller hot resets. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Thierry Reding <treding@nvidia.com>
1 parent 60cc43f commit 5c8d08f

5 files changed

Lines changed: 115 additions & 0 deletions

File tree

‎include/dt-bindings/memory/tegra114-mc.h‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,23 @@
2323
#define TEGRA_SWGROUP_EMUCIF 18
2424
#define TEGRA_SWGROUP_TSEC 19
2525

26+
#define TEGRA114_MC_RESET_AFI 0
27+
#define TEGRA114_MC_RESET_AVPC 1
28+
#define TEGRA114_MC_RESET_DC 2
29+
#define TEGRA114_MC_RESET_DCB 3
30+
#define TEGRA114_MC_RESET_EPP 4
31+
#define TEGRA114_MC_RESET_2D 5
32+
#define TEGRA114_MC_RESET_HC 6
33+
#define TEGRA114_MC_RESET_HDA 7
34+
#define TEGRA114_MC_RESET_ISP 8
35+
#define TEGRA114_MC_RESET_MPCORE 9
36+
#define TEGRA114_MC_RESET_MPCORELP 10
37+
#define TEGRA114_MC_RESET_MPE 11
38+
#define TEGRA114_MC_RESET_3D 12
39+
#define TEGRA114_MC_RESET_3D2 13
40+
#define TEGRA114_MC_RESET_PPCS 14
41+
#define TEGRA114_MC_RESET_SATA 15
42+
#define TEGRA114_MC_RESET_VDE 16
43+
#define TEGRA114_MC_RESET_VI 17
44+
2645
#endif

‎include/dt-bindings/memory/tegra124-mc.h‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,29 @@
2929
#define TEGRA_SWGROUP_VIC 24
3030
#define TEGRA_SWGROUP_VI 25
3131

32+
#define TEGRA124_MC_RESET_AFI 0
33+
#define TEGRA124_MC_RESET_AVPC 1
34+
#define TEGRA124_MC_RESET_DC 2
35+
#define TEGRA124_MC_RESET_DCB 3
36+
#define TEGRA124_MC_RESET_HC 4
37+
#define TEGRA124_MC_RESET_HDA 5
38+
#define TEGRA124_MC_RESET_ISP2 6
39+
#define TEGRA124_MC_RESET_MPCORE 7
40+
#define TEGRA124_MC_RESET_MPCORELP 8
41+
#define TEGRA124_MC_RESET_MSENC 9
42+
#define TEGRA124_MC_RESET_PPCS 10
43+
#define TEGRA124_MC_RESET_SATA 11
44+
#define TEGRA124_MC_RESET_VDE 12
45+
#define TEGRA124_MC_RESET_VI 13
46+
#define TEGRA124_MC_RESET_VIC 14
47+
#define TEGRA124_MC_RESET_XUSB_HOST 15
48+
#define TEGRA124_MC_RESET_XUSB_DEV 16
49+
#define TEGRA124_MC_RESET_TSEC 17
50+
#define TEGRA124_MC_RESET_SDMMC1 18
51+
#define TEGRA124_MC_RESET_SDMMC2 19
52+
#define TEGRA124_MC_RESET_SDMMC3 20
53+
#define TEGRA124_MC_RESET_SDMMC4 21
54+
#define TEGRA124_MC_RESET_ISP2B 22
55+
#define TEGRA124_MC_RESET_GPU 23
56+
3257
#endif
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
#ifndef DT_BINDINGS_MEMORY_TEGRA20_MC_H
3+
#define DT_BINDINGS_MEMORY_TEGRA20_MC_H
4+
5+
#define TEGRA20_MC_RESET_AVPC 0
6+
#define TEGRA20_MC_RESET_DC 1
7+
#define TEGRA20_MC_RESET_DCB 2
8+
#define TEGRA20_MC_RESET_EPP 3
9+
#define TEGRA20_MC_RESET_2D 4
10+
#define TEGRA20_MC_RESET_HC 5
11+
#define TEGRA20_MC_RESET_ISP 6
12+
#define TEGRA20_MC_RESET_MPCORE 7
13+
#define TEGRA20_MC_RESET_MPEA 8
14+
#define TEGRA20_MC_RESET_MPEB 9
15+
#define TEGRA20_MC_RESET_MPEC 10
16+
#define TEGRA20_MC_RESET_3D 11
17+
#define TEGRA20_MC_RESET_PPCS 12
18+
#define TEGRA20_MC_RESET_VDE 13
19+
#define TEGRA20_MC_RESET_VI 14
20+
21+
#endif

‎include/dt-bindings/memory/tegra210-mc.h‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,35 @@
3434
#define TEGRA_SWGROUP_ETR 29
3535
#define TEGRA_SWGROUP_TSECB 30
3636

37+
#define TEGRA210_MC_RESET_AFI 0
38+
#define TEGRA210_MC_RESET_AVPC 1
39+
#define TEGRA210_MC_RESET_DC 2
40+
#define TEGRA210_MC_RESET_DCB 3
41+
#define TEGRA210_MC_RESET_HC 4
42+
#define TEGRA210_MC_RESET_HDA 5
43+
#define TEGRA210_MC_RESET_ISP2 6
44+
#define TEGRA210_MC_RESET_MPCORE 7
45+
#define TEGRA210_MC_RESET_NVENC 8
46+
#define TEGRA210_MC_RESET_PPCS 9
47+
#define TEGRA210_MC_RESET_SATA 10
48+
#define TEGRA210_MC_RESET_VI 11
49+
#define TEGRA210_MC_RESET_VIC 12
50+
#define TEGRA210_MC_RESET_XUSB_HOST 13
51+
#define TEGRA210_MC_RESET_XUSB_DEV 14
52+
#define TEGRA210_MC_RESET_A9AVP 15
53+
#define TEGRA210_MC_RESET_TSEC 16
54+
#define TEGRA210_MC_RESET_SDMMC1 17
55+
#define TEGRA210_MC_RESET_SDMMC2 18
56+
#define TEGRA210_MC_RESET_SDMMC3 19
57+
#define TEGRA210_MC_RESET_SDMMC4 20
58+
#define TEGRA210_MC_RESET_ISP2B 21
59+
#define TEGRA210_MC_RESET_GPU 22
60+
#define TEGRA210_MC_RESET_NVDEC 23
61+
#define TEGRA210_MC_RESET_APE 24
62+
#define TEGRA210_MC_RESET_SE 25
63+
#define TEGRA210_MC_RESET_NVJPG 26
64+
#define TEGRA210_MC_RESET_AXIAP 27
65+
#define TEGRA210_MC_RESET_ETR 28
66+
#define TEGRA210_MC_RESET_TSECB 29
67+
3768
#endif

‎include/dt-bindings/memory/tegra30-mc.h‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,23 @@
2222
#define TEGRA_SWGROUP_MPCORE 17
2323
#define TEGRA_SWGROUP_ISP 18
2424

25+
#define TEGRA30_MC_RESET_AFI 0
26+
#define TEGRA30_MC_RESET_AVPC 1
27+
#define TEGRA30_MC_RESET_DC 2
28+
#define TEGRA30_MC_RESET_DCB 3
29+
#define TEGRA30_MC_RESET_EPP 4
30+
#define TEGRA30_MC_RESET_2D 5
31+
#define TEGRA30_MC_RESET_HC 6
32+
#define TEGRA30_MC_RESET_HDA 7
33+
#define TEGRA30_MC_RESET_ISP 8
34+
#define TEGRA30_MC_RESET_MPCORE 9
35+
#define TEGRA30_MC_RESET_MPCORELP 10
36+
#define TEGRA30_MC_RESET_MPE 11
37+
#define TEGRA30_MC_RESET_3D 12
38+
#define TEGRA30_MC_RESET_3D2 13
39+
#define TEGRA30_MC_RESET_PPCS 14
40+
#define TEGRA30_MC_RESET_SATA 15
41+
#define TEGRA30_MC_RESET_VDE 16
42+
#define TEGRA30_MC_RESET_VI 17
43+
2544
#endif

0 commit comments

Comments
 (0)