summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-gigabeat.h52
-rw-r--r--firmware/export/config.h1
2 files changed, 35 insertions, 18 deletions
diff --git a/firmware/export/config-gigabeat.h b/firmware/export/config-gigabeat.h
index ea72c348ea..b458a0eccd 100644
--- a/firmware/export/config-gigabeat.h
+++ b/firmware/export/config-gigabeat.h
@@ -14,6 +14,12 @@
14/* define this if you have a colour LCD */ 14/* define this if you have a colour LCD */
15#define HAVE_LCD_COLOR 1 15#define HAVE_LCD_COLOR 1
16 16
17/* define this if you have access to the quickscreen */
18#define HAVE_QUICKSCREEN
19
20/* define this if you have access to the pitchscreen */
21#define HAVE_PITCHSCREEN
22
17/* define this if you would like tagcache to build on this target */ 23/* define this if you would like tagcache to build on this target */
18#define HAVE_TAGCACHE 24#define HAVE_TAGCACHE
19 25
@@ -30,14 +36,24 @@
30#define CONFIG_CODEC SWCODEC 36#define CONFIG_CODEC SWCODEC
31 37
32/* define this if you have a real-time clock */ 38/* define this if you have a real-time clock */
33
34#if 0 /* TODO */
35#define CONFIG_RTC RTC_S3C2440 39#define CONFIG_RTC RTC_S3C2440
36#endif 40
41/* define this if the unit can be powered or charged via USB */
42#define HAVE_USB_POWER
37 43
38/* Define this for LCD backlight available */ 44/* Define this for LCD backlight available */
39#define CONFIG_BACKLIGHT BL_GIGABEAT /* port controlled PWM */ 45#define CONFIG_BACKLIGHT BL_GIGABEAT /* port controlled PWM */
40 46
47#define HAVE_BACKLIGHT_BRIGHTNESS
48
49/* Main LCD backlight brightness range and defaults */
50#define MIN_BRIGHTNESS_SETTING 0 /* 0.5 mA */
51#define MIN_ACTIVE_BRIGHTNESS_SETTING 16 /* lowest active brightness */
52#define MAX_DIM_BRIGHTNESS_SETTING 15 /* highest 'dimness' */
53#define MAX_BRIGHTNESS_SETTING 63 /* 32 mA */
54#define DEFAULT_BRIGHTNESS_SETTING 39 /* 20 mA */
55#define DEFAULT_DIMNESS_SETTING 9 /* 5 mA */
56
41/* Define this if you have a software controlled poweroff */ 57/* Define this if you have a software controlled poweroff */
42#define HAVE_SW_POWEROFF 58#define HAVE_SW_POWEROFF
43 59
@@ -54,23 +70,27 @@
54 70
55#ifndef SIMULATOR 71#ifndef SIMULATOR
56 72
73/* The LCD on a Gigabeat is 240x320 - it is portrait */
74#define HAVE_PORTRAIT_LCD
75
57/* Define this if you have a Motorola SCF5249 */ 76/* Define this if you have a Motorola SCF5249 */
58#define CONFIG_CPU S3C2440 77#define CONFIG_CPU S3C2440
59 78
60/* Define this if you want to use coldfire's i2c interface */ 79/* Define this if you want to use coldfire's i2c interface */
61#define CONFIG_I2C I2C_S3C2440 80#define CONFIG_I2C I2C_S3C2440
62 81
63/* Type of mobile power */ 82/* Type of mobile power - check this out */
64#define CONFIG_BATTERY BATT_LIPOL1300 83#define CONFIG_BATTERY BATT_LIION830 /* could change this later */
65#define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */ 84#define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
66#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ 85#define BATTERY_CAPACITY_MAX 850 /* max. capacity selectable */
67#define BATTERY_CAPACITY_INC 50 /* capacity increment */ 86#define BATTERY_CAPACITY_INC 25 /* capacity increment */
68#define BATTERY_TYPES_COUNT 1 /* only one type */ 87#define BATTERY_TYPES_COUNT 1 /* only one type */
69 88
70#define BATTERY_SCALE_FACTOR 6852 /* FIX: this value is picked at random */ 89/* ADC[0] is (530) at discharge and 625 at full charge */
90#define BATTERY_SCALE_FACTOR 6450
71 91
72/* Hardware controlled charging? FIXME */ 92/* Hardware controlled charging with monitoring */
73#define CONFIG_CHARGING CHARGING_SIMPLE 93#define CONFIG_CHARGING CHARGING_MONITOR
74 94
75/* define this if the hardware can be powered off while charging */ 95/* define this if the hardware can be powered off while charging */
76#define HAVE_POWEROFF_WHILE_CHARGING 96#define HAVE_POWEROFF_WHILE_CHARGING
@@ -82,9 +102,7 @@
82#define CPU_FREQ 16934400 102#define CPU_FREQ 16934400
83 103
84/* Define this if you have ATA power-off control */ 104/* Define this if you have ATA power-off control */
85#if 0 /* TODO */
86#define HAVE_ATA_POWER_OFF 105#define HAVE_ATA_POWER_OFF
87#endif
88 106
89/* Virtual LED (icon) */ 107/* Virtual LED (icon) */
90#define CONFIG_LED LED_VIRTUAL 108#define CONFIG_LED LED_VIRTUAL
@@ -99,6 +117,7 @@
99 117
100#define USB_GIGABEAT_STYLE 118#define USB_GIGABEAT_STYLE
101 119
120#define HAVE_HEADPHONE_DETECTION
102/* Define this if you have adjustable CPU frequency */ 121/* Define this if you have adjustable CPU frequency */
103#if 0 /* TODO */ 122#if 0 /* TODO */
104#define HAVE_ADJUSTABLE_CPU_FREQ 123#define HAVE_ADJUSTABLE_CPU_FREQ
@@ -107,8 +126,5 @@
107#define BOOTFILE_EXT "gigabeat" 126#define BOOTFILE_EXT "gigabeat"
108#define BOOTFILE "rockbox." BOOTFILE_EXT 127#define BOOTFILE "rockbox." BOOTFILE_EXT
109 128
110#if 0 /* TODO */ 129
111#define HAVE_BACKLIGHT_BRIGHTNESS
112#endif
113
114#endif 130#endif
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 68a4920d59..e37cc3f782 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -74,6 +74,7 @@
74#define BATT_LIPOL1300 1300 /* the type used in iRiver h1x0 models */ 74#define BATT_LIPOL1300 1300 /* the type used in iRiver h1x0 models */
75#define BATT_LPCS355385 1550 /* iriver h10 20Gb - SKC LPCS355385 */ 75#define BATT_LPCS355385 1550 /* iriver h10 20Gb - SKC LPCS355385 */
76#define BATT_BP009 820 /* iriver H10 5/6Gb - iriver BP009 */ 76#define BATT_BP009 820 /* iriver H10 5/6Gb - iriver BP009 */
77#define BATT_LIION830 830 /* Toshiba Gigabeat Fxx and Xxx series MK11-2740 */
77 78
78/* CONFIG_CHARGING */ 79/* CONFIG_CHARGING */
79#define CHARGING_SIMPLE 1 /* Simple, hardware controlled charging */ 80#define CHARGING_SIMPLE 1 /* Simple, hardware controlled charging */