merge 19488 back from the 3.1 branch
[kugel-rb.git] / firmware / export / config-e200v2.h
blob08a672b057dc4a11452ed0e648f2a7e3893edd7a
1 /*
2 * This config file is for the Sandisk Sansa e200v2
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 41
8 #define MODEL_NAME "Sandisk Sansa e200v2 series"
10 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
12 #if 0
13 /* define this if you have recording possibility */
14 #define HAVE_RECORDING
16 #define REC_SAMPR_CAPS (SAMPR_CAP_22)
17 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
18 #define REC_SAMPR_DEFAULT SAMPR_22
20 /* Define bitmask of input sources - recordable bitmask can be defined
21 explicitly if different */
22 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
23 #endif
25 /* define this if you have a bitmap LCD display */
26 #define HAVE_LCD_BITMAP
28 /* define this if you have a colour LCD */
29 #define HAVE_LCD_COLOR
31 /* define this if you want album art for this target */
32 #define HAVE_ALBUMART
34 /* define this if you have a light associated with the buttons */
35 #define HAVE_BUTTON_LIGHT
37 /* define this if you have access to the quickscreen */
38 #define HAVE_QUICKSCREEN
40 /* define this if you have access to the pitchscreen */
41 #define HAVE_PITCHSCREEN
43 /* define this if you would like tagcache to build on this target */
44 #define HAVE_TAGCACHE
46 /* LCD dimensions */
47 #define LCD_WIDTH 176
48 #define LCD_HEIGHT 220
49 #define LCD_DEPTH 16 /* 65536 colours */
50 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
52 #ifndef BOOTLOADER
53 /* define this if you have LCD enable function */
54 #define HAVE_LCD_ENABLE
56 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
57 should be defined as well. */
58 #define HAVE_LCD_SLEEP
59 #define HAVE_LCD_SLEEP_SETTING
60 #endif
62 /* define this if you can flip your LCD */
63 #define HAVE_LCD_FLIP
65 /* define this if you can invert the colours on your LCD */
66 #define HAVE_LCD_INVERT
68 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
70 #define CONFIG_KEYPAD SANSA_E200_PAD
72 /* Define this if you do software codec */
73 #define CONFIG_CODEC SWCODEC
75 /* There is no hardware tone control */
76 #define HAVE_SW_TONE_CONTROLS
78 /* We're working on the assumption that the AS3525 has something
79 similar to the AS3514 for audio codec etc */
80 #define HAVE_AS3514
82 /* define this if you have a real-time clock */
83 #ifndef BOOTLOADER
84 #define CONFIG_RTC RTC_AS3514
85 #endif
87 /* Define this if you have a software controlled poweroff */
88 #define HAVE_SW_POWEROFF
90 /* Some Sansa E200s seem to be FAT16 formatted */
91 #define HAVE_FAT16SUPPORT
93 /* The number of bytes reserved for loadable codecs */
94 #define CODEC_SIZE 0x100000
96 /* The number of bytes reserved for loadable plugins */
97 #define PLUGIN_BUFFER_SIZE 0x80000
99 #define AB_REPEAT_ENABLE 1
101 /* FM Tuner - suspected to be the SI4702 */
102 //#define CONFIG_TUNER SI4700
103 /* #define HAVE_TUNER_PWR_CTRL */
105 /* Define this for LCD backlight available */
106 #define HAVE_BACKLIGHT
107 #define HAVE_BACKLIGHT_BRIGHTNESS
109 /* define this if the unit uses a scrollwheel for navigation */
110 #define HAVE_SCROLLWHEEL
111 /* define from which rotation speed [degree/sec] on the acceleration starts */
112 #define WHEEL_ACCEL_START 540
113 /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
114 #define WHEEL_ACCELERATION 1
116 /* define this if you have a flash memory storage */
117 #define HAVE_FLASH_STORAGE
119 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
120 #define CONFIG_STORAGE STORAGE_SD
122 #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
123 #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
124 #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
125 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
126 #define BATTERY_TYPES_COUNT 1 /* only one type */
128 /* Hardware controlled charging? FIXME */
129 #define CONFIG_CHARGING CHARGING_SIMPLE
131 /* define this if the unit can be powered or charged via USB */
132 #define HAVE_USB_POWER
134 /** Non-simulator section **/
135 #ifndef SIMULATOR
137 /* Define this if you have an AMS AS3525*/
138 #define CONFIG_CPU AS3525
140 /* Define this if you want to use the AS2525 i2c interface */
141 #define CONFIG_I2C I2C_AS3525
143 /* define this if the hardware can be powered off while charging */
144 /* Sansa can't be powered off while charging */
145 /* #define HAVE_POWEROFF_WHILE_CHARGING */
147 /* The start address index for ROM builds */
148 #define ROM_START 0x00000000
150 /* Define this to the CPU frequency */
151 #define CPU_FREQ 75000000
153 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
154 #define CONFIG_LCD LCD_X5
156 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
157 only used when loading the old format rockbox.e200 file */
158 #define FIRMWARE_OFFSET_FILE_CRC 0x0
159 #define FIRMWARE_OFFSET_FILE_DATA 0x8
161 #ifndef BOOTLOADER
162 #define HAVE_MULTIVOLUME
163 #define HAVE_HOTSWAP
164 #endif
166 /* #define USB_IPODSTYLE */
168 /* USB On-the-go */
169 #define CONFIG_USBOTG USBOTG_AS3525
171 /* enable these for the experimental usb stack */
172 //#define HAVE_USBSTACK
173 #define USB_VENDOR_ID 0x0781
174 #define USB_PRODUCT_ID 0x7423
176 /* Virtual LED (icon) */
177 #define CONFIG_LED LED_VIRTUAL
179 /* Define this if you have adjustable CPU frequency */
180 #define HAVE_ADJUSTABLE_CPU_FREQ
182 #define BOOTFILE_EXT "sansa"
183 #define BOOTFILE "rockbox." BOOTFILE_EXT
184 #define BOOTDIR "/.rockbox"
186 #define ICODE_ATTR_TREMOR_NOT_MDCT
188 #define INCLUDE_TIMEOUT_API
190 #endif /* SIMULATOR */
192 /** Port-specific settings **/
194 /* Main LCD backlight brightness range and defaults */
195 #define MIN_BRIGHTNESS_SETTING 1
196 #define MAX_BRIGHTNESS_SETTING 12
197 #define DEFAULT_BRIGHTNESS_SETTING 6
199 /* Default recording levels */
200 #define DEFAULT_REC_MIC_GAIN 23
201 #define DEFAULT_REC_LEFT_GAIN 23
202 #define DEFAULT_REC_RIGHT_GAIN 23
204 #ifdef E200R_INSTALLER
205 #define IRAMORIG 0x40004000
206 #endif