Gigibeat S Manual - redo r23795 to look like it was originally meant to look.
[kugel-rb.git] / firmware / export / config-gigabeat.h
blob363312a41577bad7f7bfb3901c1e7274d7da6139
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 #define HAVE_HARDWARE_BEEP
64 #endif /* BOOTLOADER */
66 #define CONFIG_KEYPAD GIGABEAT_PAD
68 /* Define this to enable morse code input */
69 #define HAVE_MORSE_INPUT
71 /* Define this if you do software codec */
72 #define CONFIG_CODEC SWCODEC
74 /* define this if you have a real-time clock */
75 #define CONFIG_RTC RTC_S3C2440
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
81 /* Define this for LCD backlight available */
82 #define HAVE_BACKLIGHT
84 #define HAVE_BUTTON_LIGHT
86 #define HAVE_BACKLIGHT_BRIGHTNESS
88 #define HAVE_BUTTONLIGHT_BRIGHTNESS
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 */
95 /* Define this if you have a software controlled poweroff */
96 #define HAVE_SW_POWEROFF
98 /* The number of bytes reserved for loadable codecs */
99 #define CODEC_SIZE 0x100000
101 /* The number of bytes reserved for loadable plugins */
102 #define PLUGIN_BUFFER_SIZE 0x80000
104 #define AB_REPEAT_ENABLE 1
106 /* Define this if you have the WM8975 audio codec */
107 #define HAVE_WM8751
109 /* Define this if you want to use the adaptive bass capibility of the 8751 */
110 /* #define USE_ADAPTIVE_BASS */
112 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
113 SAMPR_CAP_11)
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)
121 #define HAVE_HEADPHONE_DETECTION
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 */
129 /* Hardware controlled charging with monitoring */
130 #define CONFIG_CHARGING CHARGING_MONITOR
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 */
137 /* define this if the unit can be powered or charged via USB */
138 #define HAVE_USB_POWER
140 /* define this if the unit has a battery switch or battery can be removed
141 * when running */
142 #define HAVE_BATTERY_SWITCH
144 #define HAVE_LCD_FLIP
146 /* Define this if your LCD can set contrast */
147 #define HAVE_LCD_CONTRAST
149 #define MIN_CONTRAST_SETTING 0
150 #define MAX_CONTRAST_SETTING 63
151 #define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */
153 /* LCD invert - does not currently work */
154 /* #define HAVE_LCD_INVERT */
156 /* Define this if you have a Motorola SCF5249 */
157 #define CONFIG_CPU S3C2440
159 /* Define this if you want to use coldfire's i2c interface */
160 #define CONFIG_I2C I2C_S3C2440
162 /* define this if the hardware can be powered off while charging */
163 #define HAVE_POWEROFF_WHILE_CHARGING
165 /* The size of the flash ROM */
166 #define FLASH_SIZE 0x400000
168 /* Define this to the CPU frequency */
169 #define CPU_FREQ 16934400
171 /* Define this if you have ATA power-off control */
172 #define HAVE_ATA_POWER_OFF
174 #define CONFIG_LCD LCD_GIGABEAT
176 /* Offset ( in the firmware file's header ) to the file CRC */
177 #define FIRMWARE_OFFSET_FILE_CRC 0
179 /* Offset ( in the firmware file's header ) to the real data */
180 #define FIRMWARE_OFFSET_FILE_DATA 8
182 /* Define this if you have adjustable CPU frequency */
183 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
185 #define BOOTFILE_EXT "gigabeat"
186 #define BOOTFILE "rockbox." BOOTFILE_EXT
187 #define BOOTDIR "/.rockbox"