Bring consistency to pcm implementation and samplerate handling. Less low-level dupli...
[kugel-rb.git] / firmware / export / config-gigabeat.h
blob708c17fd8a6db47a644bba3305d723c5f7050165
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
56 #ifndef SIMULATOR
57 #define HAVE_HARDWARE_BEEP
58 #endif
60 #endif /* BOOTLOADER */
62 #define CONFIG_KEYPAD GIGABEAT_PAD
64 /* Define this if you do software codec */
65 #define CONFIG_CODEC SWCODEC
67 /* define this if you have a real-time clock */
68 #define CONFIG_RTC RTC_S3C2440
70 /* define this if you have a disk storage, i.e. something
71 that needs spinups and can cause skips when shaked */
72 #define HAVE_DISK_STORAGE
74 /* Define this for LCD backlight available */
75 #define HAVE_BACKLIGHT
77 #define HAVE_BUTTON_LIGHT
79 #define HAVE_BACKLIGHT_BRIGHTNESS
81 #define HAVE_BUTTONLIGHT_BRIGHTNESS
83 /* Main LCD backlight brightness range and defaults */
84 #define MIN_BRIGHTNESS_SETTING 1 /* 0.5 mA */
85 #define MAX_BRIGHTNESS_SETTING 12 /* 32 mA */
86 #define DEFAULT_BRIGHTNESS_SETTING 10 /* 16 mA */
88 /* Define this if you have a software controlled poweroff */
89 #define HAVE_SW_POWEROFF
91 /* The number of bytes reserved for loadable codecs */
92 #define CODEC_SIZE 0x100000
94 /* The number of bytes reserved for loadable plugins */
95 #define PLUGIN_BUFFER_SIZE 0x80000
97 #define AB_REPEAT_ENABLE 1
99 /* Define this if you have the WM8975 audio codec */
100 #define HAVE_WM8751
102 /* Define this if you want to use the adaptive bass capibility of the 8751 */
103 /* #define USE_ADAPTIVE_BASS */
105 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
106 SAMPR_CAP_11)
108 /* All exact rates for 16.9344MHz clock */
109 #define CODEC_SRCTRL_11025HZ (0x19 << 1)
110 #define CODEC_SRCTRL_22050HZ (0x1b << 1)
111 #define CODEC_SRCTRL_44100HZ (0x11 << 1)
112 #define CODEC_SRCTRL_88200HZ (0x1f << 1)
114 #define HAVE_HEADPHONE_DETECTION
116 #define BATTERY_CAPACITY_DEFAULT 2000 /* default battery capacity */
117 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
118 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
119 #define BATTERY_CAPACITY_INC 25 /* capacity increment */
120 #define BATTERY_TYPES_COUNT 1 /* only one type */
122 /* Hardware controlled charging with monitoring */
123 #define CONFIG_CHARGING CHARGING_MONITOR
125 /* define this if the unit can be powered or charged via USB */
126 #define HAVE_USB_POWER
128 /* define this if the unit has a battery switch or battery can be removed
129 * when running */
130 #define HAVE_BATTERY_SWITCH
132 #ifndef SIMULATOR
134 /* The LCD on a Gigabeat is 240x320 - it is portrait */
135 #define HAVE_PORTRAIT_LCD
137 #define HAVE_LCD_FLIP
139 /* Define this if your LCD can set contrast */
140 #define HAVE_LCD_CONTRAST
142 #define MIN_CONTRAST_SETTING 0
143 #define MAX_CONTRAST_SETTING 63
144 #define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */
146 /* LCD invert - does not currently work */
147 /* #define HAVE_LCD_INVERT */
149 /* Define this if you have a Motorola SCF5249 */
150 #define CONFIG_CPU S3C2440
152 /* Define this if you want to use coldfire's i2c interface */
153 #define CONFIG_I2C I2C_S3C2440
155 /* define this if the hardware can be powered off while charging */
156 #define HAVE_POWEROFF_WHILE_CHARGING
158 /* The size of the flash ROM */
159 #define FLASH_SIZE 0x400000
161 /* Define this to the CPU frequency */
162 #define CPU_FREQ 16934400
164 /* Define this if you have ATA power-off control */
165 #define HAVE_ATA_POWER_OFF
167 /* Virtual LED (icon) */
168 #define CONFIG_LED LED_VIRTUAL
170 #define CONFIG_LCD LCD_GIGABEAT
172 /* define this if the backlight can be set to a brightness */
173 #define HAVE_BACKLIGHT_SET_FADING
174 #define __BACKLIGHT_INIT
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"
189 #endif