Don't set CONFIG_CPU for __PCTOOL__, to avoid wrong asm
[maemo-rb.git] / firmware / export / config / sansae200.h
blobd022f567c62da2219b9100d215e8093454b6b2e9
1 /*
2 * This config file is for the Sandisk Sansa e200
3 */
5 /* For Rolo and boot loader */
6 #define MODEL_NUMBER 16
7 #define MODEL_NAME "Sandisk Sansa e200 series"
9 #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32)
11 /* define this if you have recording possibility */
12 #define HAVE_RECORDING
14 #define REC_SAMPR_CAPS (SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16)
15 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
16 #define REC_SAMPR_DEFAULT SAMPR_22
18 /* because the samplerates don't match at each point, we must be able to
19 * tell PCM which set of rates to use. not needed if recording rates are
20 * a simple subset of playback rates and are equal values. */
21 #define CONFIG_SAMPR_TYPES
23 /* Define bitmask of input sources - recordable bitmask can be defined
24 explicitly if different */
25 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
27 /* define this if you have a bitmap LCD display */
28 #define HAVE_LCD_BITMAP
30 /* define this if you have a colour LCD */
31 #define HAVE_LCD_COLOR
33 /* define this if you want album art for this target */
34 #define HAVE_ALBUMART
36 /* define this to enable bitmap scaling */
37 #define HAVE_BMP_SCALING
39 /* define this to enable JPEG decoding */
40 #define HAVE_JPEG
42 /* define this if you have a light associated with the buttons */
43 #define HAVE_BUTTON_LIGHT
45 /* define this if you have access to the quickscreen */
46 #define HAVE_QUICKSCREEN
48 /* define this if you have access to the pitchscreen */
49 #define HAVE_PITCHSCREEN
51 /* define this if you would like tagcache to build on this target */
52 #define HAVE_TAGCACHE
54 /* LCD dimensions */
55 #define LCD_WIDTH 176
56 #define LCD_HEIGHT 220
57 #define LCD_DEPTH 16 /* 65536 colours */
58 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
60 #ifndef BOOTLOADER
61 /* define this if you have LCD enable function */
62 #define HAVE_LCD_ENABLE
64 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
65 should be defined as well. */
66 #define HAVE_LCD_SLEEP
67 #define HAVE_LCD_SLEEP_SETTING
68 #endif
70 /* define this if you can flip your LCD */
71 #define HAVE_LCD_FLIP
73 /* define this if you can invert the colours on your LCD */
74 #define HAVE_LCD_INVERT
76 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
78 #define CONFIG_KEYPAD SANSA_E200_PAD
80 /* Define this to have CPU boosted while scrolling in the UI */
81 #define HAVE_GUI_BOOST
83 /* Define this to enable morse code input */
84 #define HAVE_MORSE_INPUT
86 /* Define this if you do software codec */
87 #define CONFIG_CODEC SWCODEC
88 /* There is no hardware tone control */
89 #define HAVE_SW_TONE_CONTROLS
90 /* The PP5024 has a built-in AustriaMicrosystems AS3514 */
91 #define HAVE_AS3514
93 /* define this if you have a real-time clock */
94 #ifndef BOOTLOADER
95 #define CONFIG_RTC RTC_AS3514
96 #endif
98 /* Define this if you have a software controlled poweroff */
99 #define HAVE_SW_POWEROFF
101 /* Some Sansa E200s seem to be FAT16 formatted */
102 #define HAVE_FAT16SUPPORT
104 /* The number of bytes reserved for loadable codecs */
105 #define CODEC_SIZE 0x100000
107 /* The number of bytes reserved for loadable plugins */
108 #define PLUGIN_BUFFER_SIZE 0x80000
110 #define AB_REPEAT_ENABLE
112 /* FM Tuner */
113 #define CONFIG_TUNER LV24020LP
114 #define HAVE_TUNER_PWR_CTRL
116 /* Define this for LCD backlight available */
117 #define HAVE_BACKLIGHT
118 #define HAVE_BACKLIGHT_BRIGHTNESS
120 /* Which backlight fading type? */
121 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
123 /* define this if the unit uses a scrollwheel for navigation */
124 #define HAVE_SCROLLWHEEL
125 /* define to activate advanced wheel acceleration code */
126 #define HAVE_WHEEL_ACCELERATION
127 /* define from which rotation speed [degree/sec] on the acceleration starts */
128 #define WHEEL_ACCEL_START 540
129 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
130 #define WHEEL_ACCELERATION 1
132 /* define this if you have a flash memory storage */
133 #define HAVE_FLASH_STORAGE
135 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
136 #define CONFIG_STORAGE STORAGE_SD
138 #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
139 #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
140 #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
141 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
142 #define BATTERY_TYPES_COUNT 1 /* only one type */
144 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
146 /* Charging implemented in a target-specific algorithm */
147 #define CONFIG_CHARGING CHARGING_TARGET
148 #define HAVE_POWEROFF_WHILE_CHARGING
150 /* define current usage levels */
151 #define CURRENT_NORMAL 30 /* Toni's measurements in Nov 2008 */
152 #define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
153 #define CURRENT_RECORD 30 /* flash player, so this is just unboosted current*/
155 /* define this if the unit can be powered or charged via USB */
156 #define HAVE_USB_POWER
158 /* Define this if you have a PortalPlayer PP5024 */
159 #define CONFIG_CPU PP5024
161 /* Define this if you want to use the PP5024 i2c interface */
162 #define CONFIG_I2C I2C_PP5024
164 /* define this if the hardware can be powered off while charging */
165 /* Sansa can't be powered off while charging */
166 /* #define HAVE_POWEROFF_WHILE_CHARGING */
168 /* The start address index for ROM builds */
169 #define ROM_START 0x00000000
171 /* Define this to the CPU frequency */
172 #define CPU_FREQ 75000000
174 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
175 #define CONFIG_LCD LCD_X5
177 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
178 only used when loading the old format rockbox.e200 file */
179 #define FIRMWARE_OFFSET_FILE_CRC 0x0
180 #define FIRMWARE_OFFSET_FILE_DATA 0x8
182 #ifndef BOOTLOADER
183 #define HAVE_MULTIDRIVE
184 #define NUM_DRIVES 2
185 #define HAVE_HOTSWAP
186 #endif
188 /* USB On-the-go */
189 #define CONFIG_USBOTG USBOTG_ARC
191 /* enable these for the experimental usb stack */
192 #define HAVE_USBSTACK
193 #define USE_ROCKBOX_USB
194 #define USB_VENDOR_ID 0x0781
195 #define USB_PRODUCT_ID 0x7421
196 #define HAVE_USB_HID_MOUSE
197 #ifdef BOOTLOADER
198 #define HAVE_BOOTLOADER_USB_MODE
199 #endif
201 /* Define this if you have adjustable CPU frequency */
202 #define HAVE_ADJUSTABLE_CPU_FREQ
204 #define MI4_FORMAT
205 #define BOOTFILE_EXT "mi4"
206 #define BOOTFILE "rockbox." BOOTFILE_EXT
207 #define BOOTDIR "/.rockbox"
209 #define ICODE_ATTR_TREMOR_NOT_MDCT
211 #define INCLUDE_TIMEOUT_API
213 /** Port-specific settings **/
215 /* Main LCD backlight brightness range and defaults */
216 #define MIN_BRIGHTNESS_SETTING 1
217 #define MAX_BRIGHTNESS_SETTING 12
218 #define DEFAULT_BRIGHTNESS_SETTING 6
220 /* Default recording levels */
221 #define DEFAULT_REC_MIC_GAIN 23
222 #define DEFAULT_REC_LEFT_GAIN 23
223 #define DEFAULT_REC_RIGHT_GAIN 23
225 #ifdef E200R_INSTALLER
226 #define IRAMORIG 0x40004000
227 #endif
229 /* Define this if a programmable hotkey is mapped */
230 #define HAVE_HOTKEY