diff options
author | Szymon Dziok <b0hoon@o2.pl> | 2010-07-04 12:03:38 +0000 |
---|---|---|
committer | Szymon Dziok <b0hoon@o2.pl> | 2010-07-04 12:03:38 +0000 |
commit | 63c795a3496bc322a9e6118a3b08d0a7029b0b7d (patch) | |
tree | 2503ed6801f54e9caf88a4fbdc59a0b6b0cfeddf /firmware/target/arm/pbell | |
parent | 78c9a19e51ffa1b3c949ed76c870a10eee5d095c (diff) | |
download | rockbox-63c795a3496bc322a9e6118a3b08d0a7029b0b7d.tar.gz rockbox-63c795a3496bc322a9e6118a3b08d0a7029b0b7d.zip |
hdd6330: change the synaptics-mep driver in a few places according to the touchpad behavior.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27273 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/pbell')
-rw-r--r-- | firmware/target/arm/pbell/vibe500/backlight-vibe500.c | 6 | ||||
-rw-r--r-- | firmware/target/arm/pbell/vibe500/power-vibe500.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/firmware/target/arm/pbell/vibe500/backlight-vibe500.c b/firmware/target/arm/pbell/vibe500/backlight-vibe500.c index 321484cd9a..ab71012bdb 100644 --- a/firmware/target/arm/pbell/vibe500/backlight-vibe500.c +++ b/firmware/target/arm/pbell/vibe500/backlight-vibe500.c | |||
@@ -64,7 +64,7 @@ void _buttonlight_on(void) | |||
64 | { | 64 | { |
65 | if (!buttonlight_status) | 65 | if (!buttonlight_status) |
66 | { | 66 | { |
67 | touchpad_set_parameter(0x22, 0x000f); /* 0x22 - GPO_ENABLE */ | 67 | touchpad_set_parameter(0, 0x22, 0x000f); /* 0x22 - GPO_ENABLE */ |
68 | buttonlight_status = 1; | 68 | buttonlight_status = 1; |
69 | } | 69 | } |
70 | } | 70 | } |
@@ -73,7 +73,7 @@ void _buttonlight_off(void) | |||
73 | { | 73 | { |
74 | if (buttonlight_status) | 74 | if (buttonlight_status) |
75 | { | 75 | { |
76 | touchpad_set_parameter(0x22, 0x0000); /* 0x22 - GPO_ENABLE */ | 76 | touchpad_set_parameter(0, 0x22, 0x0000); /* 0x22 - GPO_ENABLE */ |
77 | buttonlight_status = 0; | 77 | buttonlight_status = 0; |
78 | } | 78 | } |
79 | } | 79 | } |
@@ -82,7 +82,7 @@ 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 | (void)brightness; | 84 | (void)brightness; |
85 | touchpad_set_parameter(0x22, 0x000f); /* 0x22 - GPO_ENABLE */ | 85 | touchpad_set_parameter(0, 0x22, 0x000f); /* 0x22 - GPO_ENABLE */ |
86 | buttonlight_status = 1; | 86 | buttonlight_status = 1; |
87 | } | 87 | } |
88 | #endif | 88 | #endif |
diff --git a/firmware/target/arm/pbell/vibe500/power-vibe500.c b/firmware/target/arm/pbell/vibe500/power-vibe500.c index b345a9b5d0..a5660d7e73 100644 --- a/firmware/target/arm/pbell/vibe500/power-vibe500.c +++ b/firmware/target/arm/pbell/vibe500/power-vibe500.c | |||
@@ -49,14 +49,14 @@ void power_init(void) | |||
49 | /* Max touch sensivity = 0x77, Rate=80/s,NoFilter=0, | 49 | /* Max touch sensivity = 0x77, Rate=80/s,NoFilter=0, |
50 | KeyMatrix=0,Buttons=1,Relative=0,Absolute=1. | 50 | KeyMatrix=0,Buttons=1,Relative=0,Absolute=1. |
51 | MEP parameter 0x20 - Report Modes */ | 51 | MEP parameter 0x20 - Report Modes */ |
52 | touchpad_set_parameter(0x20,0x7785); | 52 | touchpad_set_parameter(0,0x20,0x7785); |
53 | /* MinAbsReporting=0, NotAllCapButtons=0,SingleCapButton=0, | 53 | /* MinAbsReporting=0, NotAllCapButtons=0,SingleCapButton=0, |
54 | 50msDebounce=0,MotionReporting=1 (reduce transmission overhead), | 54 | 50msDebounce=0,MotionReporting=1 (reduce transmission overhead), |
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(0,0x21,0x0008); |
58 | /* Set the GPO_LEVELS = 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(0,0x23,0x0000); |
60 | 60 | ||
61 | /* Sound unmute (on) */ | 61 | /* Sound unmute (on) */ |
62 | GPIO_CLEAR_BITWISE(GPIOL_OUTPUT_VAL, 0x10); | 62 | GPIO_CLEAR_BITWISE(GPIOL_OUTPUT_VAL, 0x10); |
@@ -100,7 +100,7 @@ void power_off(void) | |||
100 | /* shutdown bit */ | 100 | /* shutdown bit */ |
101 | GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x80); | 101 | GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x80); |
102 | /* button lights off */ | 102 | /* button lights off */ |
103 | touchpad_set_parameter(0x22,0x0000); | 103 | touchpad_set_parameter(0,0x22,0x0000); |
104 | /* ATA power off */ | 104 | /* ATA power off */ |
105 | ide_power_enable(false); | 105 | ide_power_enable(false); |
106 | /* ? - in the OF */ | 106 | /* ? - in the OF */ |