2 * This config file is for the Sandisk Sansa Clip v2
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 66
8 #define MODEL_NAME "Sandisk Sansa Clipv2"
9 #define FIRMWARE_OFFSET_FILE_DATA 8
10 #define FIRMWARE_OFFSET_FILE_CRC 0
12 #if 0 /* disabled since there is no driver (yet) */
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
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 light associated with the buttons */
33 #define HAVE_BUTTON_LIGHT
35 /* define this if you have access to the quickscreen */
36 #define HAVE_QUICKSCREEN
38 /* define this if you have access to the pitchscreen */
39 #define HAVE_PITCHSCREEN
41 /* define this if you would like tagcache to build on this target */
49 #define LCD_PIXELFORMAT VERTICAL_PACKING
50 #define HAVE_NEGATIVE_LCD /* bright on dark */
51 #define HAVE_LCD_SPLIT /* split display */
53 /* Display colours, for screenshots and sim (0xRRGGBB) */
54 #define LCD_DARKCOLOR 0x000000
55 #define LCD_BRIGHTCOLOR 0x000000
56 #define LCD_BL_DARKCOLOR 0x000000
57 #define LCD_BL_BRIGHTCOLOR 0x0de2e5
59 #define LCD_DARKCOLOR_2 0x000000
60 #define LCD_BRIGHTCOLOR_2 0x000000
61 #define LCD_BL_DARKCOLOR_2 0x000000
62 #define LCD_BL_BRIGHTCOLOR_2 0xffe60f
64 #define LCD_SPLIT_POS 16
65 #define LCD_SPLIT_LINES 2
67 /* define this if you have LCD enable function */
68 #define HAVE_LCD_ENABLE
71 /* Define this if your LCD can be put to sleep.
72 * HAVE_LCD_ENABLE should be defined as well. */
73 //#define HAVE_LCD_SLEEP
74 //#define HAVE_LCD_SLEEP_SETTING
77 /* define this if you can flip your LCD */
80 /* define this if you can invert the pixels */
81 #define HAVE_LCD_INVERT
83 /* Define this if your LCD can set contrast */
84 #define HAVE_LCD_CONTRAST
86 #define MIN_CONTRAST_SETTING 0
87 #define MAX_CONTRAST_SETTING 50
88 #define DEFAULT_CONTRAST_SETTING 30
90 #define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
92 #define CONFIG_KEYPAD SANSA_CLIP_PAD
94 /* define this if the target has volume keys which can be used in the lists */
95 #define HAVE_VOLUME_IN_LIST
97 /* Define this if you do software codec */
98 #define CONFIG_CODEC SWCODEC
99 /* There is no hardware tone control */
100 #define HAVE_SW_TONE_CONTROLS
102 /* We're working on the assumption that the AS3525 has something
103 similar to the AS3514 for audio codec etc */
106 /* define this if you have a real-time clock */
108 #define CONFIG_RTC RTC_AS3514
111 /* Define this if you have a software controlled poweroff */
112 #define HAVE_SW_POWEROFF
114 #define HAVE_FAT16SUPPORT
116 /* The number of bytes reserved for loadable codecs */
117 #define CODEC_SIZE 0x100000
119 /* The number of bytes reserved for loadable plugins */
120 #define PLUGIN_BUFFER_SIZE 0x80000
122 #define AB_REPEAT_ENABLE 1
125 //#define CONFIG_TUNER SI4700 /* in fact SI4702 */
126 //#define HAVE_TUNER_PWR_CTRL
128 /* Define this for LCD backlight available */
129 #define HAVE_BACKLIGHT
131 /* define this if you have a flash memory storage */
132 #define HAVE_FLASH_STORAGE
134 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
135 #define CONFIG_STORAGE STORAGE_SD
137 #define BATTERY_CAPACITY_DEFAULT 380 /* default battery capacity */
138 #define BATTERY_CAPACITY_MIN 380 /* min. capacity selectable */
139 #define BATTERY_CAPACITY_MAX 380 /* max. capacity selectable */
140 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
141 #define BATTERY_TYPES_COUNT 1 /* only one type */
143 /* Charging implemented in a target-specific algorithm */
144 #define CONFIG_CHARGING CHARGING_TARGET
146 /* define this if the unit can be powered or charged via USB */
147 #define HAVE_USB_POWER
149 /** Non-simulator section **/
152 /* Define this if you have a AMS AS3525v2 SoC */
153 #define CONFIG_CPU AS3525v2
155 /* Define this if you want to use the AS3525 i2c interface */
156 #define CONFIG_I2C I2C_AS3525 /* FIXME : looks similar to AS353x interface */
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
169 #define CONFIG_LCD LCD_SSD1303
173 #define USB_HANDLED_BY_OF
175 #if 0 /* disabled since there is no USB driver */
178 #define CONFIG_USBOTG USBOTG_ARC
180 /* enable these for the experimental usb stack */
181 #define HAVE_USBSTACK
182 #define USB_VENDOR_ID 0x0781
183 #define USB_PRODUCT_ID 0x7433
184 #endif /* BOOTLOADER */
189 /* Virtual LED (icon) */
190 #define CONFIG_LED LED_VIRTUAL
192 /* Define this if you have adjustable CPU frequency */
193 #define HAVE_ADJUSTABLE_CPU_FREQ
195 #define BOOTFILE_EXT "sansa"
196 #define BOOTFILE "rockbox." BOOTFILE_EXT
197 #define BOOTDIR "/.rockbox"
199 #define ICODE_ATTR_TREMOR_NOT_MDCT
201 #define INCLUDE_TIMEOUT_API
203 #endif /* SIMULATOR */
205 /** Port-specific settings **/
207 /* Main LCD backlight brightness range and defaults */
208 #define MIN_BRIGHTNESS_SETTING 1
209 #define MAX_BRIGHTNESS_SETTING 12
210 #define DEFAULT_BRIGHTNESS_SETTING 6
212 /* Default recording levels */
213 #define DEFAULT_REC_MIC_GAIN 23
214 #define DEFAULT_REC_LEFT_GAIN 23
215 #define DEFAULT_REC_RIGHT_GAIN 23