a side effect in usb_enable() (writing back a "1" while reading a pulled-up input) masked a bug in power_init(), it would have turned off the disk with flash start. Became appearing while converting port access to and_b(), which touches only one byte.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4027 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7ec1c45d79
commit
d9d63560fe
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ void power_init(void)
|
|||
charger_enable(false); /* Default to charger OFF */
|
||||
#endif
|
||||
#ifdef HAVE_ATA_POWER_OFF
|
||||
or_b(0x20, &PADRL); /* leave the disk on */
|
||||
or_b(0x20, &PAIORL);
|
||||
PACR2 &= 0xFBFF;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue