summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHristo Kovachev <bger@rockbox.org>2006-01-09 16:11:19 +0000
committerHristo Kovachev <bger@rockbox.org>2006-01-09 16:11:19 +0000
commit9cf5270f107f3491143eb62ed238155d6d66ef75 (patch)
tree2093bbf0e5986233a69b3d1471afeda1a14a31d1
parent1917cd5f12e716e1bc7c208be923203f65a1c719 (diff)
downloadrockbox-9cf5270f107f3491143eb62ed238155d6d66ef75.tar.gz
rockbox-9cf5270f107f3491143eb62ed238155d6d66ef75.zip
Don't init the lcd twice - once on lcd_init_device and the other one on first call of lcd_enable() (an old, known bug).
Linus, please check whether lcd_enable(true) is still required for the h300 bootloader (lcd_init() calls lcd_init_device()) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8317 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/lcd-h300.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-h300.c b/firmware/drivers/lcd-h300.c
index 384490a29f..d84edd6b2e 100644
--- a/firmware/drivers/lcd-h300.c
+++ b/firmware/drivers/lcd-h300.c
@@ -313,6 +313,8 @@ void lcd_init_device(void)
313 * Gate output: VGH/VGL 313 * Gate output: VGH/VGL
314 * 6th bit not set*/ 314 * 6th bit not set*/
315 lcd_write_reg(R_DISP_CONTROL1, 0x0637); 315 lcd_write_reg(R_DISP_CONTROL1, 0x0637);
316 /* ok, the display is finally on */
317 display_on=true;
316} 318}
317 319
318void lcd_enable(bool on) 320void lcd_enable(bool on)
@@ -347,8 +349,9 @@ void lcd_enable(bool on)
347 349
348 /* halt negative volt ampl. */ 350 /* halt negative volt ampl. */
349 lcd_write_reg(R_POWER_CONTROL4,0x0000); 351 lcd_write_reg(R_POWER_CONTROL4,0x0000);
352 display_on=false;
350 } 353 }
351 display_on=on; 354 /* display_on = on */
352 } 355 }
353} 356}
354 357