1
0
Fork 0
forked from len0rd/rockbox

iriver: let the boot loader decide when to power on the hard drive

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7191 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-07-19 07:04:40 +00:00
parent 3c82b84d52
commit e8da7e6b15

View file

@ -64,9 +64,9 @@ void power_init(void)
or_l(0x00080000, &GPIO1_ENABLE); or_l(0x00080000, &GPIO1_ENABLE);
or_l(0x00080000, &GPIO1_FUNCTION); or_l(0x00080000, &GPIO1_FUNCTION);
#ifdef BOOTLOADER #ifndef BOOTLOADER
/* Hard drive power default = off in bootloader*/ /* The boot loader controls the power */
or_l(0x80000000, &GPIO_OUT); ide_power_enable(true);
#endif #endif
or_l(0x80000000, &GPIO_ENABLE); or_l(0x80000000, &GPIO_ENABLE);
or_l(0x80000000, &GPIO_FUNCTION); or_l(0x80000000, &GPIO_FUNCTION);