diff options
Diffstat (limited to 'firmware/export/dm320.h')
-rw-r--r-- | firmware/export/dm320.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/dm320.h b/firmware/export/dm320.h index 4a26f6e3d5..a70083331e 100644 --- a/firmware/export/dm320.h +++ b/firmware/export/dm320.h | |||
@@ -28,7 +28,12 @@ | |||
28 | #define LCD_BUFFER_SIZE (LCD_WIDTH*LCD_HEIGHT*2) | 28 | #define LCD_BUFFER_SIZE (LCD_WIDTH*LCD_HEIGHT*2) |
29 | #define TTB_SIZE (0x4000) | 29 | #define TTB_SIZE (0x4000) |
30 | /* must be 16Kb (0x4000) aligned */ | 30 | /* must be 16Kb (0x4000) aligned */ |
31 | #if 0 | ||
32 | #define MEM_END 0x00900000 + (MEM*0x00100000) | ||
33 | #define TTB_BASE ((unsigned int *)(MEM_END - TTB_SIZE)) /* End of memory */ | ||
34 | #else | ||
31 | #define TTB_BASE ((unsigned int *)(0x04900000 - TTB_SIZE)) /* End of memory */ | 35 | #define TTB_BASE ((unsigned int *)(0x04900000 - TTB_SIZE)) /* End of memory */ |
36 | #endif | ||
32 | #define FRAME ((short *) ((char*)TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */ | 37 | #define FRAME ((short *) ((char*)TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */ |
33 | 38 | ||
34 | #define PHY_IO_BASE 0x00030000 | 39 | #define PHY_IO_BASE 0x00030000 |