Don't set CONFIG_CPU for __PCTOOL__, to avoid wrong asm
[maemo-rb.git] / firmware / export / config / sansae200v2.h
blob0ffb9ce413a3fd62e8187432016de7ece61b0367
1 /*
2 * This config file is for the Sandisk Sansa e200v2
3 */
5 /* For Rolo and boot loader */
6 #define MODEL_NUMBER 41
7 #define MODEL_NAME "Sandisk Sansa e200v2 series"
9 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
11 /* define this if you have recording possibility */
12 #define HAVE_RECORDING
14 #define REC_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
15 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
16 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
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
69 #endif
71 /* define this if you can flip your LCD */
72 #define HAVE_LCD_FLIP
74 /* define this if you can invert the colours on your LCD */
75 #define HAVE_LCD_INVERT
77 /* put the lcd frame buffer in IRAM */
78 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR
80 #define CONFIG_KEYPAD SANSA_E200_PAD
82 /* Define this to enable morse code input */
83 #define HAVE_MORSE_INPUT
85 /* Define this to have CPU boosted while scrolling in the UI */
86 #define HAVE_GUI_BOOST
88 /* Define this if you do software codec */
89 #define CONFIG_CODEC SWCODEC
91 /* There is no hardware tone control */
92 #define HAVE_SW_TONE_CONTROLS
94 /* We're working on the assumption that the AS3525 has something
95 similar to the AS3514 for audio codec etc */
96 #define HAVE_AS3514
98 /* define this if you have a real-time clock */
99 #ifndef BOOTLOADER
100 #define CONFIG_RTC RTC_AS3514
101 #endif
103 /* Define this if you have a software controlled poweroff */
104 #define HAVE_SW_POWEROFF
106 /* Some Sansa E200s seem to be FAT16 formatted */
107 #define HAVE_FAT16SUPPORT
109 /* The number of bytes reserved for loadable codecs */
110 #define CODEC_SIZE 0x100000
112 /* The number of bytes reserved for loadable plugins */
113 #define PLUGIN_BUFFER_SIZE 0x80000
115 #define AB_REPEAT_ENABLE
117 /* FM Tuner - suspected to be the SI4702 */
118 #define CONFIG_TUNER SI4700
119 /* #define HAVE_TUNER_PWR_CTRL */
121 /* Define this for LCD backlight available */
122 #define HAVE_BACKLIGHT
123 #define HAVE_BACKLIGHT_BRIGHTNESS
125 /* Main LCD backlight brightness range and defaults */
126 #define MIN_BRIGHTNESS_SETTING 1
127 #define MAX_BRIGHTNESS_SETTING 12
128 #define DEFAULT_BRIGHTNESS_SETTING 6
130 /* Which backlight fading type? */
131 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
133 /* define this if the unit uses a scrollwheel for navigation */
134 #define HAVE_SCROLLWHEEL
135 /* define to activate advanced wheel acceleration code */
136 #define HAVE_WHEEL_ACCELERATION
137 /* define from which rotation speed [degree/sec] on the acceleration starts */
138 #define WHEEL_ACCEL_START 540
139 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
140 #define WHEEL_ACCELERATION 1
142 /* define this if you have a flash memory storage */
143 #define HAVE_FLASH_STORAGE
145 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
146 #define CONFIG_STORAGE STORAGE_SD
148 #define BATTERY_CAPACITY_DEFAULT 730 /* default battery capacity */
149 #define BATTERY_CAPACITY_MIN 730 /* min. capacity selectable */
150 #define BATTERY_CAPACITY_MAX 730 /* max. capacity selectable */
151 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
152 #define BATTERY_TYPES_COUNT 1 /* only one type */
154 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
156 /* Charging implemented in a target-specific algorithm */
157 #define CONFIG_CHARGING CHARGING_TARGET
159 /* define this if the unit can be powered or charged via USB */
160 #define HAVE_USB_POWER
162 /* Define this if you have an AMS AS3525*/
163 #define CONFIG_CPU AS3525
165 /* Define how much SD sectors are reserved for OF */
166 #define AMS_OF_SIZE 0xF000
168 /* Define this if you want to use the AS2525 i2c interface */
169 #define CONFIG_I2C I2C_AS3525
171 /* define current usage levels (based on battery bench) */
172 #define CURRENT_NORMAL 44
173 #define CURRENT_BACKLIGHT 30
174 #define CURRENT_RECORD CURRENT_NORMAL
176 /* maximum charging current */
177 #define CURRENT_MAX_CHG 300
179 /* The start address index for ROM builds */
180 #define ROM_START 0x00000000
182 /* Define this to the CPU frequency */
183 #define CPU_FREQ 248000000
185 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
186 #define CONFIG_LCD LCD_X5
188 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
189 only used when loading the old format rockbox.e200 file */
190 #define FIRMWARE_OFFSET_FILE_CRC 0x0
191 #define FIRMWARE_OFFSET_FILE_DATA 0x8
193 #ifndef BOOTLOADER
194 #define HAVE_MULTIDRIVE
195 #define NUM_DRIVES 2
196 #define HAVE_HOTSWAP
197 #endif
199 /* USB On-the-go */
200 #define CONFIG_USBOTG USBOTG_AS3525
202 /* enable these for the experimental usb stack */
203 #define HAVE_USBSTACK
204 //#define USB_HANDLED_BY_OF
205 #define USE_ROCKBOX_USB
206 #define USB_VENDOR_ID 0x0781
207 #define USB_PRODUCT_ID 0x7423
208 #define HAVE_USB_HID_MOUSE
210 /* Define this if you have adjustable CPU frequency */
211 #define HAVE_ADJUSTABLE_CPU_FREQ
213 #define BOOTFILE_EXT "sansa"
214 #define BOOTFILE "rockbox." BOOTFILE_EXT
215 #define BOOTDIR "/.rockbox"
217 #define ICODE_ATTR_TREMOR_NOT_MDCT
219 #define INCLUDE_TIMEOUT_API
221 /* Default recording levels */
222 #define DEFAULT_REC_MIC_GAIN 23
223 #define DEFAULT_REC_LEFT_GAIN 23
224 #define DEFAULT_REC_RIGHT_GAIN 23
226 /* Define this if a programmable hotkey is mapped */
227 #define HAVE_HOTKEY