diff options
Diffstat (limited to 'firmware/target/arm/imx233')
-rw-r--r-- | firmware/target/arm/imx233/power-imx233.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/power-imx233.c b/firmware/target/arm/imx233/power-imx233.c index 479cba4430..0b395b3246 100644 --- a/firmware/target/arm/imx233/power-imx233.c +++ b/firmware/target/arm/imx233/power-imx233.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include "usb.h" | 26 | #include "usb.h" |
27 | #include "system-target.h" | 27 | #include "system-target.h" |
28 | #include "power-imx233.h" | 28 | #include "power-imx233.h" |
29 | #include "pinctrl-imx233.h" | ||
29 | 30 | ||
30 | struct current_step_bit_t | 31 | struct current_step_bit_t |
31 | { | 32 | { |
@@ -110,6 +111,12 @@ void power_off(void) | |||
110 | { | 111 | { |
111 | /* wait a bit, useful for the user to stop touching anything */ | 112 | /* wait a bit, useful for the user to stop touching anything */ |
112 | sleep(HZ / 2); | 113 | sleep(HZ / 2); |
114 | #ifdef SANSA_FUZEPLUS | ||
115 | /* This pin seems to be important to shutdown the hardware properly */ | ||
116 | imx233_set_pin_function(0, 9, PINCTRL_FUNCTION_GPIO); | ||
117 | imx233_enable_gpio_output(0, 9, true); | ||
118 | imx233_set_gpio_output(0, 9, true); | ||
119 | #endif | ||
113 | /* power down */ | 120 | /* power down */ |
114 | HW_POWER_RESET = HW_POWER_RESET__UNLOCK | HW_POWER_RESET__PWD; | 121 | HW_POWER_RESET = HW_POWER_RESET__UNLOCK | HW_POWER_RESET__PWD; |
115 | while(1); | 122 | while(1); |