blob: a7567988c3f3d0f43d0eed874bf336f3a3b37e68 [file] [log] [blame]
Jim Liu147c0002022-09-27 16:45:15 +08001/* SPDX-License-Identifier: GPL-2.0 */
2// Copyright (c) 2020 Nuvoton Technology corporation.
3
4#ifndef _DT_BINDINGS_NPCM8XX_RESET_H
5#define _DT_BINDINGS_NPCM8XX_RESET_H
6
7#define NPCM8XX_RESET_IPSRST1 0x20
8#define NPCM8XX_RESET_IPSRST2 0x24
9#define NPCM8XX_RESET_IPSRST3 0x34
10#define NPCM8XX_RESET_IPSRST4 0x74
11
12/* Reset lines on IP1 reset module (NPCM8XX_RESET_IPSRST1) */
13#define NPCM8XX_RESET_GDMA0 3
14#define NPCM8XX_RESET_UDC1 5
15#define NPCM8XX_RESET_GMAC3 6
16#define NPCM8XX_RESET_UART_2_3 7
17#define NPCM8XX_RESET_UDC2 8
18#define NPCM8XX_RESET_PECI 9
19#define NPCM8XX_RESET_AES 10
20#define NPCM8XX_RESET_UART_0_1 11
21#define NPCM8XX_RESET_MC 12
22#define NPCM8XX_RESET_SMB2 13
23#define NPCM8XX_RESET_SMB3 14
24#define NPCM8XX_RESET_SMB4 15
25#define NPCM8XX_RESET_SMB5 16
26#define NPCM8XX_RESET_PWM_M0 18
27#define NPCM8XX_RESET_TIMER_0_4 19
28#define NPCM8XX_RESET_TIMER_5_9 20
29#define NPCM8XX_RESET_GMAC4 21
30#define NPCM8XX_RESET_UDC4 22
31#define NPCM8XX_RESET_UDC5 23
32#define NPCM8XX_RESET_UDC6 24
33#define NPCM8XX_RESET_UDC3 25
34#define NPCM8XX_RESET_ADC 27
35#define NPCM8XX_RESET_SMB6 28
36#define NPCM8XX_RESET_SMB7 29
37#define NPCM8XX_RESET_SMB0 30
38#define NPCM8XX_RESET_SMB1 31
39
40/* Reset lines on IP2 reset module (NPCM8XX_RESET_IPSRST2) */
41#define NPCM8XX_RESET_MFT0 0
42#define NPCM8XX_RESET_MFT1 1
43#define NPCM8XX_RESET_MFT2 2
44#define NPCM8XX_RESET_MFT3 3
45#define NPCM8XX_RESET_MFT4 4
46#define NPCM8XX_RESET_MFT5 5
47#define NPCM8XX_RESET_MFT6 6
48#define NPCM8XX_RESET_MFT7 7
49#define NPCM8XX_RESET_MMC 8
50#define NPCM8XX_RESET_GFX_SYS 10
51#define NPCM8XX_RESET_AHB_PCIBRG 11
52#define NPCM8XX_RESET_VDMA 12
53#define NPCM8XX_RESET_ECE 13
54#define NPCM8XX_RESET_VCD 14
55#define NPCM8XX_RESET_VIRUART1 16
56#define NPCM8XX_RESET_VIRUART2 17
57#define NPCM8XX_RESET_SIOX1 18
58#define NPCM8XX_RESET_SIOX2 19
59#define NPCM8XX_RESET_BT 20
60#define NPCM8XX_RESET_3DES 21
61#define NPCM8XX_RESET_PSPI2 23
62#define NPCM8XX_RESET_GMAC2 25
63#define NPCM8XX_RESET_USBH1 26
64#define NPCM8XX_RESET_GMAC1 28
65#define NPCM8XX_RESET_CP1 31
66
67/* Reset lines on IP3 reset module (NPCM8XX_RESET_IPSRST3) */
68#define NPCM8XX_RESET_PWM_M1 0
69#define NPCM8XX_RESET_SMB12 1
70#define NPCM8XX_RESET_SPIX 2
71#define NPCM8XX_RESET_SMB13 3
72#define NPCM8XX_RESET_UDC0 4
73#define NPCM8XX_RESET_UDC7 5
74#define NPCM8XX_RESET_UDC8 6
75#define NPCM8XX_RESET_UDC9 7
76#define NPCM8XX_RESET_USBHUB 8
77#define NPCM8XX_RESET_PCI_MAILBOX 9
78#define NPCM8XX_RESET_GDMA1 10
79#define NPCM8XX_RESET_GDMA2 11
80#define NPCM8XX_RESET_SMB14 12
81#define NPCM8XX_RESET_SHA 13
82#define NPCM8XX_RESET_SEC_ECC 14
83#define NPCM8XX_RESET_PCIE_RC 15
84#define NPCM8XX_RESET_TIMER_10_14 16
85#define NPCM8XX_RESET_RNG 17
86#define NPCM8XX_RESET_SMB15 18
87#define NPCM8XX_RESET_SMB8 19
88#define NPCM8XX_RESET_SMB9 20
89#define NPCM8XX_RESET_SMB10 21
90#define NPCM8XX_RESET_SMB11 22
91#define NPCM8XX_RESET_ESPI 23
92#define NPCM8XX_RESET_USBPHY1 24
93#define NPCM8XX_RESET_USBPHY2 25
94
95/* Reset lines on IP4 reset module (NPCM8XX_RESET_IPSRST4) */
96#define NPCM8XX_RESET_SMB16 0
97#define NPCM8XX_RESET_SMB17 1
98#define NPCM8XX_RESET_SMB18 2
99#define NPCM8XX_RESET_SMB19 3
100#define NPCM8XX_RESET_SMB20 4
101#define NPCM8XX_RESET_SMB21 5
102#define NPCM8XX_RESET_SMB22 6
103#define NPCM8XX_RESET_SMB23 7
104#define NPCM8XX_RESET_I3C0 8
105#define NPCM8XX_RESET_I3C1 9
106#define NPCM8XX_RESET_I3C2 10
107#define NPCM8XX_RESET_I3C3 11
108#define NPCM8XX_RESET_I3C4 12
109#define NPCM8XX_RESET_I3C5 13
110#define NPCM8XX_RESET_UART4 16
111#define NPCM8XX_RESET_UART5 17
112#define NPCM8XX_RESET_UART6 18
113#define NPCM8XX_RESET_PCIMBX2 19
114#define NPCM8XX_RESET_SMB24 22
115#define NPCM8XX_RESET_SMB25 23
116#define NPCM8XX_RESET_SMB26 24
117#define NPCM8XX_RESET_USBPHY3 25
118#define NPCM8XX_RESET_PCIRCPHY 27
119#define NPCM8XX_RESET_PWM_M2 28
120#define NPCM8XX_RESET_JTM1 29
121#define NPCM8XX_RESET_JTM2 30
122#define NPCM8XX_RESET_USBH2 31
123
124#endif