Skip to content

Commit 104048c

Browse files
committed
more field access
1 parent 723e751 commit 104048c

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

devices/patches/usb_otg/fs_l4+_device.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ DCTL:
1111
description: Deep sleep BESL reject
1212
bitOffset: 18
1313
bitWidth: 1
14+
access: read-write
1415

1516
DSTS:
1617
_add:
@@ -47,14 +48,17 @@ DIEPINT?:
4748
description: IN token received with EP mismatch
4849
bitOffset: 5
4950
bitWidth: 1
51+
access: read-write
5052
PKTDRPSTS:
5153
description: Packet dropped status
5254
bitOffset: 11
5355
bitWidth: 1
56+
access: read-write
5457
NAK:
5558
description: NAK input
5659
bitOffset: 13
5760
bitWidth: 1
61+
access: read-write
5862

5963
DOEPINT?:
6064
_delete:

devices/patches/usb_otg/fs_l4+_global.yaml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,38 +88,47 @@ GCCFG:
8888
description: Data contact detection (DCD) status
8989
bitOffset: 0
9090
bitWidth: 1
91+
access: read-only
9192
PDET:
9293
description: Primary detection (PD) status
9394
bitOffset: 1
9495
bitWidth: 1
96+
access: read-only
9597
SDET:
9698
description: Secondary detection (SD) status
9799
bitOffset: 2
98100
bitWidth: 1
101+
access: read-only
99102
PS2DET:
100103
description: DM pull-up detection status
101104
bitOffset: 3
102105
bitWidth: 1
106+
access: read-only
103107
BCDEN:
104108
description: Battery charging detector (BCD) enable
105109
bitOffset: 17
106110
bitWidth: 1
111+
access: read-write
107112
DCDEN:
108113
description: Data contact detection (DCD) mode enable
109114
bitOffset: 18
110115
bitWidth: 1
116+
access: read-write
111117
PDEN:
112118
description: Primary detection (PD) mode enable
113119
bitOffset: 19
114120
bitWidth: 1
121+
access: read-write
115122
SDEN:
116123
description: Secondary detection (SD) mode enable
117124
bitOffset: 20
118125
bitWidth: 1
126+
access: read-write
119127
VBDEN:
120128
description: USB VBUS detection enable
121129
bitOffset: 21
122130
bitWidth: 1
131+
access: read-write
123132

124133
GRXSTSR_Device:
125134
_add:
@@ -145,66 +154,81 @@ _add:
145154
description: LPM support enable
146155
bitOffset: 0
147156
bitWidth: 1
157+
access: read-write
148158
LPMACK:
149159
description: LPM token acknowledge enable
150160
bitOffset: 1
151161
bitWidth: 1
162+
access: read-write
152163
BESL:
153164
description: Best effort service latency
154165
bitOffset: 2
155166
bitWidth: 4
167+
access: read-write
156168
REMWAKE:
157169
description: bRemoteWake value
158170
bitOffset: 6
159171
bitWidth: 1
172+
access: read-write
160173
L1SSEN:
161174
description: L1 Shallow Sleep enable
162175
bitOffset: 7
163176
bitWidth: 1
177+
access: read-write
164178
BESLTHRS:
165179
description: BESL threshold
166180
bitOffset: 8
167181
bitWidth: 4
182+
access: read-write
168183
L1DSEN:
169184
description: L1 deep sleep enable
170185
bitOffset: 12
171186
bitWidth: 1
187+
access: read-write
172188
LPMRSP:
173189
description: LPM response
174190
bitOffset: 13
175191
bitWidth: 2
192+
access: read-only
176193
SLPSTS:
177194
description: Port sleep status
178195
bitOffset: 15
179196
bitWidth: 1
197+
access: read-only
180198
L1RSMOK:
181199
description: Sleep state resume OK
182200
bitOffset: 16
183201
bitWidth: 1
202+
access: read-only
184203
LPMCHIDX:
185204
description: LPM Channel Index
186205
bitOffset: 17
187206
bitWidth: 4
188-
PMRCNT:
207+
access: read-write
208+
LPMRCNT:
189209
description: LPM retry count
190210
bitOffset: 21
191211
bitWidth: 3
192212
SNDLPM:
193213
description: Send LPM transaction
194214
bitOffset: 24
195215
bitWidth: 1
216+
access: read-write
196217
LPMRCNTSTS:
197218
description: LPM retry count status
198219
bitOffset: 25
199220
bitWidth: 3
221+
access: read-only
200222
ENBESL:
201223
description: Enable best effort service latency
202224
bitOffset: 28
203225
bitWidth: 1
226+
access: read-write
204227
GPWRDN:
205228
description: OTG power down register
206229
addressOffset: 0x58
207230
resetValue: 0x0
231+
access: read-write
208232
fields:
209233
ADPMEN:
210234
description: ADP module enable
@@ -223,59 +247,74 @@ _add:
223247
description: Probe discharge
224248
bitOffset: 0
225249
bitWidth: 2
250+
access: read-write
226251
PRBDELTA:
227252
description: Probe delta
228253
bitOffset: 2
229254
bitWidth: 2
255+
access: read-write
230256
PRBPER:
231257
description: Probe period
232258
bitOffset: 0
233259
bitWidth: 4
260+
access: read-write
234261
RTIM:
235262
description: Ramp time
236263
bitOffset: 6
237264
bitWidth: 11
265+
access: read-only
238266
ENAPRB:
239267
description: Enable probe
240268
bitOffset: 17
241269
bitWidth: 1
270+
access: read-write
242271
ENASNS:
243272
description: Enable sense
244273
bitOffset: 18
245274
bitWidth: 1
275+
access: read-write
246276
ADPRST:
247277
description: ADP reset
248278
bitOffset: 19
249279
bitWidth: 1
280+
access: read-write
250281
ADPEN:
251282
description: ADP enable
252283
bitOffset: 20
253284
bitWidth: 1
285+
access: read-write
254286
ADPPRBIF:
255287
description: ADP probe interrupt flag
256288
bitOffset: 21
257289
bitWidth: 1
290+
access: read-write
258291
ADPSNSIF:
259292
description: ADP sense interrupt flag
260293
bitOffset: 22
261294
bitWidth: 1
295+
access: read-write
262296
ADPTOIF:
263297
description: ADP timeout interrupt flag
264298
bitOffset: 23
265299
bitWidth: 1
300+
access: read-write
266301
ADPPRBIM:
267302
description: ADP probe interrupt mask
268303
bitOffset: 24
269304
bitWidth: 1
305+
access: read-write
270306
ADPSNSIM:
271307
description: ADP sense interrupt mask
272308
bitOffset: 25
273309
bitWidth: 1
310+
access: read-write
274311
ADPTOIM:
275312
description: ADP timeout interrupt mask
276313
bitOffset: 26
277314
bitWidth: 1
315+
access: read-write
278316
AR:
279317
description: Access request
280318
bitOffset: 27
281319
bitWidth: 2
320+
access: read-write

devices/patches/usb_otg/fs_l4+_pwrclk.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ PCGCCTL:
44
description: Enable sleep clock gating
55
bitOffset: 5
66
bitWidth: 1
7+
access: read-write
78
PHYSLEEP:
89
description: PHY in Sleep
910
bitOffset: 6
1011
bitWidth: 1
12+
access: read-only
1113
SUSP:
1214
description: Deep Sleep
1315
bitOffset: 7
1416
bitWidth: 1
17+
access: read-only

0 commit comments

Comments
 (0)