I am working on Vybrid TWRVF65GS10 board and my code reside in internal RAM. I had initialized the SDRAM (0x80000000) successfully. Now I want to disable DDR but could not. Here is my sequence.
1. Disable Clock Gating WRITE32(0x4006B058, READ32(0x4006B058) & 0xCFFFFFFF); // Disable DDR Clock Gating 6_14
2. Reset IOMUX settings to their reset values. i.e. Reset Value is 0x10060 and Write this value in all IOMUX registers ranges [21C-2E0]
After this, if I write a value 0xdeadbeef to a address 0x8000000, It is read back (Value should be not be written because DDR should be closed after these two steps.).
What is missing in my settings?