diff options
Diffstat (limited to 'firmware/drivers/synaptics-mep.c')
-rw-r--r-- | firmware/drivers/synaptics-mep.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/drivers/synaptics-mep.c b/firmware/drivers/synaptics-mep.c index 44b186034f..858edf54fe 100644 --- a/firmware/drivers/synaptics-mep.c +++ b/firmware/drivers/synaptics-mep.c | |||
@@ -32,6 +32,7 @@ | |||
32 | /* Driver for the Synaptics Touchpad based on the "Synaptics Modular Embedded | 32 | /* Driver for the Synaptics Touchpad based on the "Synaptics Modular Embedded |
33 | Protocol: 3-Wire Interface Specification" documentation */ | 33 | Protocol: 3-Wire Interface Specification" documentation */ |
34 | 34 | ||
35 | #if defined(MROBE_100) | ||
35 | #define ACK (GPIOD_INPUT_VAL & 0x1) | 36 | #define ACK (GPIOD_INPUT_VAL & 0x1) |
36 | #define ACK_HI GPIOD_OUTPUT_VAL |= 0x1 | 37 | #define ACK_HI GPIOD_OUTPUT_VAL |= 0x1 |
37 | #define ACK_LO GPIOD_OUTPUT_VAL &= ~0x1 | 38 | #define ACK_LO GPIOD_OUTPUT_VAL &= ~0x1 |
@@ -45,6 +46,21 @@ | |||
45 | #define DATA_LO GPIOD_OUTPUT_EN |= 0x4; GPIOD_OUTPUT_VAL &= ~0x4 | 46 | #define DATA_LO GPIOD_OUTPUT_EN |= 0x4; GPIOD_OUTPUT_VAL &= ~0x4 |
46 | #define DATA_CL GPIOD_OUTPUT_EN &= ~0x4 | 47 | #define DATA_CL GPIOD_OUTPUT_EN &= ~0x4 |
47 | 48 | ||
49 | #elif defined(PHILIPS_HDD1630) | ||
50 | #define ACK (GPIOD_INPUT_VAL & 0x80) | ||
51 | #define ACK_HI GPIOD_OUTPUT_VAL |= 0x80 | ||
52 | #define ACK_LO GPIOD_OUTPUT_VAL &= ~0x80 | ||
53 | |||
54 | #define CLK ((GPIOA_INPUT_VAL & 0x20) >> 5) | ||
55 | #define CLK_HI GPIOA_OUTPUT_VAL |= 0x20 | ||
56 | #define CLK_LO GPIOA_OUTPUT_VAL &= ~0x20 | ||
57 | |||
58 | #define DATA ((GPIOA_INPUT_VAL & 0x10) >> 4) | ||
59 | #define DATA_HI GPIOA_OUTPUT_EN |= 0x10; GPIOA_OUTPUT_VAL |= 0x10 | ||
60 | #define DATA_LO GPIOA_OUTPUT_EN |= 0x10; GPIOA_OUTPUT_VAL &= ~0x10 | ||
61 | #define DATA_CL GPIOA_OUTPUT_EN &= ~0x10 | ||
62 | #endif | ||
63 | |||
48 | #define LO 0 | 64 | #define LO 0 |
49 | #define HI 1 | 65 | #define HI 1 |
50 | 66 | ||