diff options
Diffstat (limited to 'firmware/target/arm/pbell')
-rw-r--r-- | firmware/target/arm/pbell/vibe500/backlight-vibe500.c | 9 | ||||
-rw-r--r-- | firmware/target/arm/pbell/vibe500/power-vibe500.c | 12 |
2 files changed, 17 insertions, 4 deletions
diff --git a/firmware/target/arm/pbell/vibe500/backlight-vibe500.c b/firmware/target/arm/pbell/vibe500/backlight-vibe500.c index 727370633b..321484cd9a 100644 --- a/firmware/target/arm/pbell/vibe500/backlight-vibe500.c +++ b/firmware/target/arm/pbell/vibe500/backlight-vibe500.c | |||
@@ -64,16 +64,16 @@ void _buttonlight_on(void) | |||
64 | { | 64 | { |
65 | if (!buttonlight_status) | 65 | if (!buttonlight_status) |
66 | { | 66 | { |
67 | touchpad_set_buttonlights(0x0f, 0); | 67 | touchpad_set_parameter(0x22, 0x000f); /* 0x22 - GPO_ENABLE */ |
68 | buttonlight_status = 1; | 68 | buttonlight_status = 1; |
69 | } | 69 | } |
70 | } | 70 | } |
71 | 71 | ||
72 | void _buttonlight_off(void) | 72 | void _buttonlight_off(void) |
73 | { | 73 | { |
74 | if (buttonlight_status) | 74 | if (buttonlight_status) |
75 | { | 75 | { |
76 | touchpad_set_buttonlights(0x00, 0); | 76 | touchpad_set_parameter(0x22, 0x0000); /* 0x22 - GPO_ENABLE */ |
77 | buttonlight_status = 0; | 77 | buttonlight_status = 0; |
78 | } | 78 | } |
79 | } | 79 | } |
@@ -81,7 +81,8 @@ void _buttonlight_off(void) | |||
81 | void _buttonlight_set_brightness(int brightness) | 81 | void _buttonlight_set_brightness(int brightness) |
82 | { | 82 | { |
83 | /* no brightness control, but lights stays on - for compatibility */ | 83 | /* no brightness control, but lights stays on - for compatibility */ |
84 | touchpad_set_buttonlights(0x0f, brightness); | 84 | (void)brightness; |
85 | touchpad_set_parameter(0x22, 0x000f); /* 0x22 - GPO_ENABLE */ | ||
85 | buttonlight_status = 1; | 86 | buttonlight_status = 1; |
86 | } | 87 | } |
87 | #endif | 88 | #endif |
diff --git a/firmware/target/arm/pbell/vibe500/power-vibe500.c b/firmware/target/arm/pbell/vibe500/power-vibe500.c index e55c69e033..45ab7fb1fd 100644 --- a/firmware/target/arm/pbell/vibe500/power-vibe500.c +++ b/firmware/target/arm/pbell/vibe500/power-vibe500.c | |||
@@ -46,6 +46,18 @@ void power_init(void) | |||
46 | { | 46 | { |
47 | logf("touchpad not ready"); | 47 | logf("touchpad not ready"); |
48 | } | 48 | } |
49 | /* Max touch sensivity = 0x77, Rate=80/s,NoFilter=0, | ||
50 | KeyMatrix=0,Buttons=1,Relative=0,Absolute=1. | ||
51 | MEP parameter 0x20 - Report Modes */ | ||
52 | touchpad_set_parameter(0x20,0x7785); | ||
53 | /* MinAbsReporting=0, NotAllCapButtons=0,SingleCapButton=0, | ||
54 | 50msDebounce=0,MotionReporting=1 (reduce transmission overhead), | ||
55 | ClipZifnoFinger=0,DisableDeceleration=0,Dribble=0. | ||
56 | MEP parameter 0x21 - Enhanced Operating Configuration */ | ||
57 | touchpad_set_parameter(0x21,0x0008); | ||
58 | /* Set the GPO_LEVEL = 0 - for the button lights */ | ||
59 | touchpad_set_parameter(0x23,0x0000); | ||
60 | |||
49 | /* Sound unmute (on) */ | 61 | /* Sound unmute (on) */ |
50 | GPIO_CLEAR_BITWISE(GPIOL_OUTPUT_VAL, 0x10); | 62 | GPIO_CLEAR_BITWISE(GPIOL_OUTPUT_VAL, 0x10); |
51 | } | 63 | } |