Fix red: broken tools/addtargetdir.pl
[kugel-rb.git] / firmware / export / config-gigabeat.h
bloba6ec25d34f744b59270e2e5f70ccea824e4c17eb
1 /*
2 * This config file is for toshiba Gigabeat F
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 #define TOSHIBA_GIGABEAT_F 1
8 #define MODEL_NAME "Toshiba Gigabeat F"
10 /* For Rolo and boot loader */
11 #define MODEL_NUMBER 18
13 /* define this if you use an ATA controller */
14 #define CONFIG_STORAGE STORAGE_ATA
16 /* define this if you have a bitmap LCD display */
17 #define HAVE_LCD_BITMAP
19 /* define this if you have a colour LCD */
20 #define HAVE_LCD_COLOR
22 /* define this if you want album art for this target */
23 #define HAVE_ALBUMART
25 /* define this to enable bitmap scaling */
26 #define HAVE_BMP_SCALING
28 /* define this to enable JPEG decoding */
29 #define HAVE_JPEG
31 /* define this if you have access to the quickscreen */
32 #define HAVE_QUICKSCREEN
34 /* define this if you have access to the pitchscreen */
35 #define HAVE_PITCHSCREEN
37 /* define this if you would like tagcache to build on this target */
38 #define HAVE_TAGCACHE
40 /* define this if the target has volume keys which can be used in the lists */
41 #define HAVE_VOLUME_IN_LIST
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 */
49 #ifndef BOOTLOADER
50 /* Define this if your LCD can be enabled/disabled */
51 #define HAVE_LCD_ENABLE
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)
60 #define HAVE_TOUCHPAD_SENSITIVITY_SETTING
62 #ifndef SIMULATOR
63 #define HAVE_HARDWARE_BEEP
64 #endif
66 #endif /* BOOTLOADER */
68 #define CONFIG_KEYPAD GIGABEAT_PAD
70 /* Define this if you do software codec */
71 #define CONFIG_CODEC SWCODEC
73 /* define this if you have a real-time clock */
74 #define CONFIG_RTC RTC_S3C2440
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
80 /* Define this for LCD backlight available */
81 #define HAVE_BACKLIGHT
83 #define HAVE_BUTTON_LIGHT
85 #define HAVE_BACKLIGHT_BRIGHTNESS
87 #define HAVE_BUTTONLIGHT_BRIGHTNESS
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 */
94 /* Define this if you have a software controlled poweroff */
95 #define HAVE_SW_POWEROFF
97 /* The number of bytes reserved for loadable codecs */
98 #define CODEC_SIZE 0x100000
100 /* The number of bytes reserved for loadable plugins */
101 #define PLUGIN_BUFFER_SIZE 0x80000
103 #define AB_REPEAT_ENABLE 1
105 /* Define this if you have the WM8975 audio codec */
106 #define HAVE_WM8751
108 /* Define this if you want to use the adaptive bass capibility of the 8751 */
109 /* #define USE_ADAPTIVE_BASS */
111 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
112 SAMPR_CAP_11)
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)
120 #define HAVE_HEADPHONE_DETECTION
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 */
128 /* Hardware controlled charging with monitoring */
129 #define CONFIG_CHARGING CHARGING_MONITOR
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 */
136 /* define this if the unit can be powered or charged via USB */
137 #define HAVE_USB_POWER
139 /* define this if the unit has a battery switch or battery can be removed
140 * when running */
141 #define HAVE_BATTERY_SWITCH
143 #ifndef SIMULATOR
145 /* The LCD on a Gigabeat is 240x320 - it is portrait */
146 #define HAVE_PORTRAIT_LCD
148 #define HAVE_LCD_FLIP
150 /* Define this if your LCD can set contrast */
151 #define HAVE_LCD_CONTRAST
153 #define MIN_CONTRAST_SETTING 0
154 #define MAX_CONTRAST_SETTING 63
155 #define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */
157 /* LCD invert - does not currently work */
158 /* #define HAVE_LCD_INVERT */
160 /* Define this if you have a Motorola SCF5249 */
161 #define CONFIG_CPU S3C2440
163 /* Define this if you want to use coldfire's i2c interface */
164 #define CONFIG_I2C I2C_S3C2440
166 /* define this if the hardware can be powered off while charging */
167 #define HAVE_POWEROFF_WHILE_CHARGING
169 /* The size of the flash ROM */
170 #define FLASH_SIZE 0x400000
172 /* Define this to the CPU frequency */
173 #define CPU_FREQ 16934400
175 /* Define this if you have ATA power-off control */
176 #define HAVE_ATA_POWER_OFF
178 /* Virtual LED (icon) */
179 #define CONFIG_LED LED_VIRTUAL
181 #define CONFIG_LCD LCD_GIGABEAT
183 /* define this if the backlight can be set to a brightness */
184 #define HAVE_BACKLIGHT_SET_FADING
185 #define __BACKLIGHT_INIT
187 /* Offset ( in the firmware file's header ) to the file CRC */
188 #define FIRMWARE_OFFSET_FILE_CRC 0
190 /* Offset ( in the firmware file's header ) to the real data */
191 #define FIRMWARE_OFFSET_FILE_DATA 8
193 /* Define this if you have adjustable CPU frequency */
194 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
196 #define BOOTFILE_EXT "gigabeat"
197 #define BOOTFILE "rockbox." BOOTFILE_EXT
198 #define BOOTDIR "/.rockbox"
200 #endif