diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-07-16 15:29:03 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-07-16 15:29:03 +0000 |
commit | 3f82e03f1113774baa6b5f4f788178b5bbaf8c55 (patch) | |
tree | 7558b7edf4acc34ee5c49f5e59b3e62febadf26e /firmware/target/mips/ingenic_jz47xx | |
parent | 975261f003ab7c8bc917a932f5c6fc657ea78143 (diff) | |
download | rockbox-3f82e03f1113774baa6b5f4f788178b5bbaf8c55.tar.gz rockbox-3f82e03f1113774baa6b5f4f788178b5bbaf8c55.zip |
Remove obsolete function + cleanup code a bit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18072 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/lcd-jz4740.c | 18 | ||||
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/system-target.h | 2 |
2 files changed, 6 insertions, 14 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/lcd-jz4740.c b/firmware/target/mips/ingenic_jz47xx/lcd-jz4740.c index 907351c64e..5a3eedf65c 100644 --- a/firmware/target/mips/ingenic_jz47xx/lcd-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/lcd-jz4740.c @@ -49,29 +49,19 @@ bool lcd_enabled(void) return _lcd_on; } -void lcd_copy_buffer_rect(fb_data* dest, fb_data* src, int width, int height) -{ - int i; - for(i=0; i<width*height; i++) - *dest++ = *src++; -} - -#define LCDADDR(x, y) ((unsigned int)&lcd_framebuffer[(y)][(x)]) -#define LCD_UNCACHED(addr) ((unsigned int)(addr) | 0xA0000000) - /* Update a fraction of the display. */ void lcd_update_rect(int x, int y, int width, int height) { - /* HACKY... */ + /* STILL HACKY... */ x=0; y=0; width=400; height=240; lcd_set_target(x, y, width-1, height-1); REG_DMAC_DCCSR(0) = 0; REG_DMAC_DRSR(0) = DMAC_DRSR_RS_SLCD; /* source = SLCD */ - REG_DMAC_DSAR(0) = LCDADDR(x, y) & 0x1FFFFFFF; + REG_DMAC_DSAR(0) = ((unsigned int)&lcd_framebuffer[y][x]) & 0x1FFFFFFF; #if 0 - REG_DMAC_DTAR(0) = LCD_UNCACHED(SLCD_FIFO); + REG_DMAC_DTAR(0) = UNCACHED_ADDRESS(SLCD_FIFO); #else REG_DMAC_DTAR(0) = 0x130500B0; /* SLCD_FIFO */ #endif @@ -87,7 +77,7 @@ void lcd_update_rect(int x, int y, int width, int height) while( !(REG_DMAC_DCCSR(0) & DMAC_DCCSR_TT) ) asm("nop"); - //REG_DMAC_DCCSR(0) &= ~DMAC_DCCSR_TT; + } /* Update the display. diff --git a/firmware/target/mips/ingenic_jz47xx/system-target.h b/firmware/target/mips/ingenic_jz47xx/system-target.h index 2fff6423b9..a84a99173a 100644 --- a/firmware/target/mips/ingenic_jz47xx/system-target.h +++ b/firmware/target/mips/ingenic_jz47xx/system-target.h @@ -101,3 +101,5 @@ static inline void restore_interrupt(int status) void sti(void); void cli(void); + +#define UNCACHED_ADDRESS(addr) ((unsigned int)(addr) | 0xA0000000) |