summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-16 21:15:05 +0000
committerDave Chapman <dave@dchapman.com>2006-02-16 21:15:05 +0000
commit72ea4f38baf7a806536ef4b3e99110615e1ed027 (patch)
tree8feb3063815b2fcfa0791a6f19a3dd558fd169e5 /firmware
parenta4504bc276497aa7d30098446a71775045dbd16a (diff)
downloadrockbox-72ea4f38baf7a806536ef4b3e99110615e1ed027.tar.gz
rockbox-72ea4f38baf7a806536ef4b3e99110615e1ed027.tar.bz2
rockbox-72ea4f38baf7a806536ef4b3e99110615e1ed027.zip
iPod 5G: Put lcd_update_rect function in IRAM - increases speed from 52fps to 54fps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8708 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd-ipodvideo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-ipodvideo.c b/firmware/drivers/lcd-ipodvideo.c
index d73d9c3e42..8c404c80e4 100644
--- a/firmware/drivers/lcd-ipodvideo.c
+++ b/firmware/drivers/lcd-ipodvideo.c
@@ -131,7 +131,7 @@ static unsigned lcd_bcm_read32(unsigned address) {
return inw(0x30000000) | inw(0x30000000) << 16;
}
-static void lcd_bcm_finishup(void) {
+static inline void lcd_bcm_finishup(void) {
unsigned data;
outw(0x31, 0x30030000);
@@ -148,6 +148,7 @@ static void lcd_bcm_finishup(void) {
}
/* Update a fraction of the display. */
+void lcd_update_rect(int x, int y, int width, int height) ICODE_ATTR;
void lcd_update_rect(int x, int y, int width, int height)
{
int rect1,rect2,rect3,rect4;