diff options
Diffstat (limited to 'firmware/export/config/sansaclipv2.h')
-rw-r--r-- | firmware/export/config/sansaclipv2.h | 215 |
1 files changed, 215 insertions, 0 deletions
diff --git a/firmware/export/config/sansaclipv2.h b/firmware/export/config/sansaclipv2.h new file mode 100644 index 0000000000..513b093f2f --- /dev/null +++ b/firmware/export/config/sansaclipv2.h | |||
@@ -0,0 +1,215 @@ | |||
1 | /* | ||
2 | * This config file is for the Sandisk Sansa Clip v2 | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
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 | ||
11 | |||
12 | #if 0 /* disabled since there is no driver (yet) */ | ||
13 | |||
14 | #define HW_SAMPR_CAPS (SAMPR_CAP_44) | ||
15 | |||
16 | /* define this if you have recording possibility */ | ||
17 | #define HAVE_RECORDING | ||
18 | |||
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 | ||
22 | |||
23 | #endif | ||
24 | |||
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) | ||
28 | |||
29 | /* define this if you have a bitmap LCD display */ | ||
30 | #define HAVE_LCD_BITMAP | ||
31 | |||
32 | /* define this if you have a light associated with the buttons */ | ||
33 | #define HAVE_BUTTON_LIGHT | ||
34 | |||
35 | /* define this if you have access to the quickscreen */ | ||
36 | #define HAVE_QUICKSCREEN | ||
37 | |||
38 | /* define this if you have access to the pitchscreen */ | ||
39 | #define HAVE_PITCHSCREEN | ||
40 | |||
41 | /* define this if you would like tagcache to build on this target */ | ||
42 | #define HAVE_TAGCACHE | ||
43 | |||
44 | /* LCD dimensions */ | ||
45 | #define LCD_WIDTH 128 | ||
46 | #define LCD_HEIGHT 64 | ||
47 | #define LCD_DEPTH 1 | ||
48 | |||
49 | #define LCD_PIXELFORMAT VERTICAL_PACKING | ||
50 | #define HAVE_NEGATIVE_LCD /* bright on dark */ | ||
51 | #define HAVE_LCD_SPLIT /* split display */ | ||
52 | |||
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 | ||
58 | |||
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 | ||
63 | |||
64 | #define LCD_SPLIT_POS 16 | ||
65 | #define LCD_SPLIT_LINES 2 | ||
66 | |||
67 | /* define this if you have LCD enable function */ | ||
68 | #define HAVE_LCD_ENABLE | ||
69 | |||
70 | #ifndef BOOTLOADER | ||
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 | ||
75 | #endif | ||
76 | |||
77 | /* define this if you can flip your LCD */ | ||
78 | #define HAVE_LCD_FLIP | ||
79 | |||
80 | /* define this if you can invert the pixels */ | ||
81 | #define HAVE_LCD_INVERT | ||
82 | |||
83 | /* Define this if your LCD can set contrast */ | ||
84 | #define HAVE_LCD_CONTRAST | ||
85 | |||
86 | #define MIN_CONTRAST_SETTING 0 | ||
87 | #define MAX_CONTRAST_SETTING 50 | ||
88 | #define DEFAULT_CONTRAST_SETTING 30 | ||
89 | |||
90 | #define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */ | ||
91 | |||
92 | #define CONFIG_KEYPAD SANSA_CLIP_PAD | ||
93 | |||
94 | /* define this if the target has volume keys which can be used in the lists */ | ||
95 | #define HAVE_VOLUME_IN_LIST | ||
96 | |||
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 | ||
101 | |||
102 | /* We're working on the assumption that the AS3525 has something | ||
103 | similar to the AS3514 for audio codec etc */ | ||
104 | #define HAVE_AS3514 | ||
105 | |||
106 | /* define this if you have a real-time clock */ | ||
107 | #ifndef BOOTLOADER | ||
108 | #define CONFIG_RTC RTC_AS3514 | ||
109 | #endif | ||
110 | |||
111 | /* Define this if you have a software controlled poweroff */ | ||
112 | #define HAVE_SW_POWEROFF | ||
113 | |||
114 | #define HAVE_FAT16SUPPORT | ||
115 | |||
116 | /* The number of bytes reserved for loadable codecs */ | ||
117 | #define CODEC_SIZE 0x100000 | ||
118 | |||
119 | /* The number of bytes reserved for loadable plugins */ | ||
120 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
121 | |||
122 | #define AB_REPEAT_ENABLE 1 | ||
123 | |||
124 | /* FM Tuner */ | ||
125 | #define CONFIG_TUNER SI4700 /* in fact SI4702 */ | ||
126 | //#define HAVE_TUNER_PWR_CTRL | ||
127 | |||
128 | /* Define this for LCD backlight available */ | ||
129 | #define HAVE_BACKLIGHT | ||
130 | |||
131 | /* define this if you have a flash memory storage */ | ||
132 | #define HAVE_FLASH_STORAGE | ||
133 | |||
134 | /* define this if the flash memory uses the SecureDigital Memory Card protocol */ | ||
135 | #define CONFIG_STORAGE STORAGE_SD | ||
136 | |||
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 */ | ||
142 | |||
143 | /* Charging implemented in a target-specific algorithm */ | ||
144 | #define CONFIG_CHARGING CHARGING_TARGET | ||
145 | |||
146 | /* define this if the unit can be powered or charged via USB */ | ||
147 | #define HAVE_USB_POWER | ||
148 | |||
149 | /** Non-simulator section **/ | ||
150 | #ifndef SIMULATOR | ||
151 | |||
152 | /* Define this if you have a AMS AS3525v2 SoC */ | ||
153 | #define CONFIG_CPU AS3525v2 | ||
154 | |||
155 | /* Define this if you want to use the AS3525 i2c interface */ | ||
156 | #define CONFIG_I2C I2C_AS3525 /* FIXME : looks similar to AS353x interface */ | ||
157 | |||
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 */ | ||
161 | |||
162 | /* The start address index for ROM builds */ | ||
163 | #define ROM_START 0x00000000 | ||
164 | |||
165 | /* Define this to the CPU frequency */ | ||
166 | #define CPU_FREQ 250000000 | ||
167 | |||
168 | /* Type of LCD */ | ||
169 | #define CONFIG_LCD LCD_SSD1303 | ||
170 | |||
171 | #ifndef BOOTLOADER | ||
172 | |||
173 | #define USB_HANDLED_BY_OF | ||
174 | |||
175 | #if 0 /* disabled since there is no USB driver */ | ||
176 | |||
177 | /* USB On-the-go */ | ||
178 | #define CONFIG_USBOTG USBOTG_ARC | ||
179 | |||
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 */ | ||
185 | |||
186 | #endif | ||
187 | |||
188 | |||
189 | /* Virtual LED (icon) */ | ||
190 | #define CONFIG_LED LED_VIRTUAL | ||
191 | |||
192 | /* Define this if you have adjustable CPU frequency */ | ||
193 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
194 | |||
195 | #define BOOTFILE_EXT "sansa" | ||
196 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
197 | #define BOOTDIR "/.rockbox" | ||
198 | |||
199 | #define ICODE_ATTR_TREMOR_NOT_MDCT | ||
200 | |||
201 | #define INCLUDE_TIMEOUT_API | ||
202 | |||
203 | #endif /* SIMULATOR */ | ||
204 | |||
205 | /** Port-specific settings **/ | ||
206 | |||
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 | ||
211 | |||
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 | ||