diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/pbell/vibe500/power-vibe500.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/firmware/target/arm/pbell/vibe500/power-vibe500.c b/firmware/target/arm/pbell/vibe500/power-vibe500.c index 45ab7fb1fd..b345a9b5d0 100644 --- a/firmware/target/arm/pbell/vibe500/power-vibe500.c +++ b/firmware/target/arm/pbell/vibe500/power-vibe500.c | |||
@@ -55,7 +55,7 @@ void power_init(void) | |||
55 | ClipZifnoFinger=0,DisableDeceleration=0,Dribble=0. | 55 | ClipZifnoFinger=0,DisableDeceleration=0,Dribble=0. |
56 | MEP parameter 0x21 - Enhanced Operating Configuration */ | 56 | MEP parameter 0x21 - Enhanced Operating Configuration */ |
57 | touchpad_set_parameter(0x21,0x0008); | 57 | touchpad_set_parameter(0x21,0x0008); |
58 | /* Set the GPO_LEVEL = 0 - for the button lights */ | 58 | /* Set the GPO_LEVELS = 0 - for the button lights */ |
59 | touchpad_set_parameter(0x23,0x0000); | 59 | touchpad_set_parameter(0x23,0x0000); |
60 | 60 | ||
61 | /* Sound unmute (on) */ | 61 | /* Sound unmute (on) */ |
@@ -94,22 +94,21 @@ bool ide_powered(void) | |||
94 | 94 | ||
95 | void power_off(void) | 95 | void power_off(void) |
96 | { | 96 | { |
97 | /* from the OF */ | ||
98 | /* | ||
99 | DEV_INIT2 |= DEV_I2S; | ||
100 | GPIO_SET_BITWISE(GPIOL_OUTPUT_VAL, 0x10); | ||
101 | sleep(HZ/100); | ||
102 | GPIO_SET_BITWISE(GPIOL_OUTPUT_VAL, 0x10); | ||
103 | sleep(HZ); | ||
104 | GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x80); | ||
105 | sleep(HZ); | ||
106 | GPIO_CLEAR_BITWISE(GPIOC_OUTPUT_VAL, 0x08); | ||
107 | GPO32_VAL |= 0x40000000; | ||
108 | GPO32_ENABLE |= 0x40000000; | ||
109 | */ | ||
110 | /* Sound mute (off) */ | 97 | /* Sound mute (off) */ |
111 | DEV_INIT2 |= DEV_I2S; | 98 | DEV_INIT2 |= DEV_I2S; |
112 | GPIO_SET_BITWISE(GPIOL_OUTPUT_VAL, 0x10); | 99 | GPIO_SET_BITWISE(GPIOL_OUTPUT_VAL, 0x10); |
113 | /* shutdown bit */ | 100 | /* shutdown bit */ |
114 | GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x80); | 101 | GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x80); |
102 | /* button lights off */ | ||
103 | touchpad_set_parameter(0x22,0x0000); | ||
104 | /* ATA power off */ | ||
105 | ide_power_enable(false); | ||
106 | /* ? - in the OF */ | ||
107 | GPO32_VAL |= 0x40000000; | ||
108 | GPO32_ENABLE |= 0x40000000; | ||
109 | /* lcd controller off ? - makes lcd white until power on */ | ||
110 | GPIO_CLEAR_BITWISE(GPIOJ_OUTPUT_VAL, 0x04); | ||
111 | /* a way to poweroff while charging = system_reset */ | ||
112 | if (power_input_status()) | ||
113 | system_reboot(); | ||
115 | } | 114 | } |