Zephyr API Documentation
4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
numaker_m335x_reset.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2026 Nuvoton Technology Corporation.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_RESET_NUMAKER_M335X_RESET_H
8
#define ZEPHYR_INCLUDE_DT_BINDINGS_RESET_NUMAKER_M335X_RESET_H
9
15
24
26
32
33
/* Beginning of M3351 BSP sys_reg.h reset module copy */
34
35
#define SYS_IPRST0_CHIPRST_Pos 0
36
#define SYS_IPRST0_CPURST_Pos 1
37
#define SYS_IPRST0_PDMA0RST_Pos 2
38
#define SYS_IPRST0_EBIRST_Pos 3
39
#define SYS_IPRST0_USBHRST_Pos 4
40
#define SYS_IPRST0_CRCRST_Pos 7
41
#define SYS_IPRST0_CANFD0RST_Pos 8
42
#define SYS_IPRST0_CANFD1RST_Pos 9
43
#define SYS_IPRST0_CRPTRST_Pos 12
44
#define SYS_IPRST1_GPIORST_Pos 1
45
#define SYS_IPRST1_TMR0RST_Pos 2
46
#define SYS_IPRST1_TMR1RST_Pos 3
47
#define SYS_IPRST1_TMR2RST_Pos 4
48
#define SYS_IPRST1_TMR3RST_Pos 5
49
#define SYS_IPRST1_ACMP01RST_Pos 7
50
#define SYS_IPRST1_I2C0RST_Pos 8
51
#define SYS_IPRST1_I2C1RST_Pos 9
52
#define SYS_IPRST1_I2C2RST_Pos 10
53
#define SYS_IPRST1_I3C0RST_Pos 11
54
#define SYS_IPRST1_QSPI0RST_Pos 12
55
#define SYS_IPRST1_SPI0RST_Pos 13
56
#define SYS_IPRST1_SPI1RST_Pos 14
57
#define SYS_IPRST1_UART0RST_Pos 16
58
#define SYS_IPRST1_UART1RST_Pos 17
59
#define SYS_IPRST1_UART2RST_Pos 18
60
#define SYS_IPRST1_UART3RST_Pos 19
61
#define SYS_IPRST1_UART4RST_Pos 20
62
#define SYS_IPRST1_UART5RST_Pos 21
63
#define SYS_IPRST1_UART8RST_Pos 22
64
#define SYS_IPRST1_UART9RST_Pos 23
65
#define SYS_IPRST1_WWDT0RST_Pos 24
66
#define SYS_IPRST1_WWDT1RST_Pos 25
67
#define SYS_IPRST1_USBDRST_Pos 27
68
#define SYS_IPRST1_EADC0RST_Pos 28
69
#define SYS_IPRST1_TRNGRST_Pos 31
70
#define SYS_IPRST2_USCI0RST_Pos 8
71
#define SYS_IPRST2_USCI1RST_Pos 9
72
#define SYS_IPRST2_DAC0RST_Pos 12
73
#define SYS_IPRST2_PWM0RST_Pos 16
74
#define SYS_IPRST2_PWM1RST_Pos 17
75
#define SYS_IPRST2_BPWM0RST_Pos 18
76
#define SYS_IPRST2_BPWM1RST_Pos 19
77
#define SYS_IPRST2_EQEI0RST_Pos 20
78
#define SYS_IPRST2_EQEI1RST_Pos 21
79
#define SYS_IPRST2_UART6RST_Pos 24
80
#define SYS_IPRST2_UART7RST_Pos 25
81
#define SYS_IPRST2_ECAP0RST_Pos 26
82
#define SYS_IPRST2_EADC1RST_Pos 31
83
#define SYS_IPRST3_LLSI0RST_Pos 0
84
#define SYS_IPRST3_LLSI1RST_Pos 1
85
#define SYS_IPRST3_LLSI2RST_Pos 2
86
#define SYS_IPRST3_LLSI3RST_Pos 3
87
#define SYS_IPRST3_LLSI4RST_Pos 4
88
#define SYS_IPRST3_LLSI5RST_Pos 5
89
#define SYS_IPRST3_LLSI6RST_Pos 6
90
#define SYS_IPRST3_LLSI7RST_Pos 7
91
#define SYS_IPRST3_LLSI8RST_Pos 8
92
#define SYS_IPRST3_LLSI9RST_Pos 9
93
#define SYS_IPRST3_ELLSI0RST_Pos 10
94
#define SYS_IPRST3_ELLSI1RST_Pos 11
95
96
/* End of M3351 BSP sys_reg.h reset module copy */
97
98
/* Beginning of M3351 BSP sys.h reset module copy */
99
100
/*---------------------------------------------------------------------
101
* Module Reset Control Resister constant definitions.
102
*---------------------------------------------------------------------
103
*/
104
105
#define NUMAKER_PDMA0_RST ((0UL<<24) | SYS_IPRST0_PDMA0RST_Pos)
106
#define NUMAKER_EBI_RST ((0UL<<24) | SYS_IPRST0_EBIRST_Pos)
107
#define NUMAKER_USBH_RST ((0UL<<24) | SYS_IPRST0_USBHRST_Pos)
108
#define NUMAKER_CRC_RST ((0UL<<24) | SYS_IPRST0_CRCRST_Pos)
109
#define NUMAKER_CANFD0_RST ((0UL<<24) | SYS_IPRST0_CANFD0RST_Pos)
110
#define NUMAKER_CANFD1_RST ((0UL<<24) | SYS_IPRST0_CANFD1RST_Pos)
111
#define NUMAKER_CRPT_RST ((0UL<<24) | SYS_IPRST0_CRPTRST_Pos)
112
#define NUMAKER_GPIO_RST ((4UL<<24) | SYS_IPRST1_GPIORST_Pos)
113
#define NUMAKER_TMR0_RST ((4UL<<24) | SYS_IPRST1_TMR0RST_Pos)
114
#define NUMAKER_TMR1_RST ((4UL<<24) | SYS_IPRST1_TMR1RST_Pos)
115
#define NUMAKER_TMR2_RST ((4UL<<24) | SYS_IPRST1_TMR2RST_Pos)
116
#define NUMAKER_TMR3_RST ((4UL<<24) | SYS_IPRST1_TMR3RST_Pos)
117
#define NUMAKER_ACMP01_RST ((4UL<<24) | SYS_IPRST1_ACMP01RST_Pos)
118
#define NUMAKER_I2C0_RST ((4UL<<24) | SYS_IPRST1_I2C0RST_Pos)
119
#define NUMAKER_I2C1_RST ((4UL<<24) | SYS_IPRST1_I2C1RST_Pos)
120
#define NUMAKER_I2C2_RST ((4UL<<24) | SYS_IPRST1_I2C2RST_Pos)
121
#define NUMAKER_I3C0_RST ((4UL<<24) | SYS_IPRST1_I3C0RST_Pos)
122
#define NUMAKER_QSPI0_RST ((4UL<<24) | SYS_IPRST1_QSPI0RST_Pos)
123
#define NUMAKER_SPI0_RST ((4UL<<24) | SYS_IPRST1_SPI0RST_Pos)
124
#define NUMAKER_SPI1_RST ((4UL<<24) | SYS_IPRST1_SPI1RST_Pos)
125
#define NUMAKER_UART0_RST ((4UL<<24) | SYS_IPRST1_UART0RST_Pos)
126
#define NUMAKER_UART1_RST ((4UL<<24) | SYS_IPRST1_UART1RST_Pos)
127
#define NUMAKER_UART2_RST ((4UL<<24) | SYS_IPRST1_UART2RST_Pos)
128
#define NUMAKER_UART3_RST ((4UL<<24) | SYS_IPRST1_UART3RST_Pos)
129
#define NUMAKER_UART4_RST ((4UL<<24) | SYS_IPRST1_UART4RST_Pos)
130
#define NUMAKER_UART5_RST ((4UL<<24) | SYS_IPRST1_UART5RST_Pos)
131
#define NUMAKER_UART8_RST ((4UL<<24) | SYS_IPRST1_UART8RST_Pos)
132
#define NUMAKER_UART9_RST ((4UL<<24) | SYS_IPRST1_UART9RST_Pos)
133
#define NUMAKER_WWDT0_RST ((4UL<<24) | SYS_IPRST1_WWDT0RST_Pos)
134
#define NUMAKER_WWDT1_RST ((4UL<<24) | SYS_IPRST1_WWDT1RST_Pos)
135
#define NUMAKER_USBD_RST ((4UL<<24) | SYS_IPRST1_USBDRST_Pos)
136
#define NUMAKER_EADC0_RST ((4UL<<24) | SYS_IPRST1_EADC0RST_Pos)
137
#define NUMAKER_TRNG_RST ((4UL<<24) | SYS_IPRST1_TRNGRST_Pos)
138
#define NUMAKER_USCI0_RST ((8UL<<24) | SYS_IPRST2_USCI0RST_Pos)
139
#define NUMAKER_USCI1_RST ((8UL<<24) | SYS_IPRST2_USCI1RST_Pos)
140
#define NUMAKER_DAC0_RST ((8UL<<24) | SYS_IPRST2_DAC0RST_Pos)
141
#define NUMAKER_PWM0_RST ((8UL<<24) | SYS_IPRST2_PWM0RST_Pos)
142
#define NUMAKER_PWM1_RST ((8UL<<24) | SYS_IPRST2_PWM1RST_Pos)
143
#define NUMAKER_BPWM0_RST ((8UL<<24) | SYS_IPRST2_BPWM0RST_Pos)
144
#define NUMAKER_BPWM1_RST ((8UL<<24) | SYS_IPRST2_BPWM1RST_Pos)
145
#define NUMAKER_EQEI0_RST ((8UL<<24) | SYS_IPRST2_EQEI0RST_Pos)
146
#define NUMAKER_EQEI1_RST ((8UL<<24) | SYS_IPRST2_EQEI1RST_Pos)
147
#define NUMAKER_UART6_RST ((8UL<<24) | SYS_IPRST2_UART6RST_Pos)
148
#define NUMAKER_UART7_RST ((8UL<<24) | SYS_IPRST2_UART7RST_Pos)
149
#define NUMAKER_ECAP0_RST ((8UL<<24) | SYS_IPRST2_ECAP0RST_Pos)
150
#define NUMAKER_EADC1_RST ((8UL<<24) | SYS_IPRST2_EADC1RST_Pos)
151
#define NUMAKER_LLSI0_RST ((0x18UL<<24) | SYS_IPRST3_LLSI0RST_Pos)
152
#define NUMAKER_LLSI1_RST ((0x18UL<<24) | SYS_IPRST3_LLSI1RST_Pos)
153
#define NUMAKER_LLSI2_RST ((0x18UL<<24) | SYS_IPRST3_LLSI2RST_Pos)
154
#define NUMAKER_LLSI3_RST ((0x18UL<<24) | SYS_IPRST3_LLSI3RST_Pos)
155
#define NUMAKER_LLSI4_RST ((0x18UL<<24) | SYS_IPRST3_LLSI4RST_Pos)
156
#define NUMAKER_LLSI5_RST ((0x18UL<<24) | SYS_IPRST3_LLSI5RST_Pos)
157
#define NUMAKER_LLSI6_RST ((0x18UL<<24) | SYS_IPRST3_LLSI6RST_Pos)
158
#define NUMAKER_LLSI7_RST ((0x18UL<<24) | SYS_IPRST3_LLSI7RST_Pos)
159
#define NUMAKER_LLSI8_RST ((0x18UL<<24) | SYS_IPRST3_LLSI8RST_Pos)
160
#define NUMAKER_LLSI9_RST ((0x18UL<<24) | SYS_IPRST3_LLSI9RST_Pos)
161
#define NUMAKER_ELLSI0_RST ((0x18UL<<24) | SYS_IPRST3_ELLSI0RST_Pos)
162
#define NUMAKER_ELLSI1_RST ((0x18UL<<24) | SYS_IPRST3_ELLSI1RST_Pos)
163
164
/* End of M3351 BSP sys.h reset module copy */
165
167
169
171
172
#endif
zephyr
dt-bindings
reset
numaker_m335x_reset.h
Generated on
for Zephyr API Documentation by
1.16.1