yindian / dingoo-linux

Automatically exported from code.google.com/p/dingoo-linux
0 stars 0 forks source link

Poweroff doesn't work #36

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
See
http://a320.freeforums.org/the-official-linux-development-thread-t413-360.html#p
9433

linux-2.6.24.3/arch/mips/jz4740/reset.c

    void jz_power_off(void)
    {
       __rtc_clear_alarm_flag();
       __rtc_clear_hib_stat_all();
       __rtc_enable_alarm_wakeup();
       __rtc_set_hrcr_val(0xfe0);
       __rtc_set_hwfcr_val((0xFFFF << 4));
       __rtc_power_down();
       while(1);
    }

Original issue reported on code.google.com by igga...@gmail.com on 4 Sep 2009 at 11:54

GoogleCodeExporter commented 8 years ago
vimrc has reported that solution works. Details on:

http://a320.freeforums.org/poweroff-shutdown-code-in-zimage-t1325.html

Original comment by keres...@gmail.com on 7 Oct 2009 at 12:32

GoogleCodeExporter commented 8 years ago
Taken from the uCOS-II Ingenic code. Need to open the A320 and verify that 
power is
actually turned off and thus it is a REAL poweroff (and also check power 
consumption
compared to original firmware poweroff). Don't want to get the users to think 
they're
properly powering off their A320s from dingux and have nasty battery surprises.

Original comment by igga...@gmail.com on 7 Oct 2009 at 7:58