Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
numaker_m46x_reset.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nuvoton Technology Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_RESET_NUMAKER_M46X_RESET_H
8#define ZEPHYR_INCLUDE_DT_BINDINGS_RESET_NUMAKER_M46X_RESET_H
9
10/* Beginning of M460 BSP sys_reg.h reset module copy */
11
12#define NUMAKER_SYS_IPRST0_PDMA0RST_Pos (2)
13
14#define NUMAKER_SYS_IPRST0_EBIRST_Pos (3)
15
16#define NUMAKER_SYS_IPRST0_EMAC0RST_Pos (5)
17
18#define NUMAKER_SYS_IPRST0_SDH0RST_Pos (6)
19
20#define NUMAKER_SYS_IPRST0_CRCRST_Pos (7)
21
22#define NUMAKER_SYS_IPRST0_CCAPRST_Pos (8)
23
24#define NUMAKER_SYS_IPRST0_HSUSBDRST_Pos (10)
25
26#define NUMAKER_SYS_IPRST0_HBIRST_Pos (11)
27
28#define NUMAKER_SYS_IPRST0_CRPTRST_Pos (12)
29
30#define NUMAKER_SYS_IPRST0_KSRST_Pos (13)
31
32#define NUMAKER_SYS_IPRST0_SPIMRST_Pos (14)
33
34#define NUMAKER_SYS_IPRST0_HSUSBHRST_Pos (16)
35
36#define NUMAKER_SYS_IPRST0_SDH1RST_Pos (17)
37
38#define NUMAKER_SYS_IPRST0_PDMA1RST_Pos (18)
39
40#define NUMAKER_SYS_IPRST0_CANFD0RST_Pos (20)
41
42#define NUMAKER_SYS_IPRST0_CANFD1RST_Pos (21)
43
44#define NUMAKER_SYS_IPRST0_CANFD2RST_Pos (22)
45
46#define NUMAKER_SYS_IPRST0_CANFD3RST_Pos (23)
47
48#define NUMAKER_SYS_IPRST0_BMCRST_Pos (28)
49
50#define NUMAKER_SYS_IPRST1_GPIORST_Pos (1)
51
52#define NUMAKER_SYS_IPRST1_TMR0RST_Pos (2)
53
54#define NUMAKER_SYS_IPRST1_TMR1RST_Pos (3)
55
56#define NUMAKER_SYS_IPRST1_TMR2RST_Pos (4)
57
58#define NUMAKER_SYS_IPRST1_TMR3RST_Pos (5)
59
60#define NUMAKER_SYS_IPRST1_ACMP01RST_Pos (7)
61
62#define NUMAKER_SYS_IPRST1_I2C0RST_Pos (8)
63
64#define NUMAKER_SYS_IPRST1_I2C1RST_Pos (9)
65
66#define NUMAKER_SYS_IPRST1_I2C2RST_Pos (10)
67
68#define NUMAKER_SYS_IPRST1_I2C3RST_Pos (11)
69
70#define NUMAKER_SYS_IPRST1_QSPI0RST_Pos (12)
71
72#define NUMAKER_SYS_IPRST1_SPI0RST_Pos (13)
73
74#define NUMAKER_SYS_IPRST1_SPI1RST_Pos (14)
75
76#define NUMAKER_SYS_IPRST1_SPI2RST_Pos (15)
77
78#define NUMAKER_SYS_IPRST1_UART0RST_Pos (16)
79
80#define NUMAKER_SYS_IPRST1_UART1RST_Pos (17)
81
82#define NUMAKER_SYS_IPRST1_UART2RST_Pos (18)
83
84#define NUMAKER_SYS_IPRST1_UART3RST_Pos (19)
85
86#define NUMAKER_SYS_IPRST1_UART4RST_Pos (20)
87
88#define NUMAKER_SYS_IPRST1_UART5RST_Pos (21)
89
90#define NUMAKER_SYS_IPRST1_UART6RST_Pos (22)
91
92#define NUMAKER_SYS_IPRST1_UART7RST_Pos (23)
93
94#define NUMAKER_SYS_IPRST1_OTGRST_Pos (26)
95
96#define NUMAKER_SYS_IPRST1_USBDRST_Pos (27)
97
98#define NUMAKER_SYS_IPRST1_EADC0RST_Pos (28)
99
100#define NUMAKER_SYS_IPRST1_I2S0RST_Pos (29)
101
102#define NUMAKER_SYS_IPRST1_HSOTGRST_Pos (30)
103
104#define NUMAKER_SYS_IPRST1_TRNGRST_Pos (31)
105
106#define NUMAKER_SYS_IPRST2_SC0RST_Pos (0)
107
108#define NUMAKER_SYS_IPRST2_SC1RST_Pos (1)
109
110#define NUMAKER_SYS_IPRST2_SC2RST_Pos (2)
111
112#define NUMAKER_SYS_IPRST2_I2C4RST_Pos (3)
113
114#define NUMAKER_SYS_IPRST2_QSPI1RST_Pos (4)
115
116#define NUMAKER_SYS_IPRST2_SPI3RST_Pos (6)
117
118#define NUMAKER_SYS_IPRST2_SPI4RST_Pos (7)
119
120#define NUMAKER_SYS_IPRST2_USCI0RST_Pos (8)
121
122#define NUMAKER_SYS_IPRST2_PSIORST_Pos (10)
123
124#define NUMAKER_SYS_IPRST2_DACRST_Pos (12)
125
126#define NUMAKER_SYS_IPRST2_ECAP2RST_Pos (13)
127
128#define NUMAKER_SYS_IPRST2_ECAP3RST_Pos (14)
129
130#define NUMAKER_SYS_IPRST2_EPWM0RST_Pos (16)
131
132#define NUMAKER_SYS_IPRST2_EPWM1RST_Pos (17)
133
134#define NUMAKER_SYS_IPRST2_BPWM0RST_Pos (18)
135
136#define NUMAKER_SYS_IPRST2_BPWM1RST_Pos (19)
137
138#define NUMAKER_SYS_IPRST2_EQEI2RST_Pos (20)
139
140#define NUMAKER_SYS_IPRST2_EQEI3RST_Pos (21)
141
142#define NUMAKER_SYS_IPRST2_EQEI0RST_Pos (22)
143
144#define NUMAKER_SYS_IPRST2_EQEI1RST_Pos (23)
145
146#define NUMAKER_SYS_IPRST2_ECAP0RST_Pos (26)
147
148#define NUMAKER_SYS_IPRST2_ECAP1RST_Pos (27)
149
150#define NUMAKER_SYS_IPRST2_I2S1RST_Pos (29)
151
152#define NUMAKER_SYS_IPRST2_EADC1RST_Pos (31)
153
154#define NUMAKER_SYS_IPRST3_KPIRST_Pos (0)
155
156#define NUMAKER_SYS_IPRST3_EADC2RST_Pos (6)
157
158#define NUMAKER_SYS_IPRST3_ACMP23RST_Pos (7)
159
160#define NUMAKER_SYS_IPRST3_SPI5RST_Pos (8)
161
162#define NUMAKER_SYS_IPRST3_SPI6RST_Pos (9)
163
164#define NUMAKER_SYS_IPRST3_SPI7RST_Pos (10)
165
166#define NUMAKER_SYS_IPRST3_SPI8RST_Pos (11)
167
168#define NUMAKER_SYS_IPRST3_SPI9RST_Pos (12)
169
170#define NUMAKER_SYS_IPRST3_SPI10RST_Pos (13)
171
172#define NUMAKER_SYS_IPRST3_UART8RST_Pos (16)
173
174#define NUMAKER_SYS_IPRST3_UART9RST_Pos (17)
175
176/* End of M460 BSP sys_reg.h reset module copy */
177
178/* Beginning of M460 BSP sys.h reset module copy */
179
180/*---------------------------------------------------------------------
181 * Module Reset Control Resister constant definitions.
182 *---------------------------------------------------------------------
183 */
184#define NUMAKER_PDMA0_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_PDMA0RST_Pos)
185#define NUMAKER_EBI_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_EBIRST_Pos)
186#define NUMAKER_EMAC0_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_EMAC0RST_Pos)
187#define NUMAKER_SDH0_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_SDH0RST_Pos)
188#define NUMAKER_CRC_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_CRCRST_Pos)
189#define NUMAKER_CCAP_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_CCAPRST_Pos)
190#define NUMAKER_HSUSBD_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_HSUSBDRST_Pos)
191#define NUMAKER_HBI_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_HBIRST_Pos)
192#define NUMAKER_CRPT_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_CRPTRST_Pos)
193#define NUMAKER_KS_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_KSRST_Pos)
194#define NUMAKER_SPIM_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_SPIMRST_Pos)
195#define NUMAKER_HSUSBH_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_HSUSBHRST_Pos)
196#define NUMAKER_SDH1_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_SDH1RST_Pos)
197#define NUMAKER_PDMA1_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_PDMA1RST_Pos)
198#define NUMAKER_CANFD0_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_CANFD0RST_Pos)
199#define NUMAKER_CANFD1_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_CANFD1RST_Pos)
200#define NUMAKER_CANFD2_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_CANFD2RST_Pos)
201#define NUMAKER_CANFD3_RST ((0UL << 24) | NUMAKER_SYS_IPRST0_CANFD3RST_Pos)
202
203#define NUMAKER_GPIO_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_GPIORST_Pos)
204#define NUMAKER_TMR0_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_TMR0RST_Pos)
205#define NUMAKER_TMR1_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_TMR1RST_Pos)
206#define NUMAKER_TMR2_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_TMR2RST_Pos)
207#define NUMAKER_TMR3_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_TMR3RST_Pos)
208#define NUMAKER_ACMP01_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_ACMP01RST_Pos)
209#define NUMAKER_I2C0_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_I2C0RST_Pos)
210#define NUMAKER_I2C1_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_I2C1RST_Pos)
211#define NUMAKER_I2C2_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_I2C2RST_Pos)
212#define NUMAKER_I2C3_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_I2C3RST_Pos)
213#define NUMAKER_QSPI0_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_QSPI0RST_Pos)
214#define NUMAKER_SPI0_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_SPI0RST_Pos)
215#define NUMAKER_SPI1_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_SPI1RST_Pos)
216#define NUMAKER_SPI2_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_SPI2RST_Pos)
217#define NUMAKER_UART0_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_UART0RST_Pos)
218#define NUMAKER_UART1_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_UART1RST_Pos)
219#define NUMAKER_UART2_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_UART2RST_Pos)
220#define NUMAKER_UART3_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_UART3RST_Pos)
221#define NUMAKER_UART4_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_UART4RST_Pos)
222#define NUMAKER_UART5_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_UART5RST_Pos)
223#define NUMAKER_UART6_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_UART6RST_Pos)
224#define NUMAKER_UART7_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_UART7RST_Pos)
225#define NUMAKER_OTG_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_OTGRST_Pos)
226#define NUMAKER_USBD_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_USBDRST_Pos)
227#define NUMAKER_EADC0_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_EADC0RST_Pos)
228#define NUMAKER_I2S0_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_I2S0RST_Pos)
229#define NUMAKER_HSOTG_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_HSOTGRST_Pos)
230#define NUMAKER_TRNG_RST ((4UL << 24) | NUMAKER_SYS_IPRST1_TRNGRST_Pos)
231
232#define NUMAKER_SC0_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_SC0RST_Pos)
233#define NUMAKER_SC1_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_SC1RST_Pos)
234#define NUMAKER_SC2_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_SC2RST_Pos)
235#define NUMAKER_I2C4_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_I2C4RST_Pos)
236#define NUMAKER_QSPI1_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_QSPI1RST_Pos)
237#define NUMAKER_SPI3_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_SPI3RST_Pos)
238#define NUMAKER_SPI4_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_SPI4RST_Pos)
239#define NUMAKER_USCI0_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_USCI0RST_Pos)
240#define NUMAKER_PSIO_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_PSIORST_Pos)
241#define NUMAKER_DAC_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_DACRST_Pos)
242#define NUMAKER_EPWM0_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_EPWM0RST_Pos)
243#define NUMAKER_EPWM1_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_EPWM1RST_Pos)
244#define NUMAKER_BPWM0_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_BPWM0RST_Pos)
245#define NUMAKER_BPWM1_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_BPWM1RST_Pos)
246#define NUMAKER_EQEI0_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_EQEI0RST_Pos)
247#define NUMAKER_EQEI1_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_EQEI1RST_Pos)
248#define NUMAKER_EQEI2_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_EQEI2RST_Pos)
249#define NUMAKER_EQEI3_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_EQEI3RST_Pos)
250#define NUMAKER_ECAP0_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_ECAP0RST_Pos)
251#define NUMAKER_ECAP1_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_ECAP1RST_Pos)
252#define NUMAKER_ECAP2_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_ECAP2RST_Pos)
253#define NUMAKER_ECAP3_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_ECAP3RST_Pos)
254#define NUMAKER_I2S1_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_I2S1RST_Pos)
255#define NUMAKER_EADC1_RST ((8UL << 24) | NUMAKER_SYS_IPRST2_EADC1RST_Pos)
256
257#define NUMAKER_KPI_RST ((0x18UL << 24) | NUMAKER_SYS_IPRST3_KPIRST_Pos)
258#define NUMAKER_EADC2_RST ((0x18UL << 24) | NUMAKER_SYS_IPRST3_EADC2RST_Pos)
259#define NUMAKER_ACMP23_RST ((0x18UL << 24) | NUMAKER_SYS_IPRST3_ACMP23RST_Pos)
260#define NUMAKER_SPI5_RST ((0x18UL << 24) | NUMAKER_SYS_IPRST3_SPI5RST_Pos)
261#define NUMAKER_SPI6_RST ((0x18UL << 24) | NUMAKER_SYS_IPRST3_SPI6RST_Pos)
262#define NUMAKER_SPI7_RST ((0x18UL << 24) | NUMAKER_SYS_IPRST3_SPI7RST_Pos)
263#define NUMAKER_SPI8_RST ((0x18UL << 24) | NUMAKER_SYS_IPRST3_SPI8RST_Pos)
264#define NUMAKER_SPI9_RST ((0x18UL << 24) | NUMAKER_SYS_IPRST3_SPI9RST_Pos)
265#define NUMAKER_SPI10_RST ((0x18UL << 24) | NUMAKER_SYS_IPRST3_SPI10RST_Pos)
266#define NUMAKER_UART8_RST ((0x18UL << 24) | NUMAKER_SYS_IPRST3_UART8RST_Pos)
267#define NUMAKER_UART9_RST ((0x18UL << 24) | NUMAKER_SYS_IPRST3_UART9RST_Pos)
268
269/* End of M460 BSP sys.h reset module copy */
270
271#endif