forked from len0rd/rockbox
when rebooting, de-init such that the coldstart detection would kick in again (fixes Rombox ATA problems when shutting off with charger)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3840 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
61750ac07d
commit
782e2370e8
1 changed files with 1 additions and 0 deletions
|
@ -306,6 +306,7 @@ void system_reboot (void)
|
||||||
|
|
||||||
asm volatile ("ldc\t%0,vbr" : : "r"(0));
|
asm volatile ("ldc\t%0,vbr" : : "r"(0));
|
||||||
|
|
||||||
|
PACR2 |= 0x4000; /* for coldstart detection */
|
||||||
IPRA = 0;
|
IPRA = 0;
|
||||||
IPRB = 0;
|
IPRB = 0;
|
||||||
IPRC = 0;
|
IPRC = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue