summaryrefslogtreecommitdiffstats
path: root/firmware/export/s3c2440.h
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2008-04-22 04:34:25 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2008-04-22 04:34:25 +0000
commit7510335fc4fe25e1fe8ec80a33bd3f3f7442dd4c (patch)
tree4b542498d76a9550c9602b31eebae7fe8debda12 /firmware/export/s3c2440.h
parent68afa9dc3438a03705544745654cd7f4d53d72c0 (diff)
downloadrockbox-7510335fc4fe25e1fe8ec80a33bd3f3f7442dd4c.tar.gz
rockbox-7510335fc4fe25e1fe8ec80a33bd3f3f7442dd4c.zip
This is a big chunk of code necessary to prepare for Gigabeat F flash loading and and implementation of rolo. There should be no noticible changes for the user. A new bootloader is not needed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17213 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/s3c2440.h')
-rw-r--r--firmware/export/s3c2440.h12
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 @@
#ifndef __S3C2440_H__
#define __S3C2440_H__
+#define LCD_BUFFER_SIZE (320*240*2)
+#define TTB_SIZE (0x4000)
+/* must be 16Kb (0x4000) aligned */
+#define TTB_BASE ((unsigned int *)(0x30000000 + (32*1024*1024) - TTB_SIZE)) /* End of memory */
+#define FRAME ((short *) ((char *)TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */
+
/* Memory Controllers */
#define BWSCON (*(volatile int *)0x48000000) /* Bus width & wait status control */
@@ -225,12 +231,6 @@
#define LCDINTMSK (*(volatile int *)0x4D00005C) /* LCD interrupt mask */
#define TCONSEL (*(volatile int *)0x4D000060) /* TCON(LPC3600/LCC3600) control */
-#define LCD_BUFFER_SIZE ((320*240*2))
-#define TTB_SIZE (0x4000)
-/*#define FRAME ( (short *) 0x31E00000 ) */ /* LCD Frame buffer - Firmware Address */
-/* must be 16Kb (0x4000) aligned */
-#define TTB_BASE ((unsigned int *)(0x30000000 + (32*1024*1024) - TTB_SIZE)) /* End of memory */
-#define FRAME ((short *) ((char *)TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */
/* NAND Flash */
#define NFCONF (*(volatile int *)0x4E000000) /* NAND flash configuration */