-
Notifications
You must be signed in to change notification settings - Fork 8.2k
usb: sam0: Add support for SAME54 #20052
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
Conversation
|
All checks passed. checkpatch (informational only, not a failure)Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
jfischer-no
left a comment
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.
Please split it in three commits: changes for PAD? settings, changes for clock setup, and changes for IRQ connect and enable.
Newer SoCs like SAME54 have multiple IRQs for the USB peripheral. Automatically enable all IRQs configured in the DTS. Signed-off-by: Benjamin Valentin <[email protected]>
On newer sam0 SoCs peripherals are enabled through the MCLK instead of the PM register. Use the MCLK register if it's availiable. Signed-off-by: Benjamin Valentin <[email protected]>
Newer SoCs like SAME54 provide dedicated registers to store the USB trim configuration. Use those registers if they are defined in ASF to access the calibration data. Signed-off-by: Benjamin Valentin <[email protected]>
|
Ok, I've split up the commit. |
The USB peripheral is the same as in previous SAM0 MCUs, but the clock setup is different.
split off from #14685