Should clear up rest of red. Add a required #define in the config for c200. Fix up...
[kugel-rb.git] / firmware / export / config / gigabeatfx.h
blobbcb6f73a6334c228a3810d28d8f95b0a976899e2
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 the ATA controller and method of USB access support LBA48 */
17 #define HAVE_LBA48
19 /* define this if you have a bitmap LCD display */
20 #define HAVE_LCD_BITMAP
22 /* define this if you have a colour LCD */
23 #define HAVE_LCD_COLOR
25 /* define this if you want album art for this target */
26 #define HAVE_ALBUMART
28 /* define this to enable bitmap scaling */
29 #define HAVE_BMP_SCALING
31 /* define this to enable JPEG decoding */
32 #define HAVE_JPEG
34 /* define this if you have access to the quickscreen */
35 #define HAVE_QUICKSCREEN
37 /* define this if you have access to the pitchscreen */
38 #define HAVE_PITCHSCREEN
40 /* define this if you would like tagcache to build on this target */
41 #define HAVE_TAGCACHE
43 /* define this if the target has volume keys which can be used in the lists */
44 #define HAVE_VOLUME_IN_LIST
46 /* LCD dimensions */
47 #define LCD_WIDTH 240
48 #define LCD_HEIGHT 320
49 #define LCD_DEPTH 16 /* 65k colours */
50 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
52 #ifndef BOOTLOADER
53 /* Define this if your LCD can be enabled/disabled */
54 #define HAVE_LCD_ENABLE
56 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
57 should be defined as well. */
58 #define HAVE_LCD_SLEEP
59 /* We don't use a setting but a fixed delay after the backlight has
60 * turned off */
61 #define LCD_SLEEP_TIMEOUT (5*HZ)
63 #define HAVE_TOUCHPAD_SENSITIVITY_SETTING
65 #define HAVE_HARDWARE_BEEP
67 #endif /* BOOTLOADER */
69 #define CONFIG_KEYPAD GIGABEAT_PAD
71 /* Define this to enable morse code input */
72 #define HAVE_MORSE_INPUT
74 /* Define this if you do software codec */
75 #define CONFIG_CODEC SWCODEC
77 /* define this if you have a real-time clock */
78 #define CONFIG_RTC RTC_S3C2440
80 /* define this if you have a disk storage, i.e. something
81 that needs spinups and can cause skips when shaked */
82 #define HAVE_DISK_STORAGE
84 /* Define this for LCD backlight available */
85 #define HAVE_BACKLIGHT
87 #define HAVE_BUTTON_LIGHT
89 #define HAVE_BACKLIGHT_BRIGHTNESS
91 #define HAVE_BUTTONLIGHT_BRIGHTNESS
93 /* Main LCD backlight brightness range and defaults */
94 #define MIN_BRIGHTNESS_SETTING 1 /* 0.5 mA */
95 #define MAX_BRIGHTNESS_SETTING 12 /* 32 mA */
96 #define DEFAULT_BRIGHTNESS_SETTING 10 /* 16 mA */
98 /* Define this if you have a software controlled poweroff */
99 #define HAVE_SW_POWEROFF
101 /* The number of bytes reserved for loadable codecs */
102 #define CODEC_SIZE 0x100000
104 /* The number of bytes reserved for loadable plugins */
105 #define PLUGIN_BUFFER_SIZE 0x80000
107 #define AB_REPEAT_ENABLE 1
109 /* Define this if you have the WM8975 audio codec */
110 #define HAVE_WM8751
112 /* Define this if you want to use the adaptive bass capibility of the 8751 */
113 /* #define USE_ADAPTIVE_BASS */
115 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
116 SAMPR_CAP_11)
118 /* All exact rates for 16.9344MHz clock */
119 #define CODEC_SRCTRL_11025HZ (0x19 << 1)
120 #define CODEC_SRCTRL_22050HZ (0x1b << 1)
121 #define CODEC_SRCTRL_44100HZ (0x11 << 1)
122 #define CODEC_SRCTRL_88200HZ (0x1f << 1)
124 #define HAVE_HEADPHONE_DETECTION
126 #define BATTERY_CAPACITY_DEFAULT 830 /* default battery capacity */
127 #define BATTERY_CAPACITY_MIN 830 /* min. capacity selectable */
128 #define BATTERY_CAPACITY_MAX 830 /* max. capacity selectable */
129 #define BATTERY_CAPACITY_INC 25 /* capacity increment */
130 #define BATTERY_TYPES_COUNT 1 /* only one type */
132 /* Hardware controlled charging with monitoring */
133 #define CONFIG_CHARGING CHARGING_MONITOR
135 /* define current usage levels */
136 #define CURRENT_NORMAL 46 /* 18 hours from an 830 mah battery*/
137 #define CURRENT_BACKLIGHT 30 /* seems reasonable */
138 #define CURRENT_RECORD 0 /* no recording on the gigabeat F/X */
140 /* define this if the unit can be powered or charged via USB */
141 #define HAVE_USB_POWER
143 /* define this if the unit has a battery switch or battery can be removed
144 * when running */
145 #define HAVE_BATTERY_SWITCH
147 #define HAVE_LCD_FLIP
149 /* Define this if your LCD can set contrast */
150 #define HAVE_LCD_CONTRAST
152 #define MIN_CONTRAST_SETTING 0
153 #define MAX_CONTRAST_SETTING 63
154 #define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */
156 /* LCD invert - does not currently work */
157 /* #define HAVE_LCD_INVERT */
159 /* Define this if you have a Motorola SCF5249 */
160 #define CONFIG_CPU S3C2440
162 /* Define this if you want to use coldfire's i2c interface */
163 #define CONFIG_I2C I2C_S3C2440
165 /* define this if the hardware can be powered off while charging */
166 #define HAVE_POWEROFF_WHILE_CHARGING
168 /* The size of the flash ROM */
169 #define FLASH_SIZE 0x400000
171 /* Define this to the CPU frequency */
172 #define CPU_FREQ 294940800
174 /* Define this if you have ATA power-off control */
175 #define HAVE_ATA_POWER_OFF
177 #define CONFIG_LCD LCD_GIGABEAT
179 /* Offset ( in the firmware file's header ) to the file CRC */
180 #define FIRMWARE_OFFSET_FILE_CRC 0
182 /* Offset ( in the firmware file's header ) to the real data */
183 #define FIRMWARE_OFFSET_FILE_DATA 8
185 /* Define this if you have adjustable CPU frequency */
186 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
188 #define BOOTFILE_EXT "gigabeat"
189 #define BOOTFILE "rockbox." BOOTFILE_EXT
190 #define BOOTDIR "/.rockbox"
192 /* Define this if a programmable hotkey is mapped */
193 #define HAVE_HOTKEY