diff options
| author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-04-01 03:21:18 +0000 |
|---|---|---|
| committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-04-01 03:21:18 +0000 |
| commit | 4fa96fbc914ae8fd69aedafd73f4f1798679d29f (patch) | |
| tree | ea0deb3e1573e1dfd540441002e58b403670d178 /firmware/export/dm320.h | |
| parent | a606121dd860245328198ac773d454980191abc3 (diff) | |
| download | rockbox-4fa96fbc914ae8fd69aedafd73f4f1798679d29f.zip rockbox-4fa96fbc914ae8fd69aedafd73f4f1798679d29f.tar.gz rockbox-4fa96fbc914ae8fd69aedafd73f4f1798679d29f.tar.bz2 rockbox-4fa96fbc914ae8fd69aedafd73f4f1798679d29f.tar.xz | |
M:Robe 500i: More LCD initialization, and beginnings of support for QVGA as well as VGA on the LCD. MPEGPlayer now works with reasonable performance on smaller videos, but YUV blitting persists after MPEGPlayer is left, some cleanup/changes to the initialization code. This should be functionally equivalent for the ZVM, but the #ifdef's may need to be added back for app.lds. Get the bootloader building again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20598 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/dm320.h')
| -rw-r--r-- | firmware/export/dm320.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/firmware/export/dm320.h b/firmware/export/dm320.h index 3d932c6..d6599a6 100644 --- a/firmware/export/dm320.h +++ b/firmware/export/dm320.h @@ -27,17 +27,14 @@ #ifndef __DM320_H__ #define __DM320_H__ -#define LCD_BUFFER_SIZE (LCD_WIDTH*LCD_HEIGHT*2) -#define TTB_SIZE (0x4000) -/* must be 16Kb (0x4000) aligned */ -#if 1 -#define MEM_END 0x00900000 + (MEM*0x00100000) -#define TTB_BASE_ADDR (MEM_END - TTB_SIZE) -#else -#define TTB_BASE_ADDR (0x04900000 - TTB_SIZE) +#if !defined(__ASSEMBLER__) && !defined(__LD__) +/* These variables are created during linking (app/boot.lds) */ +extern unsigned long _lcdbuf; +extern unsigned long _ttbstart; #endif -#define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) /* End of memory */ -#define FRAME ((short *) (TTB_BASE_ADDR - LCD_BUFFER_SIZE)) /* Right before TTB */ + +#define TTB_BASE_ADDR (_ttbstart) /* End of memory */ +#define FRAME ((short *) (&_lcdbuf)) /* Right before TTB */ #define PHY_IO_BASE 0x00030000 #define DM320_REG(addr) (*(volatile unsigned short *)(PHY_IO_BASE + (addr))) |