diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-clip.h | 13 | ||||
-rw-r--r-- | firmware/export/config-e200v2.h | 202 | ||||
-rw-r--r-- | firmware/export/config-m200v2.h | 127 | ||||
-rw-r--r-- | firmware/export/config.h | 7 |
4 files changed, 344 insertions, 5 deletions
diff --git a/firmware/export/config-clip.h b/firmware/export/config-clip.h index 0685e45fd9..d2c2b51d18 100644 --- a/firmware/export/config-clip.h +++ b/firmware/export/config-clip.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #define TARGET_TREE /* this target is using the target tree system */ | 4 | #define TARGET_TREE /* this target is using the target tree system */ |
5 | 5 | ||
6 | /* For Rolo and boot loader */ | 6 | /* For Rolo and boot loader */ |
7 | #define MODEL_NUMBER 50 | 7 | #define MODEL_NUMBER 40 |
8 | #define MODEL_NAME "Sandisk Sansa Clip" | 8 | #define MODEL_NAME "Sandisk Sansa Clip" |
9 | #define FIRMWARE_OFFSET_FILE_DATA 0 | 9 | #define FIRMWARE_OFFSET_FILE_DATA 0 |
10 | #define FIRMWARE_OFFSET_FILE_CRC 0 | 10 | #define FIRMWARE_OFFSET_FILE_CRC 0 |
@@ -69,11 +69,9 @@ | |||
69 | /* There is no hardware tone control */ | 69 | /* There is no hardware tone control */ |
70 | #define HAVE_SW_TONE_CONTROLS | 70 | #define HAVE_SW_TONE_CONTROLS |
71 | 71 | ||
72 | #define HAVE_AS3525 | ||
73 | |||
74 | /* define this if you have a real-time clock */ | 72 | /* define this if you have a real-time clock */ |
75 | #ifndef BOOTLOADER | 73 | #ifndef BOOTLOADER |
76 | //#define CONFIG_RTC RTC_AS3525 | 74 | #define CONFIG_RTC RTC_AS3525 |
77 | #endif | 75 | #endif |
78 | 76 | ||
79 | /* Define this if you have a software controlled poweroff */ | 77 | /* Define this if you have a software controlled poweroff */ |
@@ -148,7 +146,7 @@ | |||
148 | /* enable these for the experimental usb stack */ | 146 | /* enable these for the experimental usb stack */ |
149 | #define HAVE_USBSTACK | 147 | #define HAVE_USBSTACK |
150 | #define USB_VENDOR_ID 0x0781 | 148 | #define USB_VENDOR_ID 0x0781 |
151 | #define USB_PRODUCT_ID 0x7421 | 149 | #define USB_PRODUCT_ID 0x7433 |
152 | #endif /* BOOTLOADER */ | 150 | #endif /* BOOTLOADER */ |
153 | 151 | ||
154 | /* Virtual LED (icon) */ | 152 | /* Virtual LED (icon) */ |
@@ -157,6 +155,11 @@ | |||
157 | /* Define this if you have adjustable CPU frequency */ | 155 | /* Define this if you have adjustable CPU frequency */ |
158 | #define HAVE_ADJUSTABLE_CPU_FREQ | 156 | #define HAVE_ADJUSTABLE_CPU_FREQ |
159 | 157 | ||
158 | #define MI4_FORMAT | ||
159 | #define BOOTFILE_EXT "sansa" | ||
160 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
161 | #define BOOTDIR "/.rockbox" | ||
162 | |||
160 | #define ICODE_ATTR_TREMOR_NOT_MDCT | 163 | #define ICODE_ATTR_TREMOR_NOT_MDCT |
161 | 164 | ||
162 | #define INCLUDE_TIMEOUT_API | 165 | #define INCLUDE_TIMEOUT_API |
diff --git a/firmware/export/config-e200v2.h b/firmware/export/config-e200v2.h new file mode 100644 index 0000000000..ac41cd33c4 --- /dev/null +++ b/firmware/export/config-e200v2.h | |||
@@ -0,0 +1,202 @@ | |||
1 | /* | ||
2 | * This config file is for the Sandisk Sansa e200v2 | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | /* For Rolo and boot loader */ | ||
7 | #define MODEL_NUMBER 41 | ||
8 | #define MODEL_NAME "Sandisk Sansa e200v2 series" | ||
9 | |||
10 | #define HW_SAMPR_CAPS (SAMPR_CAP_44) | ||
11 | |||
12 | /* define this if you have recording possibility */ | ||
13 | #define HAVE_RECORDING | ||
14 | |||
15 | #define REC_SAMPR_CAPS (SAMPR_CAP_22) | ||
16 | #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */ | ||
17 | #define REC_SAMPR_DEFAULT SAMPR_22 | ||
18 | |||
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) | ||
22 | |||
23 | /* define this if you have a bitmap LCD display */ | ||
24 | #define HAVE_LCD_BITMAP | ||
25 | |||
26 | /* define this if you have a colour LCD */ | ||
27 | #define HAVE_LCD_COLOR | ||
28 | |||
29 | /* define this if you want album art for this target */ | ||
30 | #define HAVE_ALBUMART | ||
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 176 | ||
46 | #define LCD_HEIGHT 220 | ||
47 | #define LCD_DEPTH 16 /* 65536 colours */ | ||
48 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
49 | |||
50 | /* define this if you have LCD enable function */ | ||
51 | #define HAVE_LCD_ENABLE | ||
52 | |||
53 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
54 | should be defined as well. */ | ||
55 | #define HAVE_LCD_SLEEP | ||
56 | #define HAVE_LCD_SLEEP_SETTING | ||
57 | |||
58 | /* define this if you can flip your LCD */ | ||
59 | #define HAVE_LCD_FLIP | ||
60 | |||
61 | /* define this if you can invert the colours on your LCD */ | ||
62 | #define HAVE_LCD_INVERT | ||
63 | |||
64 | /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */ | ||
65 | |||
66 | #define CONFIG_KEYPAD SANSA_E200_PAD | ||
67 | |||
68 | /* Define this if you do software codec */ | ||
69 | #define CONFIG_CODEC SWCODEC | ||
70 | /* There is no hardware tone control */ | ||
71 | #define HAVE_SW_TONE_CONTROLS | ||
72 | |||
73 | /* Define this if you have an AMS AS3525 */ | ||
74 | #define HAVE_AS3525 | ||
75 | |||
76 | /* define this if you have a real-time clock */ | ||
77 | #ifndef BOOTLOADER | ||
78 | #define CONFIG_RTC RTC_AS3525 | ||
79 | #endif | ||
80 | |||
81 | /* Define this if you have a software controlled poweroff */ | ||
82 | #define HAVE_SW_POWEROFF | ||
83 | |||
84 | /* Some Sansa E200s seem to be FAT16 formatted */ | ||
85 | #define HAVE_FAT16SUPPORT | ||
86 | |||
87 | /* The number of bytes reserved for loadable codecs */ | ||
88 | #define CODEC_SIZE 0x100000 | ||
89 | |||
90 | /* The number of bytes reserved for loadable plugins */ | ||
91 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
92 | |||
93 | #define AB_REPEAT_ENABLE 1 | ||
94 | |||
95 | /* FM Tuner */ | ||
96 | /* #define CONFIG_TUNER LV24020LP */ | ||
97 | /* #define HAVE_TUNER_PWR_CTRL */ | ||
98 | |||
99 | /* Define this for LCD backlight available */ | ||
100 | #define HAVE_BACKLIGHT | ||
101 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
102 | |||
103 | /* define this if the unit uses a scrollwheel for navigation */ | ||
104 | #define HAVE_SCROLLWHEEL | ||
105 | /* define from which rotation speed [degree/sec] on the acceleration starts */ | ||
106 | #define WHEEL_ACCEL_START 540 | ||
107 | /* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */ | ||
108 | #define WHEEL_ACCELERATION 1 | ||
109 | |||
110 | /* define this if you have a flash memory storage */ | ||
111 | #define HAVE_FLASH_STORAGE | ||
112 | |||
113 | /* define this if the flash memory uses the SecureDigital Memory Card protocol */ | ||
114 | #define HAVE_ATA_SD | ||
115 | |||
116 | #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */ | ||
117 | #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */ | ||
118 | #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */ | ||
119 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | ||
120 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
121 | |||
122 | /* Hardware controlled charging? FIXME */ | ||
123 | #define CONFIG_CHARGING CHARGING_SIMPLE | ||
124 | |||
125 | /* define this if the unit can be powered or charged via USB */ | ||
126 | #define HAVE_USB_POWER | ||
127 | |||
128 | /** Non-simulator section **/ | ||
129 | #ifndef SIMULATOR | ||
130 | |||
131 | /* Define this if you have an AMS AS3525*/ | ||
132 | #define CONFIG_CPU AS3525 | ||
133 | |||
134 | /* Define this if you want to use the AS2525 i2c interface */ | ||
135 | #define CONFIG_I2C I2C_AS3525 | ||
136 | |||
137 | /* define this if the hardware can be powered off while charging */ | ||
138 | /* Sansa can't be powered off while charging */ | ||
139 | /* #define HAVE_POWEROFF_WHILE_CHARGING */ | ||
140 | |||
141 | /* The start address index for ROM builds */ | ||
142 | #define ROM_START 0x00000000 | ||
143 | |||
144 | /* Define this to the CPU frequency */ | ||
145 | #define CPU_FREQ 75000000 | ||
146 | |||
147 | /* Type of LCD TODO: hopefully the same as the x5 but check this*/ | ||
148 | #define CONFIG_LCD LCD_X5 | ||
149 | |||
150 | /* Offset ( in the firmware file's header ) to the file CRC and data. These are | ||
151 | only used when loading the old format rockbox.e200 file */ | ||
152 | #define FIRMWARE_OFFSET_FILE_CRC 0x0 | ||
153 | #define FIRMWARE_OFFSET_FILE_DATA 0x8 | ||
154 | |||
155 | #ifndef BOOTLOADER | ||
156 | #define HAVE_MULTIVOLUME | ||
157 | #define HAVE_HOTSWAP | ||
158 | #endif | ||
159 | |||
160 | /* #define USB_IPODSTYLE */ | ||
161 | |||
162 | /* USB On-the-go */ | ||
163 | #define CONFIG_USBOTG USBOTG_AS3525 | ||
164 | |||
165 | /* enable these for the experimental usb stack */ | ||
166 | #define HAVE_USBSTACK | ||
167 | #define USB_VENDOR_ID 0x0781 | ||
168 | #define USB_PRODUCT_ID 0x7423 | ||
169 | |||
170 | /* Virtual LED (icon) */ | ||
171 | #define CONFIG_LED LED_VIRTUAL | ||
172 | |||
173 | /* Define this if you have adjustable CPU frequency */ | ||
174 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
175 | |||
176 | #define MI4_FORMAT | ||
177 | #define BOOTFILE_EXT "sansa" | ||
178 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
179 | #define BOOTDIR "/.rockbox" | ||
180 | |||
181 | #define ICODE_ATTR_TREMOR_NOT_MDCT | ||
182 | |||
183 | #define INCLUDE_TIMEOUT_API | ||
184 | |||
185 | #endif /* SIMULATOR */ | ||
186 | |||
187 | /** Port-specific settings **/ | ||
188 | |||
189 | /* Main LCD backlight brightness range and defaults */ | ||
190 | #define MIN_BRIGHTNESS_SETTING 1 | ||
191 | #define MAX_BRIGHTNESS_SETTING 12 | ||
192 | #define DEFAULT_BRIGHTNESS_SETTING 6 | ||
193 | |||
194 | /* Default recording levels */ | ||
195 | #define DEFAULT_REC_MIC_GAIN 23 | ||
196 | #define DEFAULT_REC_LEFT_GAIN 23 | ||
197 | #define DEFAULT_REC_RIGHT_GAIN 23 | ||
198 | |||
199 | #ifdef E200R_INSTALLER | ||
200 | #define IRAMORIG 0x40004000 | ||
201 | #endif | ||
202 | |||
diff --git a/firmware/export/config-m200v2.h b/firmware/export/config-m200v2.h new file mode 100644 index 0000000000..9386a157f6 --- /dev/null +++ b/firmware/export/config-m200v2.h | |||
@@ -0,0 +1,127 @@ | |||
1 | /* | ||
2 | * This config file is for the Sansa M200 series | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | /* For Rolo and boot loader */ | ||
7 | #define MODEL_NUMBER 42 | ||
8 | |||
9 | #define MODEL_NAME "Sandisk Sansa m200 series" | ||
10 | |||
11 | /* Enable FAT16 support */ | ||
12 | #define HAVE_FAT16SUPPORT | ||
13 | |||
14 | /* define this if you have recording possibility */ | ||
15 | //#define HAVE_RECORDING | ||
16 | |||
17 | /* Define bitmask of input sources - recordable bitmask can be defined | ||
18 | explicitly if different */ | ||
19 | //#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_SPDIF) | ||
20 | |||
21 | /* define this if you have a bitmap LCD display */ | ||
22 | #define HAVE_LCD_BITMAP | ||
23 | |||
24 | /* define this if you can flip your LCD */ | ||
25 | #define HAVE_LCD_FLIP | ||
26 | |||
27 | /* define this if you can invert the colours on your LCD */ | ||
28 | #define HAVE_LCD_INVERT | ||
29 | |||
30 | /* define this if you have access to the quickscreen */ | ||
31 | #define HAVE_QUICKSCREEN | ||
32 | /* define this if you have access to the pitchscreen */ | ||
33 | #define HAVE_PITCHSCREEN | ||
34 | |||
35 | /* define this if you would like tagcache to build on this target */ | ||
36 | #define HAVE_TAGCACHE | ||
37 | |||
38 | /* define this if you have a flash memory storage */ | ||
39 | #define HAVE_FLASH_STORAGE | ||
40 | |||
41 | /* LCD dimensions */ | ||
42 | #define LCD_WIDTH 128 | ||
43 | #define LCD_HEIGHT 64 | ||
44 | #define LCD_DEPTH 1 | ||
45 | |||
46 | #define LCD_PIXELFORMAT VERTICAL_PACKING | ||
47 | |||
48 | /* define this to indicate your device's keypad */ | ||
49 | #define CONFIG_KEYPAD SANSA_M200_PAD | ||
50 | |||
51 | /* define this if you have a real-time clock */ | ||
52 | #define CONFIG_RTC RTC_AS3525 | ||
53 | |||
54 | /* define this if you have RTC RAM available for settings */ | ||
55 | //#define HAVE_RTC_RAM | ||
56 | |||
57 | /* Define this if you have a software controlled poweroff */ | ||
58 | #define HAVE_SW_POWEROFF | ||
59 | |||
60 | /* The number of bytes reserved for loadable codecs */ | ||
61 | #define CODEC_SIZE 0x38000 | ||
62 | |||
63 | /* The number of bytes reserved for loadable plugins */ | ||
64 | #define PLUGIN_BUFFER_SIZE 0x10000 | ||
65 | |||
66 | #define AB_REPEAT_ENABLE 1 | ||
67 | |||
68 | /* Define this if you do software codec */ | ||
69 | #define CONFIG_CODEC SWCODEC | ||
70 | |||
71 | /* Define this if you have the TLV320 audio codec */ | ||
72 | /*#define HAVE_TLV320*/ | ||
73 | |||
74 | /* TLV320 has no tone controls, so we use the software ones */ | ||
75 | #define HAVE_SW_TONE_CONTROLS | ||
76 | |||
77 | /* Define this for LCD backlight available */ | ||
78 | #define HAVE_BACKLIGHT | ||
79 | |||
80 | #define CONFIG_I2C I2C_AS3525 | ||
81 | |||
82 | #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */ | ||
83 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | ||
84 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
85 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
86 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
87 | |||
88 | /* define this if the unit should not shut down on low battery. */ | ||
89 | #define NO_LOW_BATTERY_SHUTDOWN | ||
90 | |||
91 | #ifndef SIMULATOR | ||
92 | |||
93 | /* Define this if you have an AMS AS3525 */ | ||
94 | #define CONFIG_CPU AS3525 | ||
95 | |||
96 | /* Define this if you have ATA power-off control */ | ||
97 | #define HAVE_ATA_POWER_OFF | ||
98 | |||
99 | /* Define this to the CPU frequency */ | ||
100 | #define CPU_FREQ 120000000 | ||
101 | |||
102 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
103 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
104 | |||
105 | /* Offset ( in the firmware file's header ) to the real data */ | ||
106 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
107 | |||
108 | /* Software controlled LED */ | ||
109 | #define CONFIG_LED LED_VIRTUAL | ||
110 | |||
111 | #define CONFIG_LCD LCD_SSD1815 | ||
112 | |||
113 | #define BOOTFILE_EXT "sansa" | ||
114 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
115 | #define BOOTDIR "/" | ||
116 | |||
117 | #define IBSS_ATTR_VOICE_STACK | ||
118 | #define ICODE_ATTR_TREMOR_NOT_MDCT | ||
119 | #define ICODE_ATTR_TREMOR_MDCT | ||
120 | #define ICODE_ATTR_FLAC | ||
121 | #define IBSS_ATTR_FLAC_DECODED0 | ||
122 | #define ICONST_ATTR_MPA_HUFFMAN | ||
123 | #define IBSS_ATTR_MPC_SAMPLE_BUF | ||
124 | #define ICODE_ATTR_ALAC | ||
125 | #define IBSS_ATTR_SHORTEN_DECODED0 | ||
126 | |||
127 | #endif /* SIMULATOR */ | ||
diff --git a/firmware/export/config.h b/firmware/export/config.h index 7d36289ff2..73ecca1495 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -173,6 +173,7 @@ | |||
173 | #define I2C_DM320 12 /* DM320 style */ | 173 | #define I2C_DM320 12 /* DM320 style */ |
174 | #define I2C_S5L8700 13 | 174 | #define I2C_S5L8700 13 |
175 | #define I2C_JZ47XX 14 /* Ingenic Jz47XX style */ | 175 | #define I2C_JZ47XX 14 /* Ingenic Jz47XX style */ |
176 | #define I2C_AS3525 15 | ||
176 | 177 | ||
177 | /* CONFIG_LED */ | 178 | /* CONFIG_LED */ |
178 | #define LED_REAL 1 /* SW controlled LED (Archos recorders, player) */ | 179 | #define LED_REAL 1 /* SW controlled LED (Archos recorders, player) */ |
@@ -199,6 +200,7 @@ | |||
199 | #define RTC_S5L8700 14 | 200 | #define RTC_S5L8700 14 |
200 | #define RTC_S35390A 15 | 201 | #define RTC_S35390A 15 |
201 | #define RTC_JZ47XX 16 /* Ingenic Jz47XX */ | 202 | #define RTC_JZ47XX 16 /* Ingenic Jz47XX */ |
203 | #define RTC_AS3525 17 | ||
202 | 204 | ||
203 | /* USB On-the-go */ | 205 | /* USB On-the-go */ |
204 | #define USBOTG_ISP1362 1362 /* iriver H300 */ | 206 | #define USBOTG_ISP1362 1362 /* iriver H300 */ |
@@ -206,6 +208,7 @@ | |||
206 | #define USBOTG_M5636 5636 /* iAudio X5 */ | 208 | #define USBOTG_M5636 5636 /* iAudio X5 */ |
207 | #define USBOTG_ARC 5020 /* PortalPlayer 502x */ | 209 | #define USBOTG_ARC 5020 /* PortalPlayer 502x */ |
208 | #define USBOTG_JZ4740 4740 /* Ingenic Jz4740/Jz4732 */ | 210 | #define USBOTG_JZ4740 4740 /* Ingenic Jz4740/Jz4732 */ |
211 | #define USBOTG_AS3525 3525 /* AMS AS3525 */ | ||
209 | 212 | ||
210 | /* Multiple cores */ | 213 | /* Multiple cores */ |
211 | #define CPU 0 | 214 | #define CPU 0 |
@@ -306,6 +309,10 @@ | |||
306 | #include "config-ondavx767.h" | 309 | #include "config-ondavx767.h" |
307 | #elif defined(SANSA_CLIP) | 310 | #elif defined(SANSA_CLIP) |
308 | #include "config-clip.h" | 311 | #include "config-clip.h" |
312 | #elif defined(SANSA_E200V2) | ||
313 | #include "config-e200v2.h" | ||
314 | #elif defined(SANSA_M200V2) | ||
315 | #include "config-m200v2.h" | ||
309 | #else | 316 | #else |
310 | /* no known platform */ | 317 | /* no known platform */ |
311 | #endif | 318 | #endif |