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:
parent
3c82b84d52
commit
e8da7e6b15
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue