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.h197
1 files changed, 197 insertions, 0 deletions
diff --git a/firmware/export/config/gigabeatfx.h b/firmware/export/config/gigabeatfx.h
new file mode 100644
index 0000000000..4c06a4d134
--- /dev/null
+++ b/firmware/export/config/gigabeatfx.h
@@ -0,0 +1,197 @@
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#ifndef SIMULATOR
63#define HAVE_HARDWARE_BEEP
64#endif
65
66#endif /* BOOTLOADER */
67
68#define CONFIG_KEYPAD GIGABEAT_PAD
69
70/* Define this if you do software codec */
71#define CONFIG_CODEC SWCODEC
72
73/* define this if you have a real-time clock */
74#define CONFIG_RTC RTC_S3C2440
75
76/* define this if you have a disk storage, i.e. something
77 that needs spinups and can cause skips when shaked */
78#define HAVE_DISK_STORAGE
79
80/* Define this for LCD backlight available */
81#define HAVE_BACKLIGHT
82
83#define HAVE_BUTTON_LIGHT
84
85#define HAVE_BACKLIGHT_BRIGHTNESS
86
87#define HAVE_BUTTONLIGHT_BRIGHTNESS
88
89/* Main LCD backlight brightness range and defaults */
90#define MIN_BRIGHTNESS_SETTING 1 /* 0.5 mA */
91#define MAX_BRIGHTNESS_SETTING 12 /* 32 mA */
92#define DEFAULT_BRIGHTNESS_SETTING 10 /* 16 mA */
93
94/* Define this if you have a software controlled poweroff */
95#define HAVE_SW_POWEROFF
96
97/* The number of bytes reserved for loadable codecs */
98#define CODEC_SIZE 0x100000
99
100/* The number of bytes reserved for loadable plugins */
101#define PLUGIN_BUFFER_SIZE 0x80000
102
103#define AB_REPEAT_ENABLE 1
104
105/* Define this if you have the WM8975 audio codec */
106#define HAVE_WM8751
107
108/* Define this if you want to use the adaptive bass capibility of the 8751 */
109/* #define USE_ADAPTIVE_BASS */
110
111#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
112 SAMPR_CAP_11)
113
114/* All exact rates for 16.9344MHz clock */
115#define CODEC_SRCTRL_11025HZ (0x19 << 1)
116#define CODEC_SRCTRL_22050HZ (0x1b << 1)
117#define CODEC_SRCTRL_44100HZ (0x11 << 1)
118#define CODEC_SRCTRL_88200HZ (0x1f << 1)
119
120#define HAVE_HEADPHONE_DETECTION
121
122#define BATTERY_CAPACITY_DEFAULT 830 /* default battery capacity */
123#define BATTERY_CAPACITY_MIN 830 /* min. capacity selectable */
124#define BATTERY_CAPACITY_MAX 830 /* max. capacity selectable */
125#define BATTERY_CAPACITY_INC 25 /* capacity increment */
126#define BATTERY_TYPES_COUNT 1 /* only one type */
127
128/* Hardware controlled charging with monitoring */
129#define CONFIG_CHARGING CHARGING_MONITOR
130
131/* define current usage levels */
132#define CURRENT_NORMAL 46 /* 18 hours from an 830 mah battery*/
133#define CURRENT_BACKLIGHT 30 /* seems reasonable */
134#define CURRENT_RECORD 0 /* no recording on the gigabeat F/X */
135
136/* define this if the unit can be powered or charged via USB */
137#define HAVE_USB_POWER
138
139/* define this if the unit has a battery switch or battery can be removed
140 * when running */
141#define HAVE_BATTERY_SWITCH
142
143#ifndef SIMULATOR
144
145/* The LCD on a Gigabeat is 240x320 - it is portrait */
146#define HAVE_PORTRAIT_LCD
147
148#define HAVE_LCD_FLIP
149
150/* Define this if your LCD can set contrast */
151#define HAVE_LCD_CONTRAST
152
153#define MIN_CONTRAST_SETTING 0
154#define MAX_CONTRAST_SETTING 63
155#define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */
156
157/* LCD invert - does not currently work */
158/* #define HAVE_LCD_INVERT */
159
160/* Define this if you have a Motorola SCF5249 */
161#define CONFIG_CPU S3C2440
162
163/* Define this if you want to use coldfire's i2c interface */
164#define CONFIG_I2C I2C_S3C2440
165
166/* define this if the hardware can be powered off while charging */
167#define HAVE_POWEROFF_WHILE_CHARGING
168
169/* The size of the flash ROM */
170#define FLASH_SIZE 0x400000
171
172/* Define this to the CPU frequency */
173#define CPU_FREQ 16934400
174
175/* Define this if you have ATA power-off control */
176#define HAVE_ATA_POWER_OFF
177
178#define CONFIG_LCD LCD_GIGABEAT
179
180/* define this if the backlight can be set to a brightness */
181#define HAVE_BACKLIGHT_SET_FADING
182#define __BACKLIGHT_INIT
183
184/* Offset ( in the firmware file's header ) to the file CRC */
185#define FIRMWARE_OFFSET_FILE_CRC 0
186
187/* Offset ( in the firmware file's header ) to the real data */
188#define FIRMWARE_OFFSET_FILE_DATA 8
189
190/* Define this if you have adjustable CPU frequency */
191/* #define HAVE_ADJUSTABLE_CPU_FREQ */
192
193#define BOOTFILE_EXT "gigabeat"
194#define BOOTFILE "rockbox." BOOTFILE_EXT
195#define BOOTDIR "/.rockbox"
196
197#endif