summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2012-03-19 21:00:06 +0100
committerBertrik Sikken <bertrik@sikken.nl>2012-03-19 21:00:06 +0100
commitbb6ac6fcbaabe25f64e5fe80e78cf4d6e201626d (patch)
tree59ff176c64f04553f1b7014777c1621209ac4b8a
parentbe10817e1c09d5a41710435cf6d58deb6dde9301 (diff)
downloadrockbox-bb6ac6fcbaabe25f64e5fe80e78cf4d6e201626d.tar.gz
rockbox-bb6ac6fcbaabe25f64e5fe80e78cf4d6e201626d.tar.bz2
rockbox-bb6ac6fcbaabe25f64e5fe80e78cf4d6e201626d.zip
sansa clip+: properly reset display using the reset pin
Change-Id: Ic4bb85cfca4e21d908e187381b868d3f7ef18f88
-rw-r--r--firmware/target/arm/as3525/sansa-clipplus/lcd-clip-plus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipplus/lcd-clip-plus.c b/firmware/target/arm/as3525/sansa-clipplus/lcd-clip-plus.c
index 3ee3578171..c0b128a486 100644
--- a/firmware/target/arm/as3525/sansa-clipplus/lcd-clip-plus.c
+++ b/firmware/target/arm/as3525/sansa-clipplus/lcd-clip-plus.c
@@ -41,8 +41,10 @@ int lcd_hw_init(void)
/* configure GPIO B3 (display type detect) as input */
GPIOB_DIR &= ~(1<<3);
- /* set GPIO A5 (display RESET# ?) */
+ /* reset display using GPIO A5 (display RESET#) */
GPIOA_DIR |= (1<<5);
+ GPIOA_PIN(5) = 0;
+ udelay(1000);
GPIOA_PIN(5) = (1<<5);
/* detect display type on GPIO B3 */