diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-04-12 16:56:45 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-04-12 16:56:45 +0000 |
commit | a7af9e4a7f25f5a32306c74e95a677e6c85f399e (patch) | |
tree | 5df60e8382b69cf943840852269ea9387d42ea46 /firmware/target/arm/imx31/gigabeat-s/power-imx31.c | |
parent | ddfd787c54d78104dac4ed144ff6cb6df8617a0e (diff) |
Add GPIO manager. Get the PMIC interrupt handling working (along with power button and HP detect). Add some reg field defined instead of using raw numbers. Add PMIC info to debug ports screen. Refine PMIC driver ops a little bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17086 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/power-imx31.c')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/power-imx31.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/power-imx31.c b/firmware/target/arm/imx31/gigabeat-s/power-imx31.c index c739a19cba..f57c55a70b 100644 --- a/firmware/target/arm/imx31/gigabeat-s/power-imx31.c +++ b/firmware/target/arm/imx31/gigabeat-s/power-imx31.c @@ -17,14 +17,12 @@ * ****************************************************************************/ #include "config.h" -#include "cpu.h" -#include <stdbool.h> -#include "kernel.h" #include "system.h" #include "power.h" -#include "pcf50606.h" #include "backlight.h" #include "backlight-target.h" +#include "avic-imx31.h" +#include "mc13783.h" #ifndef SIMULATOR @@ -54,6 +52,10 @@ bool ide_powered(void) void power_off(void) { + mc13783_set(MC13783_POWER_CONTROL0, MC13783_USEROFFSPI); + + disable_interrupt(IRQ_FIQ_STATUS); + while (1); } #else /* SIMULATOR */ |