Remove .a files before running ar, to avoid problems with renamed files remaining...
[kugel-rb.git] / firmware / export / config-gigabeat.h
blob0c5462400b60f24ebf30ac4a4a9100e94a6adf26
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 if you have access to the quickscreen */
26 #define HAVE_QUICKSCREEN
28 /* define this if you have access to the pitchscreen */
29 #define HAVE_PITCHSCREEN
31 /* define this if you would like tagcache to build on this target */
32 #define HAVE_TAGCACHE
34 /* define this if the target has volume keys which can be used in the lists */
35 #define HAVE_VOLUME_IN_LIST
37 /* LCD dimensions */
38 #define LCD_WIDTH 240
39 #define LCD_HEIGHT 320
40 #define LCD_DEPTH 16 /* 65k colours */
41 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
43 #ifndef BOOTLOADER
44 /* Define this if your LCD can be enabled/disabled */
45 #define HAVE_LCD_ENABLE
47 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
48 should be defined as well. */
49 #define HAVE_LCD_SLEEP
50 /* We don't use a setting but a fixed delay after the backlight has
51 * turned off */
52 #define LCD_SLEEP_TIMEOUT (5*HZ)
54 #define HAVE_TOUCHPAD_SENSITIVITY_SETTING
55 #endif /* BOOTLOADER */
57 #define CONFIG_KEYPAD GIGABEAT_PAD
59 /* Define this if you do software codec */
60 #define CONFIG_CODEC SWCODEC
62 /* define this if you have a real-time clock */
63 #define CONFIG_RTC RTC_S3C2440
65 /* define this if you have a disk storage, i.e. something
66 that needs spinups and can cause skips when shaked */
67 #define HAVE_DISK_STORAGE
69 /* Define this for LCD backlight available */
70 #define HAVE_BACKLIGHT
72 #define HAVE_BUTTON_LIGHT
74 #define HAVE_BACKLIGHT_BRIGHTNESS
76 #define HAVE_BUTTONLIGHT_BRIGHTNESS
78 /* Main LCD backlight brightness range and defaults */
79 #define MIN_BRIGHTNESS_SETTING 1 /* 0.5 mA */
80 #define MAX_BRIGHTNESS_SETTING 12 /* 32 mA */
81 #define DEFAULT_BRIGHTNESS_SETTING 10 /* 16 mA */
83 /* Define this if you have a software controlled poweroff */
84 #define HAVE_SW_POWEROFF
86 /* The number of bytes reserved for loadable codecs */
87 #define CODEC_SIZE 0x100000
89 /* The number of bytes reserved for loadable plugins */
90 #define PLUGIN_BUFFER_SIZE 0x80000
92 #define AB_REPEAT_ENABLE 1
94 /* Define this if you have the WM8975 audio codec */
95 #define HAVE_WM8751
97 /* Define this if you want to use the adaptive bass capibility of the 8751 */
98 /* #define USE_ADAPTIVE_BASS */
100 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
101 SAMPR_CAP_11)
103 #define HAVE_HEADPHONE_DETECTION
105 #define BATTERY_CAPACITY_DEFAULT 2000 /* default battery capacity */
106 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
107 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
108 #define BATTERY_CAPACITY_INC 25 /* capacity increment */
109 #define BATTERY_TYPES_COUNT 1 /* only one type */
111 /* Hardware controlled charging with monitoring */
112 #define CONFIG_CHARGING CHARGING_MONITOR
114 /* define this if the unit can be powered or charged via USB */
115 #define HAVE_USB_POWER
117 #ifndef SIMULATOR
119 /* The LCD on a Gigabeat is 240x320 - it is portrait */
120 #define HAVE_PORTRAIT_LCD
122 #define HAVE_LCD_FLIP
124 /* Define this if your LCD can set contrast */
125 #define HAVE_LCD_CONTRAST
127 #define MIN_CONTRAST_SETTING 0
128 #define MAX_CONTRAST_SETTING 63
129 #define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */
131 /* LCD invert - does not currently work */
132 /* #define HAVE_LCD_INVERT */
134 /* Define this if you have a Motorola SCF5249 */
135 #define CONFIG_CPU S3C2440
137 /* Define this if you want to use coldfire's i2c interface */
138 #define CONFIG_I2C I2C_S3C2440
140 /* define this if the hardware can be powered off while charging */
141 #define HAVE_POWEROFF_WHILE_CHARGING
143 /* The size of the flash ROM */
144 #define FLASH_SIZE 0x400000
146 /* Define this to the CPU frequency */
147 #define CPU_FREQ 16934400
149 /* Define this if you have ATA power-off control */
150 #define HAVE_ATA_POWER_OFF
152 /* Virtual LED (icon) */
153 #define CONFIG_LED LED_VIRTUAL
155 #define CONFIG_LCD LCD_GIGABEAT
157 /* define this if the backlight can be set to a brightness */
158 #define HAVE_BACKLIGHT_SET_FADING
159 #define __BACKLIGHT_INIT
161 /* Offset ( in the firmware file's header ) to the file CRC */
162 #define FIRMWARE_OFFSET_FILE_CRC 0
164 /* Offset ( in the firmware file's header ) to the real data */
165 #define FIRMWARE_OFFSET_FILE_DATA 8
167 /* Define this if you have adjustable CPU frequency */
168 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
170 #define BOOTFILE_EXT "gigabeat"
171 #define BOOTFILE "rockbox." BOOTFILE_EXT
172 #define BOOTDIR "/.rockbox"
174 #endif