soc: mimxrt1180: Add USB support
This was tested on the MIMXRT1180 EVK board Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
parent
c3533472c1
commit
85bdab00de
8 changed files with 81 additions and 6 deletions
|
@ -494,6 +494,13 @@ static ALWAYS_INLINE void clock_init(void)
|
|||
|
||||
#endif /* CONFIG_DT_HAS_NXP_MCUX_I3C_ENABLED */
|
||||
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(usb1)) && CONFIG_UDC_NXP_EHCI
|
||||
CLOCK_EnableUsbhs0PhyPllClock(kCLOCK_Usb480M,
|
||||
DT_PROP_BY_PHANDLE(DT_NODELABEL(usb1), clocks, clock_frequency));
|
||||
CLOCK_EnableUsbhs0Clock(kCLOCK_Usb480M,
|
||||
DT_PROP_BY_PHANDLE(DT_NODELABEL(usb1), clocks, clock_frequency));
|
||||
#endif
|
||||
|
||||
/* Keep core clock ungated during WFI */
|
||||
CCM->LPCG[1].LPM0 = 0x33333333;
|
||||
CCM->LPCG[1].LPM1 = 0x33333333;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue