mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
I need to overwork this - sorry
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16318 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
868fcce96c
commit
55e7f11c44
1 changed files with 0 additions and 16 deletions
|
|
@ -59,22 +59,6 @@ void charger_enable(bool on)
|
||||||
|
|
||||||
void power_off(void)
|
void power_off(void)
|
||||||
{
|
{
|
||||||
/* 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;
|
|
||||||
|
|
||||||
/* Shutdown: stop XIN oscillator */
|
|
||||||
CLKCTRL &= ~(1 << 31);
|
|
||||||
|
|
||||||
/* Halt everything and wait for device to power off */
|
|
||||||
while (1)
|
|
||||||
{
|
|
||||||
CPU_CTL = PROC_SLEEP;
|
|
||||||
COP_CTL = PROC_SLEEP;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ide_power_enable(bool on)
|
void ide_power_enable(bool on)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue