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

Added PLL7 (USB2 PLL) Support #170

Merged
merged 4 commits into from
Aug 5, 2024
Merged

Added PLL7 (USB2 PLL) Support #170

merged 4 commits into from
Aug 5, 2024

Conversation

tprice02
Copy link
Contributor

@tprice02 tprice02 commented Aug 4, 2024

PLL7 is required to use the secondary USB controller. PLL3 is only used for the primary USB controller.

I briefly read through the i.MX RT1060 specification and noticed no meaningful differences between the USB1 and USB2 PLLs. Assuming I haven't overseen anything, PLL7 should have an identical implementation as PLL3, with the only variation being the USB controller number in the register names.

PLL7 is required to use the secondary USB controller. PLL3 is only used for the primary USB controller.

I briefly read through the imxrt1060 specification to ensure that it was intended to be clocked identically. I can't imagine much else needs verification, as this addition seems relatively simple.
@mciantyre
Copy link
Member

PLL7 doesn't exist on the smaller i.MX RT MCUs, like the 1010 and 1020. That's why CI is failing.

Consider exporting PLL7 only when building for the 1060 MCUs. It might look similar to how we include and export PLL1 when building for the 1060.

@tprice02
Copy link
Contributor Author

tprice02 commented Aug 4, 2024

My mistake. Thanks for the pointers. Hopefully it's a bit better now.

Copy link
Member

@mciantyre mciantyre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good; thanks for adding this. LGTM, although I'm not testing on hardware. I'll release this in the 0.5 series.

@mciantyre mciantyre merged commit e004c18 into imxrt-rs:main Aug 5, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants