diff options
author | Rafaël Carré <funman@videolan.org> | 2012-01-30 00:10:21 -0500 |
---|---|---|
committer | Rafaël Carré <funman@videolan.org> | 2012-01-30 00:13:51 -0500 |
commit | d1b47c2eeb091d8d45fc73049998d68f33d9c5c0 (patch) | |
tree | ffc0036de6fdf3850ccf4cd356999aab1d82f080 /firmware/target/arm/as3525/button-clip.c | |
parent | e7892c9851da0f3506c380983fac0c019f773489 (diff) | |
download | rockbox-d1b47c2eeb091d8d45fc73049998d68f33d9c5c0.tar.gz rockbox-d1b47c2eeb091d8d45fc73049998d68f33d9c5c0.zip |
Clipv2: fix button reading on some models
We neet to setup the XPD to work as GPIO
storage unaffected
Tested on working-already Clipv2 and on a 'brickable' clipv2
Change-Id: Idcbdfb6bd50d51b7f6f7e00b21df24fac9b3a6d8
Diffstat (limited to 'firmware/target/arm/as3525/button-clip.c')
-rw-r--r-- | firmware/target/arm/as3525/button-clip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/button-clip.c b/firmware/target/arm/as3525/button-clip.c index 18bac8aa01..2bd472c049 100644 --- a/firmware/target/arm/as3525/button-clip.c +++ b/firmware/target/arm/as3525/button-clip.c | |||
@@ -52,6 +52,7 @@ static const int rows[3] = { | |||
52 | void button_init_device(void) | 52 | void button_init_device(void) |
53 | { | 53 | { |
54 | GPIOA_DIR &= ~((1<<7) | (1<<3)); | 54 | GPIOA_DIR &= ~((1<<7) | (1<<3)); |
55 | CCU_IO &= ~(3<<2); | ||
55 | IN_DIR &= ~((1<<2) | (1<<1) | (1<<0)); | 56 | IN_DIR &= ~((1<<2) | (1<<1) | (1<<0)); |
56 | 57 | ||
57 | for (int i = 0; i < 3; i++) { | 58 | for (int i = 0; i < 3; i++) { |