diff options
author | Mark Arigo <markarigo@gmail.com> | 2009-06-19 03:23:38 +0000 |
---|---|---|
committer | Mark Arigo <markarigo@gmail.com> | 2009-06-19 03:23:38 +0000 |
commit | a61196fd3ae5ebd71134da8eb10e3189403c116f (patch) | |
tree | 7ce78201cb299ebfd6ac92f490776072c47a9e03 /firmware/drivers/synaptics-mep.c | |
parent | 6a0d931f383259b4b82fcfd1cc87700f53bbcb02 (diff) |
Philips SA9200: Working touchpad and button lights! Also, improvements to the keymap (still needs work).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21346 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/synaptics-mep.c')
-rw-r--r-- | firmware/drivers/synaptics-mep.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/firmware/drivers/synaptics-mep.c b/firmware/drivers/synaptics-mep.c index 64b63397f7..f4b5a99aa7 100644 --- a/firmware/drivers/synaptics-mep.c +++ b/firmware/drivers/synaptics-mep.c @@ -73,6 +73,26 @@ #define DATA_LO GPIO_SET_BITWISE(GPIOA_OUTPUT_EN, 0x10);\ GPIO_CLEAR_BITWISE(GPIOA_OUTPUT_VAL, 0x10) #define DATA_CL GPIO_CLEAR_BITWISE(GPIOA_OUTPUT_EN, 0x10) + +#elif defined(PHILIPS_SA9200) +#define INT_ENABLE GPIO_CLEAR_BITWISE(GPIOD_INT_LEV, 0x2);\ + GPIO_SET_BITWISE(GPIOD_INT_EN, 0x2) +#define INT_DISABLE GPIO_CLEAR_BITWISE(GPIOD_INT_EN, 0x2);\ + GPIO_SET_BITWISE(GPIOD_INT_CLR, 0x2) + +#define ACK (GPIOD_INPUT_VAL & 0x8) +#define ACK_HI GPIO_SET_BITWISE(GPIOD_OUTPUT_VAL, 0x8) +#define ACK_LO GPIO_CLEAR_BITWISE(GPIOD_OUTPUT_VAL, 0x8) + +#define CLK ((GPIOD_INPUT_VAL & 0x2) >> 1) +#define CLK_HI GPIO_SET_BITWISE(GPIOD_OUTPUT_VAL, 0x2) +#define CLK_LO GPIO_CLEAR_BITWISE(GPIOD_OUTPUT_VAL, 0x2) + +#define DATA ((GPIOD_INPUT_VAL & 0x10) >> 4) +#define DATA_HI GPIO_CLEAR_BITWISE(GPIOD_OUTPUT_EN, 0x10) +#define DATA_LO GPIO_CLEAR_BITWISE(GPIOD_OUTPUT_VAL, 0x10);\ + GPIO_SET_BITWISE(GPIOD_OUTPUT_EN, 0x10) +#define DATA_CL GPIO_CLEAR_BITWISE(GPIOD_OUTPUT_EN, 0x10) #endif #define LO 0 |