SPRUJ55D September 2023 – July 2025 AM263P2 , AM263P2-Q1 , AM263P4 , AM263P4-Q1
(FREQ = 133MHz, note – ROM is utilizing OSPI0 @ 33 or 50MHz so program the GCD correspondingly)
Program OSPI0 GCD register with the value of 0x222 in-order to switch to a new desired frequency, MSS_RCM.OSPI0_CLK_DIV_VAL.CLKDIV = 0x222
Poll for the CURRDIVR field of corresponding status register to reflect its new frequency change, MSS_RCM.OSPI0_CLK_STATUS.CURRDIVIDER = 0x2
Update the OSPI0 GCM register with the value of 0x444 to select PLL_CORE_CLKOUT0 clock as its source, MSS_RCM.OSPI0_CLK_SRC_SEL.CLKSRCSEL = 0x444
Poll for the CLKINUSE field of corresponding status register to reflect its new frequency change, MSS_RCM.OSPI0_CLK_STATUS.CLKINUSE = 0x10
Baud rate relationship with OSPI functional clock frequency:
Baud rate = fOSPI / DCLK_DIV