diff options
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/power-imx31.c')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/power-imx31.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/power-imx31.c b/firmware/target/arm/imx31/gigabeat-s/power-imx31.c index 62f9982dd5..de7f5800e6 100644 --- a/firmware/target/arm/imx31/gigabeat-s/power-imx31.c +++ b/firmware/target/arm/imx31/gigabeat-s/power-imx31.c | |||
@@ -81,9 +81,18 @@ bool ide_powered(void) | |||
81 | 81 | ||
82 | void power_off(void) | 82 | void power_off(void) |
83 | { | 83 | { |
84 | /* Cut backlight */ | ||
85 | _backlight_off(); | ||
86 | |||
87 | /* Let it fade */ | ||
88 | sleep(5*HZ/4); | ||
89 | |||
90 | /* Set user off mode */ | ||
84 | mc13783_set(MC13783_POWER_CONTROL0, MC13783_USEROFFSPI); | 91 | mc13783_set(MC13783_POWER_CONTROL0, MC13783_USEROFFSPI); |
85 | 92 | ||
93 | /* Wait for power cut */ | ||
86 | disable_interrupt(IRQ_FIQ_STATUS); | 94 | disable_interrupt(IRQ_FIQ_STATUS); |
95 | |||
87 | while (1); | 96 | while (1); |
88 | } | 97 | } |
89 | 98 | ||