After using the clock config tool on OM13098 dev board (LPC546xx), I got the following values for USB PLL.
/*!< Set up USB PLL */
const usb_pll_setup_t usb_pllSetup = {
.msel = 15U,
.nsel = 0U,
.psel = 0U,
.direct = false,
.bypass = false,
.fbsel = false,
.inputRate = 12000000U,
};
CLOCK_SetUsbPLLFreq(&usb_pllSetup); /*!< Configure PLL to the desired value */
I expected these values to match the ones in CLOCK_EnableUsbhs0HostClock() in fsl_clock.c but they don't. Here are the values from CLOCK_EnableUsbhs0HostClock():
usb_pll_setup_t pll_setup = { 0x3FU, 0x01U, 0x03U, false, false, false, 12000000U };
CLOCK_SetUsbPLLFreq(&pll_setup);
Can I trust the values from the clock config tool? Is there a reason to use USB_N_DIV of 4 and USB_M_MULT of 64 in CLOCK_EnableUsbhs0HostClock()? Any advice would be greatly appreciated.