forked from len0rd/rockbox
mrobe 100: (1) device reset in system_init is same as H10. (2) make power_off actually work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16203 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
91a503b23e
commit
06daa03630
2 changed files with 11 additions and 6 deletions
|
|
@ -55,8 +55,13 @@ bool ide_powered(void)
|
|||
|
||||
void power_off(void)
|
||||
{
|
||||
/* Give things a second to settle before cutting power */
|
||||
sleep(HZ);
|
||||
|
||||
//GPIOF_OUTPUT_VAL &=~ 0x20;
|
||||
/* Disable interrupts on this core */
|
||||
set_interrupt_status(IRQ_FIQ_DISABLED, IRQ_FIQ_STATUS);
|
||||
|
||||
/* Mask them on both cores */
|
||||
CPU_INT_CLR = -1;
|
||||
COP_INT_CLR = -1;
|
||||
|
||||
while (1)
|
||||
GPIOB_OUTPUT_VAL |= 0x80;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue