Sorry if this is a duplicate. I realized that something has changed here and my old account didn't have email 'verified' and I couldn't find out how to send the 'verify email' - mail so I couldn't reply to the my own message.
First of all, I did check the old messages, but seemed that they were all something else than iMX6SX processor. Thus the question.
We have iMX6SX based product has has some problems passing EMC. We determined that slowing DDR from 400MHz to 316MHz would move the peaks enough that harmonics won't cause problem anymore.
Now the actual problem. I have excel sheet for iMX6SX that calculates the initialization values for DDR3. Problem with that is that the ddr clock is fixed at 400MHz and can't be changed. We had similar excel for iMX53 and there you could change the ddr clock too.
I did some digging from reference manual and find that from register CCM_CBCMR(0x020C 4018) you can select PFD2 by changing the PRE_PERIPH2_CLK_SEL field to 0b01. Then you can change the value in the CCM_ANALOG_PFD_528n(0x020C 8100) change the PFD2_FRAC from 0b011000 to 0b011100 (24 -> 30). I added both those writes to DCD in u-boot.
Well, the device didn't boot after that (I was bit suspecting that) so I assume that is not how you do it or I need to do something else.
Question is that how do I do that frequency change or is there updated version of that excel that supports ddr freq change as well?