diff options
| author | Bertrik Sikken <bertrik@sikken.nl> | 2011-09-01 17:06:19 +0000 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2011-09-01 17:06:19 +0000 |
| commit | 4991c858a0bfaf203e2ca4584ea5e88f46b25b8b (patch) | |
| tree | 9e321f5f237d0cae5e2bea744aa00954c54d29d2 | |
| parent | 6a9aac7a5fd6dab96f8599be5f32ae4c1ddb3df6 (diff) | |
| download | rockbox-4991c858a0bfaf203e2ca4584ea5e88f46b25b8b.zip rockbox-4991c858a0bfaf203e2ca4584ea5e88f46b25b8b.tar.gz rockbox-4991c858a0bfaf203e2ca4584ea5e88f46b25b8b.tar.bz2 rockbox-4991c858a0bfaf203e2ca4584ea5e88f46b25b8b.tar.xz | |
sansa clipzip: implement lcd reset in the lcd driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30408 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c index c828bab..49241c1 100644 --- a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c +++ b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c @@ -22,7 +22,6 @@ #include "config.h" #include "lcd.h" -#include "lcd-clip.h" #include "system.h" #include "cpu.h" @@ -35,7 +34,7 @@ static bool lcd_enabled; #endif /* initialises the host lcd hardware, returns the lcd type */ -int lcd_hw_init(void) +static int lcd_hw_init(void) { /* configure SSP */ bitset32(&CGU_PERI, CGU_SSP_CLOCK_ENABLE); @@ -58,9 +57,11 @@ int lcd_hw_init(void) /* configure GPIO B3 (lcd type detect) as input */ GPIOB_DIR &= ~(1<<3); - /* configure GPIO A5 (lcd reset# ?) as output and set low */ + /* configure GPIO A5 (lcd reset#) as output and perform lcd reset */ GPIOA_DIR |= (1 << 5); GPIOA_PIN(5) = 0; + sleep(HZ * 50/1000); + GPIOA_PIN(5) = (1 << 5); /* detect lcd type on GPIO B3 */ return GPIOB_PIN(3) ? 1 : 0; |