This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Power domain disable does not affect PDSTAT register

Other Parts Discussed in Thread: 66AK2H14

Hi,

I am using EVMK2H and trying to disable power of DDR3 that is PD 16. I am following SPRUGV4C as reference and did try to disable power using following code snippet. but my PDSTAT reigster that is at 0x02350240 shows 0x301 that power is enabled. What am I doing wrong?

1
2
3
4
5
6
7
8
9
mdctl = ( unsigned int* )(PSC_MDCTL_BASE + ( 4 * 24 ));
mdstat = ( unsigned int* )( PSC_MDSTAT_BASE + ( 4 * 24 ));
pdctl = ( unsigned int* )(PSC_PDCTL_BASE + ( 4 * 16 ));
GEL_TextOut("Power disable start of DDR3 .\n");
while (PSC_PTSTAT & (0x1 << 16) != 0 );
*pdctl = (*pdctl) & 0xfffffffe;
PSC_PTCMD = (PSC_PTCMD) | (0x1<<16);
while (PSC_PTSTAT & (0x1 << 16) != 0 );
GEL_TextOut("Power disable end of DDR3.\n");