From 101bb25e72d1f964457bf31f19ad47bd179ad872 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Tue, 6 Sep 2011 16:55:52 +0000 Subject: 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 --- firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'firmware/target/arm') 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); /* ? */ -- cgit v1.2.3