summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-05-20 12:43:23 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-05-20 12:43:23 +0000
commit9c2ebdf7247f6a2d27dbfc10305f4e92f8bbb801 (patch)
tree0e3557bcc97f1bbb2c7f8abb132783ab73c92e1a
parent8bcb4a69715f04886b669d154f58bb2cc38ffd24 (diff)
downloadrockbox-9c2ebdf7247f6a2d27dbfc10305f4e92f8bbb801.tar.gz
rockbox-9c2ebdf7247f6a2d27dbfc10305f4e92f8bbb801.zip
Speed up LCD driver on Ingenic Jz4740 by doing some sort of partial LCD updates.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20997 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/mips/ingenic_jz47xx/lcd-jz4740.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/lcd-jz4740.c b/firmware/target/mips/ingenic_jz47xx/lcd-jz4740.c
index 44d80e1c58..e3b1bd918b 100644
--- a/firmware/target/mips/ingenic_jz47xx/lcd-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/lcd-jz4740.c
@@ -71,13 +71,11 @@ bool lcd_active(void)
71/* Update a fraction of the display. */ 71/* Update a fraction of the display. */
72void lcd_update_rect(int x, int y, int width, int height) 72void lcd_update_rect(int x, int y, int width, int height)
73{ 73{
74 /* Currently only do full updates. 74 /* Currently only do updates with full LCD width.
75 * DMA can't handle partial updates and CPU is too slow compared 75 * DMA can't handle full partial updates and CPU is too slow compared
76 * to full DMA updates */ 76 * to DMA updates */
77 x = 0; 77 x = 0;
78 y = 0;
79 width = LCD_WIDTH; 78 width = LCD_WIDTH;
80 height = LCD_HEIGHT;
81 79
82 mutex_lock(&lcd_mtx); 80 mutex_lock(&lcd_mtx);
83 81