diff options
Diffstat (limited to 'firmware/export/s3c2440.h')
-rw-r--r-- | firmware/export/s3c2440.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/export/s3c2440.h b/firmware/export/s3c2440.h index 0e802b5c0e..fae4f02203 100644 --- a/firmware/export/s3c2440.h +++ b/firmware/export/s3c2440.h | |||
@@ -19,6 +19,12 @@ | |||
19 | #ifndef __S3C2440_H__ | 19 | #ifndef __S3C2440_H__ |
20 | #define __S3C2440_H__ | 20 | #define __S3C2440_H__ |
21 | 21 | ||
22 | #define LCD_BUFFER_SIZE (320*240*2) | ||
23 | #define TTB_SIZE (0x4000) | ||
24 | /* must be 16Kb (0x4000) aligned */ | ||
25 | #define TTB_BASE ((unsigned int *)(0x30000000 + (32*1024*1024) - TTB_SIZE)) /* End of memory */ | ||
26 | #define FRAME ((short *) ((char *)TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */ | ||
27 | |||
22 | /* Memory Controllers */ | 28 | /* Memory Controllers */ |
23 | 29 | ||
24 | #define BWSCON (*(volatile int *)0x48000000) /* Bus width & wait status control */ | 30 | #define BWSCON (*(volatile int *)0x48000000) /* Bus width & wait status control */ |
@@ -225,12 +231,6 @@ | |||
225 | #define LCDINTMSK (*(volatile int *)0x4D00005C) /* LCD interrupt mask */ | 231 | #define LCDINTMSK (*(volatile int *)0x4D00005C) /* LCD interrupt mask */ |
226 | #define TCONSEL (*(volatile int *)0x4D000060) /* TCON(LPC3600/LCC3600) control */ | 232 | #define TCONSEL (*(volatile int *)0x4D000060) /* TCON(LPC3600/LCC3600) control */ |
227 | 233 | ||
228 | #define LCD_BUFFER_SIZE ((320*240*2)) | ||
229 | #define TTB_SIZE (0x4000) | ||
230 | /*#define FRAME ( (short *) 0x31E00000 ) */ /* LCD Frame buffer - Firmware Address */ | ||
231 | /* must be 16Kb (0x4000) aligned */ | ||
232 | #define TTB_BASE ((unsigned int *)(0x30000000 + (32*1024*1024) - TTB_SIZE)) /* End of memory */ | ||
233 | #define FRAME ((short *) ((char *)TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */ | ||
234 | /* NAND Flash */ | 234 | /* NAND Flash */ |
235 | 235 | ||
236 | #define NFCONF (*(volatile int *)0x4E000000) /* NAND flash configuration */ | 236 | #define NFCONF (*(volatile int *)0x4E000000) /* NAND flash configuration */ |