bf6f460eca7cb60df1e7bc3c2ce715665ca13ce1
[kugel-rb.git] / firmware / export / config / sansac200v2.h
blobbf6f460eca7cb60df1e7bc3c2ce715665ca13ce1
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 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
14 /* define this if you have recording possibility */
15 //#define HAVE_RECORDING
17 #define REC_SAMPR_CAPS SAMPR_CAP_ALL
19 /* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
23 /* define this if you have a bitmap LCD display */
24 #define HAVE_LCD_BITMAP
26 /* define this if you have a colour LCD */
27 #define HAVE_LCD_COLOR
29 /* define this if you want album art for this target */
30 #define HAVE_ALBUMART
32 /* define this to enable bitmap scaling */
33 #define HAVE_BMP_SCALING
35 /* define this to enable JPEG decoding */
36 #define HAVE_JPEG
38 /* define this if you have a light associated with the buttons */
39 #define HAVE_BUTTON_LIGHT
41 /* define this if you have access to the quickscreen */
42 #define HAVE_QUICKSCREEN
44 /* define this if you have access to the pitchscreen */
45 #define HAVE_PITCHSCREEN
47 /* define this if you would like tagcache to build on this target */
48 #define HAVE_TAGCACHE
50 /* LCD dimensions */
51 #define LCD_WIDTH 132
52 #define LCD_HEIGHT 80
53 #define LCD_DEPTH 16 /* 65536 colours */
54 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
56 /* define this if you have LCD enable function */
57 #define HAVE_LCD_ENABLE
59 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
60 should be defined as well. */
61 /* TODO: #define HAVE_LCD_SLEEP */
62 /* TODO: #define HAVE_LCD_SLEEP_SETTING <= optional */
64 /* define this if you can flip your LCD */
65 #define HAVE_LCD_FLIP
67 /* define this if you can invert the colours on your LCD */
68 /* TODO: #define HAVE_LCD_INVERT */
70 /* Define this if your LCD can set contrast */
71 #define HAVE_LCD_CONTRAST
73 #define MIN_CONTRAST_SETTING 0
74 #define MAX_CONTRAST_SETTING 255
75 #define DEFAULT_CONTRAST_SETTING 85
77 #if 0 /* not enough room for a 16 bits framebuffer */
78 #define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
79 #endif
81 #define CONFIG_KEYPAD SANSA_C200_PAD
83 /* define this if the target has volume keys which can be used in the lists */
84 #define HAVE_VOLUME_IN_LIST
86 /* Define this if you do software codec */
87 #define CONFIG_CODEC SWCODEC
89 /* There is no hardware tone control */
90 #define HAVE_SW_TONE_CONTROLS
92 /* The AS3525 has a built-in AS3514 (or a newer version) */
93 #define HAVE_AS3514
95 /* define this if you have a real-time clock */
96 #ifndef BOOTLOADER
97 #define CONFIG_RTC RTC_AS3514
98 #endif
100 /* Define this if you have a software controlled poweroff */
101 #define HAVE_SW_POWEROFF
103 /* Some Sansa E200s seem to be FAT16 formatted */
104 #define HAVE_FAT16SUPPORT
106 /* The number of bytes reserved for loadable codecs */
107 #define CODEC_SIZE 0x48000
109 /* The number of bytes reserved for loadable plugins */
110 #define PLUGIN_BUFFER_SIZE 0x60000
112 #define AB_REPEAT_ENABLE 1
114 /* FM Tuner - suspected to be the SI4702 */
115 #define CONFIG_TUNER SI4700
116 /* #define HAVE_TUNER_PWR_CTRL */
118 /* Define this for LCD backlight available */
119 #define HAVE_BACKLIGHT
120 #define HAVE_BACKLIGHT_BRIGHTNESS
122 /* define this if you have a flash memory storage */
123 #define HAVE_FLASH_STORAGE
125 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
126 #define CONFIG_STORAGE STORAGE_SD
128 #define BATTERY_CAPACITY_DEFAULT 530 /* default battery capacity */
129 #define BATTERY_CAPACITY_MIN 530 /* min. capacity selectable */
130 #define BATTERY_CAPACITY_MAX 530 /* max. capacity selectable */
131 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
132 #define BATTERY_TYPES_COUNT 1 /* only one type */
134 /* Charging implemented in a target-specific algorithm */
135 #define CONFIG_CHARGING CHARGING_TARGET
137 /* define this if the unit can be powered or charged via USB */
138 #define HAVE_USB_POWER
140 /* Define this if you have a PortalPlayer PP5024 */
141 #define CONFIG_CPU AS3525
143 /* Define how much SD sectors are reserved for OF */
144 #define AMS_OF_SIZE 0x5000
146 /* Define this if you want to use the PP5024 i2c interface */
147 #define CONFIG_I2C I2C_AS3525
149 /* define this if the hardware can be powered off while charging */
150 /* Sansa can't be powered off while charging */
151 /* #define HAVE_POWEROFF_WHILE_CHARGING */
153 #define CURRENT_NORMAL 50
154 #define CURRENT_BACKLIGHT 25
155 #define CURRENT_RECORD CURRENT_NORMAL
157 /* The start address index for ROM builds */
158 #define ROM_START 0x00000000
160 /* Define this to the CPU frequency */
161 #define CPU_FREQ 248000000
163 /* Type of LCD : Samsung S6B33B2 */
164 #define CONFIG_LCD LCD_C200
166 #ifndef BOOTLOADER
167 #define HAVE_MULTIDRIVE
168 #define NUM_DRIVES 2
169 #define HAVE_HOTSWAP
171 #define USB_HANDLED_BY_OF
173 #define CONFIG_USBOTG USBOTG_AS3525
175 /* enable these for the experimental usb stack */
176 #define HAVE_USBSTACK
177 #define USB_VENDOR_ID 0x0781
178 #define USB_PRODUCT_ID 0x7452
180 #endif /* BOOTLOADER */
182 /* Define this if you have adjustable CPU frequency */
183 #define HAVE_ADJUSTABLE_CPU_FREQ
185 #define BOOTFILE_EXT "sansa"
186 #define BOOTFILE "rockbox." BOOTFILE_EXT
187 #define BOOTDIR "/.rockbox"
189 #define ICODE_ATTR_TREMOR_NOT_MDCT
191 #define INCLUDE_TIMEOUT_API
193 /** Port-specific settings **/
195 /* Main LCD backlight brightness range and defaults */
196 #define MIN_BRIGHTNESS_SETTING 1
197 #define MAX_BRIGHTNESS_SETTING 12
198 #define DEFAULT_BRIGHTNESS_SETTING 6
200 /* Default recording levels */
201 #define DEFAULT_REC_MIC_GAIN 23
202 #define DEFAULT_REC_LEFT_GAIN 23
203 #define DEFAULT_REC_RIGHT_GAIN 23
205 /* Define this if a programmable hotkey is mapped */
206 #define HAVE_HOTKEY