move the CONFIG_LED #define out into config.h as all but 3 targets actually have...
[maemo-rb.git] / firmware / export / config-c200v2.h
blobd6c2159e8cab470d269665bed15836c7b68b9022
1 /*
2 * This config file is for the Sandisk Sansa c200v2
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 44
8 #define MODEL_NAME "Sandisk Sansa c200v2 series"
9 #define FIRMWARE_OFFSET_FILE_DATA 8
10 #define FIRMWARE_OFFSET_FILE_CRC 0
12 #if 0
14 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
16 /* define this if you have recording possibility */
17 #define HAVE_RECORDING
19 #define REC_SAMPR_CAPS (SAMPR_CAP_22)
20 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
21 #define REC_SAMPR_DEFAULT SAMPR_22
23 #endif
25 /* Define bitmask of input sources - recordable bitmask can be defined
26 explicitly if different */
27 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
29 /* define this if you have a bitmap LCD display */
30 #define HAVE_LCD_BITMAP
32 /* define this if you have a colour LCD */
33 #define HAVE_LCD_COLOR
35 /* define this if you want album art for this target */
36 #define HAVE_ALBUMART
38 /* define this to enable bitmap scaling */
39 #define HAVE_BMP_SCALING
41 /* define this to enable JPEG decoding */
42 #define HAVE_JPEG
44 /* define this if you have a light associated with the buttons */
45 #define HAVE_BUTTON_LIGHT
47 /* define this if you have access to the quickscreen */
48 #define HAVE_QUICKSCREEN
50 /* define this if you have access to the pitchscreen */
51 #define HAVE_PITCHSCREEN
53 /* define this if you would like tagcache to build on this target */
54 #define HAVE_TAGCACHE
56 /* LCD dimensions */
57 #define LCD_WIDTH 132
58 #define LCD_HEIGHT 80
59 #define LCD_DEPTH 16 /* 65536 colours */
60 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
62 /* define this if you have LCD enable function */
63 #define HAVE_LCD_ENABLE
65 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
66 should be defined as well. */
67 /* TODO: #define HAVE_LCD_SLEEP */
68 /* TODO: #define HAVE_LCD_SLEEP_SETTING <= optional */
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 /* TODO: #define HAVE_LCD_INVERT */
76 /* Define this if your LCD can set contrast */
77 #define HAVE_LCD_CONTRAST
79 #define MIN_CONTRAST_SETTING 0
80 #define MAX_CONTRAST_SETTING 255
81 #define DEFAULT_CONTRAST_SETTING 85
83 #if 0 /* not enough room for a 16 bits framebuffer */
84 #define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
85 #endif
87 #define CONFIG_KEYPAD SANSA_C200_PAD
89 /* define this if the target has volume keys which can be used in the lists */
90 #define HAVE_VOLUME_IN_LIST
92 /* Define this if you do software codec */
93 #define CONFIG_CODEC SWCODEC
95 /* There is no hardware tone control */
96 #define HAVE_SW_TONE_CONTROLS
98 /* The AS3525 has a built-in AS3514 (or a newer version) */
99 #define HAVE_AS3514
101 /* define this if you have a real-time clock */
102 #ifndef BOOTLOADER
103 #define CONFIG_RTC RTC_AS3514
104 #endif
106 /* Define this if you have a software controlled poweroff */
107 #define HAVE_SW_POWEROFF
109 /* Some Sansa E200s seem to be FAT16 formatted */
110 #define HAVE_FAT16SUPPORT
112 /* The number of bytes reserved for loadable codecs */
113 #define CODEC_SIZE 0x48000
115 /* The number of bytes reserved for loadable plugins */
116 #define PLUGIN_BUFFER_SIZE 0x80000
118 #define AB_REPEAT_ENABLE 1
120 /* FM Tuner - suspected to be the SI4702 */
121 #define CONFIG_TUNER SI4700
122 /* #define HAVE_TUNER_PWR_CTRL */
124 /* Define this for LCD backlight available */
125 #define HAVE_BACKLIGHT
126 #define HAVE_BACKLIGHT_BRIGHTNESS
128 /* define this if you have a flash memory storage */
129 #define HAVE_FLASH_STORAGE
131 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
132 #define CONFIG_STORAGE STORAGE_SD
134 #define BATTERY_CAPACITY_DEFAULT 530 /* default battery capacity */
135 #define BATTERY_CAPACITY_MIN 530 /* min. capacity selectable */
136 #define BATTERY_CAPACITY_MAX 530 /* max. capacity selectable */
137 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
138 #define BATTERY_TYPES_COUNT 1 /* only one type */
140 /* Hardware controlled charging? FIXME */
141 #define CONFIG_CHARGING CHARGING_SIMPLE
143 /* define this if the unit can be powered or charged via USB */
144 #define HAVE_USB_POWER
146 /** Non-simulator section **/
147 #ifndef SIMULATOR
149 /* Define this if you have a PortalPlayer PP5024 */
150 #define CONFIG_CPU AS3525
152 /* Define how much SD sectors are reserved for OF */
153 #define AMS_OF_SIZE 0x5000
155 /* Define this if you want to use the PP5024 i2c interface */
156 #define CONFIG_I2C I2C_AS3525
158 /* define this if the hardware can be powered off while charging */
159 /* Sansa can't be powered off while charging */
160 /* #define HAVE_POWEROFF_WHILE_CHARGING */
162 /* The start address index for ROM builds */
163 #define ROM_START 0x00000000
165 /* Define this to the CPU frequency */
166 #define CPU_FREQ 250000000
168 /* Type of LCD : Samsung S6B33B2 */
169 #define CONFIG_LCD LCD_C200
171 #ifndef BOOTLOADER
172 #define HAVE_MULTIDRIVE
173 #define NUM_DRIVES 2
174 #define HAVE_HOTSWAP
176 #define USB_HANDLED_BY_OF
178 #define CONFIG_USBOTG USBOTG_AS3525
180 /* enable these for the experimental usb stack */
181 #define HAVE_USBSTACK
182 #define USB_VENDOR_ID 0x0781
183 #define USB_PRODUCT_ID 0x7452
185 #endif /* BOOTLOADER */
187 /* Define this if you have adjustable CPU frequency */
188 #define HAVE_ADJUSTABLE_CPU_FREQ
190 #define BOOTFILE_EXT "sansa"
191 #define BOOTFILE "rockbox." BOOTFILE_EXT
192 #define BOOTDIR "/.rockbox"
194 #define ICODE_ATTR_TREMOR_NOT_MDCT
196 #define INCLUDE_TIMEOUT_API
198 #endif /* SIMULATOR */
200 /** Port-specific settings **/
202 /* Main LCD backlight brightness range and defaults */
203 #define MIN_BRIGHTNESS_SETTING 1
204 #define MAX_BRIGHTNESS_SETTING 12
205 #define DEFAULT_BRIGHTNESS_SETTING 6
207 /* Default recording levels */
208 #define DEFAULT_REC_MIC_GAIN 23
209 #define DEFAULT_REC_LEFT_GAIN 23
210 #define DEFAULT_REC_RIGHT_GAIN 23