Skip to content

Commit c7b0697

Browse files
committed
Merge branch 'bugfix/fix_io_mux_reg_c61' into 'master'
fix(io_mux): Fix io_mux register on c61 See merge request espressif/esp-idf!40191
2 parents 1f4612e + ce75f77 commit c7b0697

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

components/soc/esp32c61/register/soc/io_mux_reg.h

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -121,130 +121,130 @@ extern "C" {
121121
#define FUNC_XTAL_32K_P_GPIO0_0 0
122122
#define FUNC_XTAL_32K_P_GPIO0 1
123123

124-
#define PERIPHS_IO_MUX_XTAL_32K_N_U (REG_IO_MUX_BASE + 0x0)
124+
#define PERIPHS_IO_MUX_XTAL_32K_N_U (REG_IO_MUX_BASE + 0x4)
125125
#define FUNC_XTAL_32K_N_GPIO1_0 0
126126
#define FUNC_XTAL_32K_N_GPIO1 1
127127

128-
#define PERIPHS_IO_MUX_GPIO2_U (REG_IO_MUX_BASE + 0x0)
128+
#define PERIPHS_IO_MUX_GPIO2_U (REG_IO_MUX_BASE + 0x8)
129129
#define FUNC_GPIO2_GPIO2_0 0
130130
#define FUNC_GPIO2_GPIO2 1
131131
#define FUNC_GPIO2_FSPIQ 2
132132

133133
// Strapping: Boot Mode select 0/SDIO input strapping
134-
#define PERIPHS_IO_MUX_MTMS_U (REG_IO_MUX_BASE + 0x0)
134+
#define PERIPHS_IO_MUX_MTMS_U (REG_IO_MUX_BASE + 0xc)
135135
#define FUNC_MTMS_MTMS 0
136136
#define FUNC_MTMS_GPIO3 1
137137
#define FUNC_MTMS_FSPIHD 2
138138

139139
// Strapping: Boot Mode select 1/SDIO output strapping
140-
#define PERIPHS_IO_MUX_MTDI_U (REG_IO_MUX_BASE + 0x0)
140+
#define PERIPHS_IO_MUX_MTDI_U (REG_IO_MUX_BASE + 0x10)
141141
#define FUNC_MTDI_MTDI 0
142142
#define FUNC_MTDI_GPIO4 1
143143
#define FUNC_MTDI_FSPIWP 2
144144

145-
#define PERIPHS_IO_MUX_MTCK_U (REG_IO_MUX_BASE + 0x0)
145+
#define PERIPHS_IO_MUX_MTCK_U (REG_IO_MUX_BASE + 0x14)
146146
#define FUNC_MTCK_MTCK 0
147147
#define FUNC_MTCK_GPIO5 1
148148

149-
#define PERIPHS_IO_MUX_MTDO_U (REG_IO_MUX_BASE + 0x0)
149+
#define PERIPHS_IO_MUX_MTDO_U (REG_IO_MUX_BASE + 0x18)
150150
#define FUNC_MTDO_MTDO 0
151151
#define FUNC_MTDO_GPIO6 1
152152
#define FUNC_MTDO_FSPICLK 2
153153

154154
// Strapping: JTAG select
155-
#define PERIPHS_IO_MUX_GPIO7_U (REG_IO_MUX_BASE + 0x0)
155+
#define PERIPHS_IO_MUX_GPIO7_U (REG_IO_MUX_BASE + 0x1c)
156156
#define FUNC_GPIO7_GPIO7_0 0
157157
#define FUNC_GPIO7_GPIO7 1
158158
#define FUNC_GPIO7_FSPID 2
159159

160160
// Strapping: Boot Mode select 2
161-
#define PERIPHS_IO_MUX_GPIO8_U (REG_IO_MUX_BASE + 0x0)
161+
#define PERIPHS_IO_MUX_GPIO8_U (REG_IO_MUX_BASE + 0x20)
162162
#define FUNC_GPIO8_GPIO8_0 0
163163
#define FUNC_GPIO8_GPIO8 1
164164
#define FUNC_GPIO8_FSPICS0 2
165165

166166
// Strapping: Boot Mode select 3
167-
#define PERIPHS_IO_MUX_GPIO9_U (REG_IO_MUX_BASE + 0x0)
167+
#define PERIPHS_IO_MUX_GPIO9_U (REG_IO_MUX_BASE + 0x24)
168168
#define FUNC_GPIO9_GPIO9_0 0
169169
#define FUNC_GPIO9_GPIO9 1
170170

171-
#define PERIPHS_IO_MUX_U0RXD_U (REG_IO_MUX_BASE + 0x0)
171+
#define PERIPHS_IO_MUX_U0RXD_U (REG_IO_MUX_BASE + 0x28)
172172
#define FUNC_U0RXD_U0RXD 0
173173
#define FUNC_U0RXD_GPIO10 1
174174

175-
#define PERIPHS_IO_MUX_U0TXD_U (REG_IO_MUX_BASE + 0x0)
175+
#define PERIPHS_IO_MUX_U0TXD_U (REG_IO_MUX_BASE + 0x2c)
176176
#define FUNC_U0TXD_U0TXD 0
177177
#define FUNC_U0TXD_GPIO11 1
178178

179-
#define PERIPHS_IO_MUX_GPIO12_U (REG_IO_MUX_BASE + 0x0)
179+
#define PERIPHS_IO_MUX_GPIO12_U (REG_IO_MUX_BASE + 0x30)
180180
#define FUNC_GPIO12_GPIO12_0 0
181181
#define FUNC_GPIO12_GPIO12 1
182182

183-
#define PERIPHS_IO_MUX_GPIO13_U (REG_IO_MUX_BASE + 0x0)
183+
#define PERIPHS_IO_MUX_GPIO13_U (REG_IO_MUX_BASE + 0x34)
184184
#define FUNC_GPIO13_GPIO13_0 0
185185
#define FUNC_GPIO13_GPIO13 1
186186

187-
#define PERIPHS_IO_MUX_SPICS1_U (REG_IO_MUX_BASE + 0x0)
187+
#define PERIPHS_IO_MUX_SPICS1_U (REG_IO_MUX_BASE + 0x38)
188188
#define FUNC_SPICS1_SPICS1 0
189189
#define FUNC_SPICS1_GPIO14 1
190190

191-
#define PERIPHS_IO_MUX_SPICS0_U (REG_IO_MUX_BASE + 0x0)
191+
#define PERIPHS_IO_MUX_SPICS0_U (REG_IO_MUX_BASE + 0x3c)
192192
#define FUNC_SPICS0_SPICS0 0
193193
#define FUNC_SPICS0_GPIO15 1
194194

195-
#define PERIPHS_IO_MUX_SPIQ_U (REG_IO_MUX_BASE + 0x0)
195+
#define PERIPHS_IO_MUX_SPIQ_U (REG_IO_MUX_BASE + 0x40)
196196
#define FUNC_SPIQ_SPIQ 0
197197
#define FUNC_SPIQ_GPIO16 1
198198

199-
#define PERIPHS_IO_MUX_SPIWP_U (REG_IO_MUX_BASE + 0x0)
199+
#define PERIPHS_IO_MUX_SPIWP_U (REG_IO_MUX_BASE + 0x44)
200200
#define FUNC_SPIWP_SPIWP 0
201201
#define FUNC_SPIWP_GPIO17 1
202202

203-
#define PERIPHS_IO_MUX_VDD_SPI_U (REG_IO_MUX_BASE + 0x0)
203+
#define PERIPHS_IO_MUX_VDD_SPI_U (REG_IO_MUX_BASE + 0x48)
204204
#define FUNC_VDD_SPI_GPIO18_0 0
205205
#define FUNC_VDD_SPI_GPIO18 1
206206

207-
#define PERIPHS_IO_MUX_SPIHD_U (REG_IO_MUX_BASE + 0x0)
207+
#define PERIPHS_IO_MUX_SPIHD_U (REG_IO_MUX_BASE + 0x4c)
208208
#define FUNC_SPIHD_SPIHD 0
209209
#define FUNC_SPIHD_GPIO19 1
210210

211-
#define PERIPHS_IO_MUX_SPICLK_U (REG_IO_MUX_BASE + 0x0)
211+
#define PERIPHS_IO_MUX_SPICLK_U (REG_IO_MUX_BASE + 0x50)
212212
#define FUNC_SPICLK_SPICLK 0
213213
#define FUNC_SPICLK_GPIO20 1
214214

215-
#define PERIPHS_IO_MUX_SPID_U (REG_IO_MUX_BASE + 0x0)
215+
#define PERIPHS_IO_MUX_SPID_U (REG_IO_MUX_BASE + 0x54)
216216
#define FUNC_SPID_SPID 0
217217
#define FUNC_SPID_GPIO21 1
218218

219-
#define PERIPHS_IO_MUX_SDIO_DATA2_U (REG_IO_MUX_BASE + 0x0)
219+
#define PERIPHS_IO_MUX_SDIO_DATA2_U (REG_IO_MUX_BASE + 0x58)
220220
#define FUNC_SDIO_DATA2_SDIO_DATA2 0
221221
#define FUNC_SDIO_DATA2_GPIO22 1
222222

223-
#define PERIPHS_IO_MUX_SDIO_DATA3_U (REG_IO_MUX_BASE + 0x0)
223+
#define PERIPHS_IO_MUX_SDIO_DATA3_U (REG_IO_MUX_BASE + 0x5c)
224224
#define FUNC_SDIO_DATA3_SDIO_DATA3 0
225225
#define FUNC_SDIO_DATA3_GPIO23 1
226226

227-
#define PERIPHS_IO_MUX_GPIO24_U (REG_IO_MUX_BASE + 0x0)
227+
#define PERIPHS_IO_MUX_GPIO24_U (REG_IO_MUX_BASE + 0x60)
228228
#define FUNC_GPIO24_GPIO24_0 0
229229
#define FUNC_GPIO24_GPIO24 1
230230

231-
#define PERIPHS_IO_MUX_SDIO_CMD_U (REG_IO_MUX_BASE + 0x0)
231+
#define PERIPHS_IO_MUX_SDIO_CMD_U (REG_IO_MUX_BASE + 0x64)
232232
#define FUNC_SDIO_CMD_SDIO_CMD 0
233233
#define FUNC_SDIO_CMD_GPIO25 1
234234

235-
#define PERIPHS_IO_MUX_SDIO_CLK_U (REG_IO_MUX_BASE + 0x0)
235+
#define PERIPHS_IO_MUX_SDIO_CLK_U (REG_IO_MUX_BASE + 0x68)
236236
#define FUNC_SDIO_CLK_SDIO_CLK 0
237237
#define FUNC_SDIO_CLK_GPIO26 1
238238

239-
#define PERIPHS_IO_MUX_SDIO_DATA0_U (REG_IO_MUX_BASE + 0x0)
239+
#define PERIPHS_IO_MUX_SDIO_DATA0_U (REG_IO_MUX_BASE + 0x6c)
240240
#define FUNC_SDIO_DATA0_SDIO_DATA0 0
241241
#define FUNC_SDIO_DATA0_GPIO27 1
242242

243-
#define PERIPHS_IO_MUX_SDIO_DATA1_U (REG_IO_MUX_BASE + 0x0)
243+
#define PERIPHS_IO_MUX_SDIO_DATA1_U (REG_IO_MUX_BASE + 0x70)
244244
#define FUNC_SDIO_DATA1_SDIO_DATA1 0
245245
#define FUNC_SDIO_DATA1_GPIO28 1
246246

247-
#define PERIPHS_IO_MUX_GPIO29_U (REG_IO_MUX_BASE + 0x0)
247+
#define PERIPHS_IO_MUX_GPIO29_U (REG_IO_MUX_BASE + 0x74)
248248
#define FUNC_GPIO29_GPIO29_0 0
249249
#define FUNC_GPIO29_GPIO29 1
250250

0 commit comments

Comments
 (0)