summaryrefslogtreecommitdiff
path: root/firmware/export/config/gigabeatfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config/gigabeatfx.h')
-rw-r--r--firmware/export/config/gigabeatfx.h188
1 files changed, 188 insertions, 0 deletions
diff --git a/firmware/export/config/gigabeatfx.h b/firmware/export/config/gigabeatfx.h
new file mode 100644
index 0000000000..363312a415
--- /dev/null
+++ b/firmware/export/config/gigabeatfx.h
@@ -0,0 +1,188 @@
1/*
2 * This config file is for toshiba Gigabeat F
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6#define TOSHIBA_GIGABEAT_F 1
7
8#define MODEL_NAME "Toshiba Gigabeat F"
9
10/* For Rolo and boot loader */
11#define MODEL_NUMBER 18
12
13/* define this if you use an ATA controller */
14#define CONFIG_STORAGE STORAGE_ATA
15
16/* define this if you have a bitmap LCD display */
17#define HAVE_LCD_BITMAP
18
19/* define this if you have a colour LCD */
20#define HAVE_LCD_COLOR
21
22/* define this if you want album art for this target */
23#define HAVE_ALBUMART
24
25/* define this to enable bitmap scaling */
26#define HAVE_BMP_SCALING
27
28/* define this to enable JPEG decoding */
29#define HAVE_JPEG
30
31/* define this if you have access to the quickscreen */
32#define HAVE_QUICKSCREEN
33
34/* define this if you have access to the pitchscreen */
35#define HAVE_PITCHSCREEN
36
37/* define this if you would like tagcache to build on this target */
38#define HAVE_TAGCACHE
39
40/* define this if the target has volume keys which can be used in the lists */
41#define HAVE_VOLUME_IN_LIST
42
43/* LCD dimensions */
44#define LCD_WIDTH 240
45#define LCD_HEIGHT 320
46#define LCD_DEPTH 16 /* 65k colours */
47#define LCD_PIXELFORMAT RGB565 /* rgb565 */
48
49#ifndef BOOTLOADER
50/* Define this if your LCD can be enabled/disabled */
51#define HAVE_LCD_ENABLE
52
53/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
54 should be defined as well. */
55#define HAVE_LCD_SLEEP
56/* We don't use a setting but a fixed delay after the backlight has
57 * turned off */
58#define LCD_SLEEP_TIMEOUT (5*HZ)
59
60#define HAVE_TOUCHPAD_SENSITIVITY_SETTING
61
62#define HAVE_HARDWARE_BEEP
63
64#endif /* BOOTLOADER */
65
66#define CONFIG_KEYPAD GIGABEAT_PAD
67
68/* Define this to enable morse code input */
69#define HAVE_MORSE_INPUT
70
71/* Define this if you do software codec */
72#define CONFIG_CODEC SWCODEC
73
74/* define this if you have a real-time clock */
75#define CONFIG_RTC RTC_S3C2440
76
77/* define this if you have a disk storage, i.e. something
78 that needs spinups and can cause skips when shaked */
79#define HAVE_DISK_STORAGE
80
81/* Define this for LCD backlight available */
82#define HAVE_BACKLIGHT
83
84#define HAVE_BUTTON_LIGHT
85
86#define HAVE_BACKLIGHT_BRIGHTNESS
87
88#define HAVE_BUTTONLIGHT_BRIGHTNESS
89
90/* Main LCD backlight brightness range and defaults */
91#define MIN_BRIGHTNESS_SETTING 1 /* 0.5 mA */
92#define MAX_BRIGHTNESS_SETTING 12 /* 32 mA */
93#define DEFAULT_BRIGHTNESS_SETTING 10 /* 16 mA */
94
95/* Define this if you have a software controlled poweroff */
96#define HAVE_SW_POWEROFF
97
98/* The number of bytes reserved for loadable codecs */
99#define CODEC_SIZE 0x100000
100
101/* The number of bytes reserved for loadable plugins */
102#define PLUGIN_BUFFER_SIZE 0x80000
103
104#define AB_REPEAT_ENABLE 1
105
106/* Define this if you have the WM8975 audio codec */
107#define HAVE_WM8751
108
109/* Define this if you want to use the adaptive bass capibility of the 8751 */
110/* #define USE_ADAPTIVE_BASS */
111
112#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
113 SAMPR_CAP_11)
114
115/* All exact rates for 16.9344MHz clock */
116#define CODEC_SRCTRL_11025HZ (0x19 << 1)
117#define CODEC_SRCTRL_22050HZ (0x1b << 1)
118#define CODEC_SRCTRL_44100HZ (0x11 << 1)
119#define CODEC_SRCTRL_88200HZ (0x1f << 1)
120
121#define HAVE_HEADPHONE_DETECTION
122
123#define BATTERY_CAPACITY_DEFAULT 830 /* default battery capacity */
124#define BATTERY_CAPACITY_MIN 830 /* min. capacity selectable */
125#define BATTERY_CAPACITY_MAX 830 /* max. capacity selectable */
126#define BATTERY_CAPACITY_INC 25 /* capacity increment */
127#define BATTERY_TYPES_COUNT 1 /* only one type */
128
129/* Hardware controlled charging with monitoring */
130#define CONFIG_CHARGING CHARGING_MONITOR
131
132/* define current usage levels */
133#define CURRENT_NORMAL 46 /* 18 hours from an 830 mah battery*/
134#define CURRENT_BACKLIGHT 30 /* seems reasonable */
135#define CURRENT_RECORD 0 /* no recording on the gigabeat F/X */
136
137/* define this if the unit can be powered or charged via USB */
138#define HAVE_USB_POWER
139
140/* define this if the unit has a battery switch or battery can be removed
141 * when running */
142#define HAVE_BATTERY_SWITCH
143
144#define HAVE_LCD_FLIP
145
146/* Define this if your LCD can set contrast */
147#define HAVE_LCD_CONTRAST
148
149#define MIN_CONTRAST_SETTING 0
150#define MAX_CONTRAST_SETTING 63
151#define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */
152
153/* LCD invert - does not currently work */
154/* #define HAVE_LCD_INVERT */
155
156/* Define this if you have a Motorola SCF5249 */
157#define CONFIG_CPU S3C2440
158
159/* Define this if you want to use coldfire's i2c interface */
160#define CONFIG_I2C I2C_S3C2440
161
162/* define this if the hardware can be powered off while charging */
163#define HAVE_POWEROFF_WHILE_CHARGING
164
165/* The size of the flash ROM */
166#define FLASH_SIZE 0x400000
167
168/* Define this to the CPU frequency */
169#define CPU_FREQ 16934400
170
171/* Define this if you have ATA power-off control */
172#define HAVE_ATA_POWER_OFF
173
174#define CONFIG_LCD LCD_GIGABEAT
175
176/* Offset ( in the firmware file's header ) to the file CRC */
177#define FIRMWARE_OFFSET_FILE_CRC 0
178
179/* Offset ( in the firmware file's header ) to the real data */
180#define FIRMWARE_OFFSET_FILE_DATA 8
181
182/* Define this if you have adjustable CPU frequency */
183/* #define HAVE_ADJUSTABLE_CPU_FREQ */
184
185#define BOOTFILE_EXT "gigabeat"
186#define BOOTFILE "rockbox." BOOTFILE_EXT
187#define BOOTDIR "/.rockbox"
188