SPRUJ17H March 2022 – October 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
Program SYS CLK GCD register with the value of 0x111 in-order to switch to a new desired frequency, TOP_RCM.SYS_CLK_DIV_VAL.CLKDIV = 0x111
Poll for the CURRDIVR field of corresponding status register to reflect its new frequency change, TOP_RCM.SYS_CLK_STATUS. CURRDIVIDER = 0x1
If the R5 clock frequency needs to be same as SYS clock frequency, then program the TOP_RCM.R5SS0_CLK_DIV_SEL.CLKDIVSEL = 0x7 (or / and) TOP_RCM.R5SS1_CLK_DIV_SEL.CLKDIVSEL = 0x7 register(s) as required or else leave with default value of 0x0 without any programming
After the divider configuration, update the R5SS GCM register with the value of 0x222 to select the PLL_CORE_CLOCKOUT0 as its source, TOP_RCM.R5SS_CLK_SRC_SEL.CLKSRCSEL= 0x222
Poll for the CLKINUSE field of corresponding status register to reflect its new frequency change, TOP_RCM.R5SS_CLK_STATUS.CLKINUSE = 0x04