From 8aeed2d32e4312da426a1ba16f975923adc3cfbe Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 12 Oct 2007 00:28:57 +0000 Subject: PP LCD drivers: * Optimised and cleaned up PP colour LCD drivers. Immeasurable speedup on iPod Color, huge speedup on small H10 (a factor of 3). Should be a bit faster on big H10 too. * Big H10 changed bitmap format, so needs reconfiguring + full rebuild. * Better register naming for the mono LCD bridge. Register names for the colour LCD bridge. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15082 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/sandisk/sansa-c200/lcd-c200.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'firmware/target/arm/sandisk') diff --git a/firmware/target/arm/sandisk/sansa-c200/lcd-c200.c b/firmware/target/arm/sandisk/sansa-c200/lcd-c200.c index d503fd2c9b..24a7585508 100644 --- a/firmware/target/arm/sandisk/sansa-c200/lcd-c200.c +++ b/firmware/target/arm/sandisk/sansa-c200/lcd-c200.c @@ -62,7 +62,7 @@ /* wait for LCD */ static inline void lcd_wait_write(void) { - while (LCD1_BASE & LCD1_BUSY_MASK); + while (LCD1_CONTROL & LCD1_BUSY_MASK); } /* send LCD data */ @@ -91,13 +91,13 @@ void lcd_init_device(void) DEV_INIT &= ~0x400; udelay(10000); - LCD1_BASE &= ~0x4; + LCD1_CONTROL &= ~0x4; udelay(15); - LCD1_BASE |= 0x4; + LCD1_CONTROL |= 0x4; udelay(10); - LCD1_BASE = 0x4687; + LCD1_CONTROL = 0x4687; udelay(10000); lcd_send_command(R_STANDBY_OFF); -- cgit v1.2.3