summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorGreg White <gwhite@rockbox.org>2007-01-13 02:24:15 +0000
committerGreg White <gwhite@rockbox.org>2007-01-13 02:24:15 +0000
commit355be5010af1e33c0f3b36af85033bd31f996491 (patch)
tree1e83cefbe3d313179bda383a5ad508adaff8ffac /firmware/export
parent35b0c3f24f279eb8056e54094cb12310802f6709 (diff)
downloadrockbox-355be5010af1e33c0f3b36af85033bd31f996491.tar.gz
rockbox-355be5010af1e33c0f3b36af85033bd31f996491.zip
Setup LCD ourselves; move LCD buffer and TTB to free up 1.7MB of memory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11994 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-gigabeat.h4
-rw-r--r--firmware/export/lcd.h2
-rw-r--r--firmware/export/s3c2440.h9
3 files changed, 10 insertions, 5 deletions
diff --git a/firmware/export/config-gigabeat.h b/firmware/export/config-gigabeat.h
index 4a1d11d43a..3dbdadf621 100644
--- a/firmware/export/config-gigabeat.h
+++ b/firmware/export/config-gigabeat.h
@@ -86,7 +86,7 @@
86#define BATTERY_TYPES_COUNT 1 /* only one type */ 86#define BATTERY_TYPES_COUNT 1 /* only one type */
87 87
88/* ADC[0] is (530) at discharge and 625 at full charge */ 88/* ADC[0] is (530) at discharge and 625 at full charge */
89#define BATTERY_SCALE_FACTOR 6450 89#define BATTERY_SCALE_FACTOR 6450
90 90
91/* Hardware controlled charging with monitoring */ 91/* Hardware controlled charging with monitoring */
92#define CONFIG_CHARGING CHARGING_MONITOR 92#define CONFIG_CHARGING CHARGING_MONITOR
@@ -132,5 +132,5 @@
132#define BOOTFILE_EXT "gigabeat" 132#define BOOTFILE_EXT "gigabeat"
133#define BOOTFILE "rockbox." BOOTFILE_EXT 133#define BOOTFILE "rockbox." BOOTFILE_EXT
134 134
135 135
136#endif 136#endif
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 8a65d09fa3..37ad2b0cc2 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -347,8 +347,10 @@ extern void lcd_set_drawinfo(int mode, unsigned foreground,
347void lcd_set_backdrop(fb_data* backdrop); 347void lcd_set_backdrop(fb_data* backdrop);
348#if defined(TOSHIBA_GIGABEAT_F) && !defined(SIMULATOR) 348#if defined(TOSHIBA_GIGABEAT_F) && !defined(SIMULATOR)
349void lcd_device_prepare_backdrop(fb_data* backdrop); 349void lcd_device_prepare_backdrop(fb_data* backdrop);
350bool lcd_enabled(void);
350#else 351#else
351#define lcd_device_prepare_backdrop(x) ; 352#define lcd_device_prepare_backdrop(x) ;
353#define lcd_enabled() true
352#endif 354#endif
353 355
354fb_data* lcd_get_backdrop(void); 356fb_data* lcd_get_backdrop(void);
diff --git a/firmware/export/s3c2440.h b/firmware/export/s3c2440.h
index 3c7075acd6..4a799da3e2 100644
--- a/firmware/export/s3c2440.h
+++ b/firmware/export/s3c2440.h
@@ -143,9 +143,12 @@
143#define LCDINTMSK (*(volatile int *)0x4D00005C) /* LCD interrupt mask */ 143#define LCDINTMSK (*(volatile int *)0x4D00005C) /* LCD interrupt mask */
144#define TCONSEL (*(volatile int *)0x4D000060) /* TCON(LPC3600/LCC3600) control */ 144#define TCONSEL (*(volatile int *)0x4D000060) /* TCON(LPC3600/LCC3600) control */
145 145
146/* The following should be computed but for now, we cheat. */ 146#define LCD_BUFFER_SIZE ((320*240*2))
147#define FRAME ( (short *) 0x31E00000 ) /* LCD Frame buffer */ 147#define TTB_SIZE (0x4000)
148 148/*#define FRAME ( (short *) 0x31E00000 ) */ /* LCD Frame buffer - Firmware Address */
149/* must be 16Kb (0x4000) aligned */
150#define TTB_BASE (0x30000000 + (32*1024*1024) - TTB_SIZE) /* End of memory */
151#define FRAME ((short *) (TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */
149/* NAND Flash */ 152/* NAND Flash */
150 153
151#define NFCONF (*(volatile int *)0x4E000000) /* NAND flash configuration */ 154#define NFCONF (*(volatile int *)0x4E000000) /* NAND flash configuration */