Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32f411 otg fixes #697

Merged
merged 5 commits into from Apr 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -18,6 +18,7 @@ Family-specific:

* F4:
* Fix incorrect bit position for Ethernet MMCTIMR TGFM (#689)
* Fix OTG_FS registers

* F7:
* Add SDMMC2EN and SDMMC2RST to F765, F7x7, F7x9 (#662)
Expand Down
38 changes: 32 additions & 6 deletions devices/common_patches/usb_otg/otg_fs_fixes_v1.yaml
@@ -1,6 +1,24 @@
# For F401, F411

OTG_FS_GLOBAL:
GINTMSK:
_modify:
PRTIM:
access: read-write
GCCFG:
_add:
NOVBUSSENS:
description: Vbus sensing disable option
bitOffset: 21
bitWidth: 1

GRXSTSR_Host:
_delete:
- FRMNUM
_modify:
EPNUM:
name: CHNUM
description: Channel number
_add:
GRXSTSP_Device:
description: OTG status read and pop (device mode)
Expand All @@ -9,10 +27,6 @@ OTG_FS_GLOBAL:
resetValue: 0x00000000
access: read-only
fields:
STSPHST:
description: Status phase start
bitOffset: 27
bitWidth: 1
FRMNUM:
description: Frame number
bitOffset: 21
Expand All @@ -33,7 +47,6 @@ OTG_FS_GLOBAL:
description: Endpoint number
bitOffset: 0
bitWidth: 4

GRXSTSP_Host:
description: OTG status read and pop (host mode)
addressOffset: 0x20
Expand All @@ -58,8 +71,14 @@ OTG_FS_GLOBAL:
description: Channel number
bitOffset: 0
bitWidth: 4

_modify:
GRXSTSR_Host:
description: OTG status debug read (host mode)
addressOffset: 0x1C
size: 32
resetValue: 0x00000000
access: read-only
alternateRegister: FS_GRXSTSR_Device
GNPTXFSIZ_Device:
name: DIEPTXF0
displayName: DIEPTXF0
Expand All @@ -75,6 +94,13 @@ OTG_FS_GLOBAL:
description: OTF_FS device IN endpoint transmit FIFO size register


OTG_FS_HOST:
HCFG:
_modify:
FSLSS:
access: read-write


OTG_FS_DEVICE:
_array:
DIEPCTL[123]:
Expand Down