-
Notifications
You must be signed in to change notification settings - Fork 2k
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
drivers/usbdev_synopsys_dwc2: add EFM32 support #18756
drivers/usbdev_synopsys_dwc2: add EFM32 support #18756
Conversation
339f4a1
to
00c9a44
Compare
00c9a44
to
34a0082
Compare
Not much time for reviewing, but testing I can fit in, on stk3700 and a custom board.
|
I still have some work to do. I had to realize that the EFM32GG family does not have the USHFRCO clock that is used as USB_CLK on EFM32GG12B. That means we have to use different clock sources for different families 😟 |
Please squash this one |
`cpu/cortexm_common/include/cpu.h` has to be included in `cpu/efm32/periph_cpu.h` so that `PROVIDES_PM_SET_LOWEST` is defined if only `periph_cpu.h` is included. Otherwise `pm_set_lowest` is defined multiple times if the `pm_layered` module is not used. `PROVIDES_PM_OFF` has to be defined in case `pm_layered` is not used, e.g. in riotboot.
540e6a9
to
c6bae0b
Compare
Squashed and compiled successfully. |
@chrysn Is there a chance you could test it on your |
Tested with stk3700:
Confirming that this works on stk3700. Thanks a lot! |
@chrysn Many thanks for testing. |
What's missing to get all lights green? "bors merge" or "bors try" or anything else? |
bors merge |
Ah, and @jue89 has not cleared his review position. (Weird, I'd like to click "re-request review" but don't find the button). Juergen, are you happy with the responses to your earlier review? Please update it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK from my side. Everything has been addressed.
bors merge |
Already running a review |
Build succeeded: |
Thanks for reviewing and testing. |
Contribution description
This PR provides the changes for the Synopsys USB OTG IP core DWC2 driver for EFM32 MCUs. It also provides the changes of the board definition for
stk3600
andstk3700
for testing.Testing procedure
tests/usbus_hid
should work on the EFM32 boardsstk3600
(EFM32LG family) andstk3700
(EFM32GG family).It is already tested for a
sltb009a
board (EFM32GG12 family).Issues/PRs references