summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
diff options
context:
space:
mode:
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)
103 lcd_write_dat(data); 103 lcd_write_dat(data);
104} 104}
105 105
106/* delays during lcd initialisation (for type 0 LCDs) */
107static void lcd_delay(int us)
108{
109 udelay(us);
110}
111
112/* Initialises lcd type 0 106/* Initialises lcd type 0
113 * This appears to be a Visionox M00230 OLED display controlled by a SEPS114A. 107 * This appears to be a Visionox M00230 OLED display controlled by a SEPS114A.
114 */ 108 */
@@ -116,10 +110,10 @@ static void lcd_init_type0(void)
116{ 110{
117 lcd_write(0x01, 0x00); /* SOFT_RESET */ 111 lcd_write(0x01, 0x00); /* SOFT_RESET */
118 lcd_write(0x14, 0x01); /* STANDBY_ON_OFF */ 112 lcd_write(0x14, 0x01); /* STANDBY_ON_OFF */
119 lcd_delay(5); 113 sleep(1); /* actually only 5 ms needed */
120 114
121 lcd_write(0x14, 0x00); /* STANDBY_ON_OFF */ 115 lcd_write(0x14, 0x00); /* STANDBY_ON_OFF */
122 lcd_delay(5); 116 sleep(1); /* actually only 5 ms needed */
123 117
124 lcd_write(0x0F, 0x41); /* ANALOG_CONTROL */ 118 lcd_write(0x0F, 0x41); /* ANALOG_CONTROL */
125 lcd_write(0xEA, 0x0A); /* ? */ 119 lcd_write(0xEA, 0x0A); /* ? */