SPRUJB6B November 2024 – May 2025 AM2612
(FREQ = 133MHz, note – ROM is utilizing OSPI0 @ 33 or 50MHz so program the GCD correspondingly)
Program OSPIx GCD register with the value of 0x000 in-order to switch to a new desired frequency, MSS_RCM.OSPIx_CLK_DIV_VAL.CLKDIV = 0x000
Poll for the CURRDIVR field of corresponding status register to reflect its new frequency change, MSS_RCM.OSPIx_CLK_STATUS.CURRDIVIDER = 0x0
Update the OSPIx GCM register with the value of 0x666 to select PLL_CORE_CLKOUT3 clock as its source, MSS_RCM.OSPIx_CLK_SRC_SEL.CLKSRCSEL = 0x666
Poll for the CLKINUSE field of corresponding status register to reflect its new frequency change, MSS_RCM.OSPIx_CLK_STATUS.CLKINUSE = 0x40
Program DCLK_DIV field from the SPI_CLOCK_CNTRL register in MSS_OSPIx memory map with the value of 0x00, MSS_OSPIx.SPI_CLOCK_CNTRL.DCLK_DIV = 0x00
Baud rate relationship with OSPI functional clock frequency:
Baud rate = fOSPI / DCLK_DIV