summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-09-09 19:02:18 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-09-09 19:02:18 +0000
commit24ca76ffec3e0d782f75ac1cca2c0b2c8b71f5db (patch)
treef8c8476949fed16e768fb193e9e0987c4dc2d580 /firmware/export
parenta374ca96fbb7e0ea00dcc85382ee806a523373ac (diff)
downloadrockbox-24ca76ffec3e0d782f75ac1cca2c0b2c8b71f5db.tar.gz
rockbox-24ca76ffec3e0d782f75ac1cca2c0b2c8b71f5db.zip
H10 fixes: Split LCD driver up into two drivers, one for each LCD type. Improvements to 20GB LCD driver - support for enable/disable, contrast adjustment, make the update code clearer and ~4% faster, support for flipping, support for invert. Fix CPU frequency for both models. Fix default battery capacity for 5/6GB.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10910 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-h10.h23
-rw-r--r--firmware/export/config-h10_5gb.h6
2 files changed, 21 insertions, 8 deletions
diff --git a/firmware/export/config-h10.h b/firmware/export/config-h10.h
index a316cbec3f..c024fd464c 100644
--- a/firmware/export/config-h10.h
+++ b/firmware/export/config-h10.h
@@ -26,7 +26,10 @@
26#define LCD_WIDTH 160 26#define LCD_WIDTH 160
27#define LCD_HEIGHT 128 27#define LCD_HEIGHT 128
28#define LCD_DEPTH 16 /* 65536 colours */ 28#define LCD_DEPTH 16 /* 65536 colours */
29#define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */ 29#define LCD_PIXELFORMAT RGB565 /* rgb565 */
30
31/* define this if you can flip your LCD */
32#define HAVE_LCD_FLIP
30 33
31/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */ 34/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
32 35
@@ -93,13 +96,25 @@
93#define ROM_START 0x00000000 96#define ROM_START 0x00000000
94 97
95/* Define this to the CPU frequency */ 98/* Define this to the CPU frequency */
96/* TODO: this is probably wrong */ 99#define CPU_FREQ 75000000
97#define CPU_FREQ 11289600
98 100
99/* Type of LCD */ 101/* Type of LCD */
100#define CONFIG_LCD LCD_H10_20GB 102#define CONFIG_LCD LCD_H10_20GB
101 103
102#define DEFAULT_CONTRAST_SETTING 19 104/* Define this if your LCD can set contrast */
105#define HAVE_LCD_CONTRAST
106
107#define MIN_CONTRAST_SETTING 0
108#define MAX_CONTRAST_SETTING 30
109#define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */
110
111/* Define this if your LCD can be enabled/disabled */
112#define HAVE_LCD_ENABLE
113
114/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
115 * should be defined as well.
116 * We can currently put the lcd to sleep but it won't wake up properly */
117/*#define HAVE_LCD_SLEEP*/
103 118
104/* Offset ( in the firmware file's header ) to the file length */ 119/* Offset ( in the firmware file's header ) to the file length */
105#define FIRMWARE_OFFSET_FILE_LENGTH 0 120#define FIRMWARE_OFFSET_FILE_LENGTH 0
diff --git a/firmware/export/config-h10_5gb.h b/firmware/export/config-h10_5gb.h
index d3750c1a08..9ad7eede2e 100644
--- a/firmware/export/config-h10_5gb.h
+++ b/firmware/export/config-h10_5gb.h
@@ -63,7 +63,7 @@
63#define CONFIG_BACKLIGHT BL_H10 /* TODO: figure this out, probably not necessary 63#define CONFIG_BACKLIGHT BL_H10 /* TODO: figure this out, probably not necessary
64 because of target tree stuff */ 64 because of target tree stuff */
65 65
66#define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */ 66#define BATTERY_CAPACITY_DEFAULT 820 /* default battery capacity */
67 67
68#ifndef SIMULATOR 68#ifndef SIMULATOR
69 69
@@ -93,13 +93,11 @@
93 93
94/* Define this to the CPU frequency */ 94/* Define this to the CPU frequency */
95/* TODO: this is probably wrong */ 95/* TODO: this is probably wrong */
96#define CPU_FREQ 11289600 96#define CPU_FREQ 75000000
97 97
98/* Type of LCD */ 98/* Type of LCD */
99#define CONFIG_LCD LCD_H10_5GB 99#define CONFIG_LCD LCD_H10_5GB
100 100
101#define DEFAULT_CONTRAST_SETTING 19
102
103/* Offset ( in the firmware file's header ) to the file length */ 101/* Offset ( in the firmware file's header ) to the file length */
104#define FIRMWARE_OFFSET_FILE_LENGTH 0 102#define FIRMWARE_OFFSET_FILE_LENGTH 0
105 103