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.

wake up from deep sleep using external signal on OMAP-L138

Other Parts Discussed in Thread: DA8XX

Hi,

          I enabled deepsleep from external signal by declaring the pin as trigger from external signal(i.e by changing mux register in linux kernel code). Enabled deep sleep as given in the following code.

int da850_register_pm(struct platform_device *pdev)
{
    ........................
    pdata->deepsleep_reg = DA8XX_SYSCFG1_VIRT(DA8XX_DEEPSLEEP_REG);

    /************added this function***************/
    __raw_writel(0x8000ffff, pdata->deepsleep_reg);  //to make SLEEPENABLE=1

...........

}

I have seen that OMAP goes into deep sleep mode on giving low to DEEPSLEEP pin by observing on power supply(As its current is decreased)  and come back from deep sleep mode after giving high on DEEPSLEEP pin by observing on power supply(As its current is again increased). I try to give commands, but OMAP is not accepting any command on Putty Terminal. i am not sure,whether OMAP comes out from deep sleep mode to functional condition. I have seen forum, but no one is giving any information about setting of DEEP SLEEP mode.

Do i need to write any special code to enter and exit from deep sleep mode from external or will linux itself take care? I am using Linux kernel  Linux-2.6.37+.

Kindly help to bring the omap from deep sleep mode into working condition.

Thanks.