There's a silicon bug that requires the register at 0x01c41a20 needs to
be cleared first thing. This code is already in the u-boot that we
supplied. Check the latest version at www.ti.com/dvevmupdates.
Regards,
Loc

--------------------------------------------------------
Message: 1
Date: Mon, 06 Nov 2006 17:23:02 +0800
From: "taruna54 taruna54" <[EMAIL PROTECTED]>
Subject: Resetting/restarting davinci
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; format=flowed

Dear all,

I have problem on implementing software reset on Davinci.
I made modification to my boot loader to implement reset..
basically using watch dog timer..
So, I use this code:

do_reset()
{
    disable_interrupts ();

    // watchdog timer enabling sequence
    wdt_timer->tgcr  = 0xB;          // timmode = 2h, tim12rs = 1h,
tim34rs 
= 1h
    wdt_timer->wdtcr = 0xA5C64000;   // WDEN = 1, wdkey = A5C6h
    wdt_timer->wdtcr = 0xDA7E4000;   // WDEN = 1, wdkey = DA7Eh

    while (1);      // loop until reboot
    /* will not reach this line */
    return (0);
}


It seemed ok at first, the board restart, but then the davinci will
stuck on 
waiting for power transition to finish (reading on PSC_PTSTAT
register).. 
More specifically, it's on the following line:

          /* start the state transition for modules in ALWAYSON power
domain 
*/
          *(volatile unsigned int*) PTCMD = 1;
          /* Wait for PTSTAT.GOSTAT0 to clear to 0x0 */
          while(! (((*(volatile unsigned int*) PTSTAT ) & 0x00000001) ==
0));   
   // never stop..

Anybody has an idea? Is using watchdog timer to reset davinci will be a
good 
idea?

Many thanks,

Ari


_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to