SPRUJ17H March 2022 – October 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
(FREQ = 80 MHz, note – ROM is utilizing QSPI @ 40 MHz so program the GCD correspondingly)
Program QSPI GCD register with the value of 0x444 in-order to switch to a new desired frequency, MSS_RCM.QSPI_CLK_DIV_VAL.CLKDIV = 0x444
Poll for the CURRDIVR field of corresponding status register to reflect its new frequency change, MSS_RCM.QSPI_CLK_STATUS.CURRDIVIDER = 0x4
Update the QSPI GCM register with the value of 0x444 to select PLL_CORE_CLKOUT0 clock as its source, MSS_RCM.QSPI_CLK_SRC_SEL.CLKSRCSEL = 0x444
Poll for the CLKINUSE field of corresponding status register to reflect its new frequency change, MSS_RCM.QSPI_CLK_STATUS.CLKINUSE = 0x10
Program DCLK_DIV field from the SPI_CLOCK_CNTRL register in MSS_QSPI memory map with the value of 0x00, MSS_QSPI.SPI_CLOCK_CNTRL.DCLK_DIV = 0x00
Baud rate relationship with QSPI functional clock frequency:
Baud rate = fQSPI / DCLK_DIV