diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/dm320.h | 7 | ||||
-rw-r--r-- | firmware/export/s3c2440.h | 5 |
2 files changed, 7 insertions, 5 deletions
diff --git a/firmware/export/dm320.h b/firmware/export/dm320.h index bf7295d463..dc29f7de2d 100644 --- a/firmware/export/dm320.h +++ b/firmware/export/dm320.h | |||
@@ -32,11 +32,12 @@ | |||
32 | /* must be 16Kb (0x4000) aligned */ | 32 | /* must be 16Kb (0x4000) aligned */ |
33 | #if 0 | 33 | #if 0 |
34 | #define MEM_END 0x00900000 + (MEM*0x00100000) | 34 | #define MEM_END 0x00900000 + (MEM*0x00100000) |
35 | #define TTB_BASE ((unsigned long *)(MEM_END - TTB_SIZE)) /* End of memory */ | 35 | #define TTB_BASE_ADDR (MEM_END - TTB_SIZE) |
36 | #else | 36 | #else |
37 | #define TTB_BASE ((unsigned long *)(0x04900000 - TTB_SIZE)) /* End of memory */ | 37 | #define TTB_BASE_ADDR (0x04900000 - TTB_SIZE) |
38 | #endif | 38 | #endif |
39 | #define FRAME ((short *) ((char*)TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */ | 39 | #define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) /* End of memory */ |
40 | #define FRAME ((short *) (TTB_BASE_ADDR - LCD_BUFFER_SIZE)) /* Right before TTB */ | ||
40 | 41 | ||
41 | #define PHY_IO_BASE 0x00030000 | 42 | #define PHY_IO_BASE 0x00030000 |
42 | #define DM320_REG(addr) (*(volatile unsigned short *)(PHY_IO_BASE + (addr))) | 43 | #define DM320_REG(addr) (*(volatile unsigned short *)(PHY_IO_BASE + (addr))) |
diff --git a/firmware/export/s3c2440.h b/firmware/export/s3c2440.h index f1d41dbae3..a7da64f688 100644 --- a/firmware/export/s3c2440.h +++ b/firmware/export/s3c2440.h | |||
@@ -24,8 +24,9 @@ | |||
24 | #define LCD_BUFFER_SIZE (320*240*2) | 24 | #define LCD_BUFFER_SIZE (320*240*2) |
25 | #define TTB_SIZE (0x4000) | 25 | #define TTB_SIZE (0x4000) |
26 | /* must be 16Kb (0x4000) aligned */ | 26 | /* must be 16Kb (0x4000) aligned */ |
27 | #define TTB_BASE ((unsigned long *)(0x30000000 + (32*1024*1024) - TTB_SIZE)) /* End of memory */ | 27 | #define TTB_BASE_ADDR (0x30000000 + (32*1024*1024) - TTB_SIZE) |
28 | #define FRAME ((unsigned short *)((unsigned char *)TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */ | 28 | #define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) /* End of memory */ |
29 | #define FRAME ((unsigned short *)(TTB_BASE_ADDR - LCD_BUFFER_SIZE)) /* Right before TTB */ | ||
29 | 30 | ||
30 | /* Memory Controllers */ | 31 | /* Memory Controllers */ |
31 | 32 | ||