summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-09-06 16:55:52 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-09-06 16:55:52 +0000
commit101bb25e72d1f964457bf31f19ad47bd179ad872 (patch)
tree2a063b6ec1ca1645117dba62806c7dc2f0b1f2fc /firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
parentd43b85c7edefe0447a7ec307ec5ecacc5385da68 (diff)
downloadrockbox-101bb25e72d1f964457bf31f19ad47bd179ad872.tar.gz
rockbox-101bb25e72d1f964457bf31f19ad47bd179ad872.tar.bz2
rockbox-101bb25e72d1f964457bf31f19ad47bd179ad872.zip
sansa clipzip: fix lcd init delay (remove lcd_delay and replace it with a sleep)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30465 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c')
-rw-r--r--firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
index f99d4d8dc5..a8aa538751 100644
--- a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
+++ b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
@@ -103,12 +103,6 @@ static void lcd_write(uint8_t cmd, uint8_t data)
lcd_write_dat(data);
}
-/* delays during lcd initialisation (for type 0 LCDs) */
-static void lcd_delay(int us)
-{
- udelay(us);
-}
-
/* Initialises lcd type 0
* This appears to be a Visionox M00230 OLED display controlled by a SEPS114A.
*/
@@ -116,10 +110,10 @@ static void lcd_init_type0(void)
{
lcd_write(0x01, 0x00); /* SOFT_RESET */
lcd_write(0x14, 0x01); /* STANDBY_ON_OFF */
- lcd_delay(5);
+ sleep(1); /* actually only 5 ms needed */
lcd_write(0x14, 0x00); /* STANDBY_ON_OFF */
- lcd_delay(5);
+ sleep(1); /* actually only 5 ms needed */
lcd_write(0x0F, 0x41); /* ANALOG_CONTROL */
lcd_write(0xEA, 0x0A); /* ? */