Update bulgarian.lang by Zahari Yurukov
[maemo-rb.git] / firmware / export / config.h
blobec69e531574b345339d5ade527577b84509235b9
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Daniel Stenberg
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef __CONFIG_H__
23 #define __CONFIG_H__
25 #include "autoconf.h"
27 /* symbolic names for multiple choice configurations: */
29 /* CONFIG_STORAGE (note these are combineable bit-flags) */
30 #define STORAGE_ATA 0x01
31 #define STORAGE_MMC 0x02
32 #define STORAGE_SD 0x04
33 #define STORAGE_NAND 0x08
34 #define STORAGE_RAMDISK 0x10
36 /* CONFIG_TUNER (note these are combineable bit-flags) */
37 #define S1A0903X01 0x01 /* Samsung */
38 #define TEA5767 0x02 /* Philips */
39 #define LV24020LP 0x04 /* Sanyo */
40 #define SI4700 0x08 /* Silicon Labs */
41 #define TEA5760 0x10 /* Philips */
42 #define LV240000 0x20 /* Sanyo */
43 #define IPOD_REMOTE_TUNER 0x40 /* Apple */
44 #define RDA5802 0x80 /* RDA Microelectronics */
45 #define STFM1000 0x100 /* Sigmatel */
47 /* CONFIG_CODEC */
48 #define MAS3587F 3587
49 #define MAS3507D 3507
50 #define MAS3539F 3539
51 #define SWCODEC 1 /* if codec is done by SW */
53 /* CONFIG_CPU */
54 #define SH7034 7034
55 #define MCF5249 5249
56 #define MCF5250 5250
57 #define PP5002 5002
58 #define PP5020 5020
59 #define PP5022 5022
60 #define PP5024 5024
61 #define PP6100 6100
62 #define PNX0101 101
63 #define S3C2440 2440
64 #define DSC25 25
65 #define DM320 320
66 #define IMX31L 31
67 #define TCC770 770
68 #define TCC771L 771
69 #define TCC773L 773
70 #define TCC7801 7801
71 #define S5L8700 8700
72 #define S5L8701 8701
73 #define S5L8702 8702
74 #define JZ4732 4732
75 #define AS3525 3525
76 #define AT91SAM9260 9260
77 #define AS3525v2 35252
78 #define IMX233 233
79 #define RK27XX 2700
81 /* platforms
82 * bit fields to allow PLATFORM_HOSTED to be OR'ed e.g. with a
83 * possible future PLATFORM_ANDROID (some OSes might need totally different
84 * handling to run on them than a stand-alone application) */
85 #define PLATFORM_NATIVE (1<<0)
86 #define PLATFORM_HOSTED (1<<1)
87 #define PLATFORM_ANDROID (1<<2)
88 #define PLATFORM_SDL (1<<3)
89 #define PLATFORM_MAEMO4 (1<<4)
90 #define PLATFORM_MAEMO5 (1<<5)
91 #define PLATFORM_MAEMO (PLATFORM_MAEMO4|PLATFORM_MAEMO5)
92 #define PLATFORM_PANDORA (1<<6)
94 /* CONFIG_KEYPAD */
95 #define PLAYER_PAD 1
96 #define RECORDER_PAD 2
97 #define ONDIO_PAD 3
98 #define IRIVER_H100_PAD 4
99 #define IRIVER_H300_PAD 5
100 #define IAUDIO_X5M5_PAD 6
101 #define IPOD_4G_PAD 7
102 #define IPOD_3G_PAD 8
103 #define IPOD_1G2G_PAD 9
104 #define IRIVER_IFP7XX_PAD 10
105 #define GIGABEAT_PAD 11
106 #define IRIVER_H10_PAD 12
107 #define SANSA_E200_PAD 13
108 #define SANSA_C200_PAD 14
109 #define TATUNG_TPJ1022_PAD 15
110 #define ARCHOS_AV300_PAD 16
111 #define MROBE100_PAD 17
112 #define MROBE500_PAD 18
113 #define GIGABEAT_S_PAD 19
114 #define LOGIK_DAX_PAD 20
115 #define IAUDIO67_PAD 21
116 #define COWON_D2_PAD 22
117 #define IAUDIO_M3_PAD 23
118 #define CREATIVEZVM_PAD 24
119 #define SANSA_M200_PAD 25
120 #define CREATIVEZV_PAD 26
121 #define PHILIPS_SA9200_PAD 27
122 #define SANSA_C100_PAD 28
123 #define PHILIPS_HDD1630_PAD 29
124 #define MEIZU_M6SL_PAD 30
125 #define ONDAVX747_PAD 31
126 #define ONDAVX767_PAD 32
127 #define MEIZU_M6SP_PAD 33
128 #define MEIZU_M3_PAD 34
129 #define SANSA_CLIP_PAD 35
130 #define SANSA_FUZE_PAD 36
131 #define LYRE_PROTO1_PAD 37
132 #define SAMSUNG_YH_PAD 38
133 #define ONDAVX777_PAD 39
134 #define SAMSUNG_YPS3_PAD 40
135 #define MINI2440_PAD 41
136 #define PHILIPS_HDD6330_PAD 42
137 #define PBELL_VIBE500_PAD 43
138 #define MPIO_HD200_PAD 44
139 #define ANDROID_PAD 45
140 #define SDL_PAD 46
141 #define MPIO_HD300_PAD 47
142 #define SANSA_FUZEPLUS_PAD 48
143 #define RK27XX_GENERIC_PAD 49
144 #define HM60X_PAD 50
145 #define HM801_PAD 51
146 #define SANSA_CONNECT_PAD 52
147 #define SAMSUNG_YPR0_PAD 53
148 #define CREATIVE_ZENXFI2_PAD 54
149 #define CREATIVE_ZENXFI3_PAD 55
151 /* CONFIG_REMOTE_KEYPAD */
152 #define H100_REMOTE 1
153 #define H300_REMOTE 2
154 #define IAUDIO_REMOTE 3
155 #define MROBE_REMOTE 4
157 /* CONFIG_BACKLIGHT_FADING */
158 /* No fading capabilities at all (yet) */
159 #define BACKLIGHT_NO_FADING 0x0
160 /* Backlight fading is controlled using a hardware PWM mechanism */
161 #define BACKLIGHT_FADING_PWM 0x1
162 /* Backlight is controlled using a software implementation
163 * BACKLIGHT_FADING_SW_SETTING means that backlight is turned on by only setting
164 * the brightness (i.e. no real difference between backlight_on and
165 * backlight_set_brightness)
166 * BACKLIGHT_FADING_SW_HW_REG means that backlight brightness is restored
167 * "in hardware", from a hardware register upon backlight_on
168 * Both types need to have minor adjustments in the software fading code */
169 #define BACKLIGHT_FADING_SW_SETTING 0x2
170 #define BACKLIGHT_FADING_SW_HW_REG 0x4
171 /* Backlight fading is done in a target specific way
172 * for example in hardware, but not controllable*/
173 #define BACKLIGHT_FADING_TARGET 0x8
175 /* CONFIG_CHARGING */
177 /* Generic types */
178 #define CHARGING_SIMPLE 1 /* Simple, hardware controlled charging
179 * (CPU cannot read charger state but may read
180 * when power is plugged-in). */
181 #define CHARGING_MONITOR 2 /* Hardware controlled charging with monitoring
182 * (CPU is able to read HW charging state and
183 * when power is plugged-in). */
185 /* Mostly target-specific code in the /target tree */
186 #define CHARGING_TARGET 3 /* Any algorithm - usually software controlled
187 * charging or specific programming is required to
188 * use the charging hardware. */
190 /* CONFIG_BATTERY_MEASURE bits */
191 #define VOLTAGE_MEASURE 1 /* Target can report battery voltage
192 * Usually native ports */
193 #define PERCENTAGE_MEASURE 2 /* Target can report remaining capacity in %
194 * Usually application/hosted ports */
195 #define TIME_MEASURE 4 /* Target can report remaining time estimation
196 Usually application ports, and only
197 if the estimation is better that ours
198 (which it probably is) */
199 /* CONFIG_LCD */
200 #define LCD_SSD1815 1 /* as used by Archos Recorders and Ondios */
201 #define LCD_SSD1801 2 /* as used by Archos Player/Studio */
202 #define LCD_S1D15E06 3 /* as used by iRiver H100 series */
203 #define LCD_H300 4 /* as used by iRiver H300 series, exact model name is
204 unknown at the time of this writing */
205 #define LCD_X5 5 /* as used by iAudio X5 series, exact model name is
206 unknown at the time of this writing */
207 #define LCD_IPODCOLOR 6 /* as used by iPod Color/Photo */
208 #define LCD_IPODNANO 7 /* as used by iPod Nano */
209 #define LCD_IPODVIDEO 8 /* as used by iPod Video */
210 #define LCD_IPOD2BPP 9 /* as used by all fullsize greyscale iPods */
211 #define LCD_IPODMINI 10 /* as used by iPod Mini g1/g2 */
212 #define LCD_IFP7XX 11 /* as used by iRiver iFP 7xx/8xx */
213 #define LCD_GIGABEAT 12
214 #define LCD_H10_20GB 13 /* as used by iriver H10 20Gb */
215 #define LCD_H10_5GB 14 /* as used by iriver H10 5Gb */
216 #define LCD_TPJ1022 15 /* as used by Tatung Elio TPJ-1022 */
217 #define LCD_DSC25 16 /* as used by Archos AV300 */
218 #define LCD_C200 17 /* as used by Sandisk Sansa c200 */
219 #define LCD_MROBE500 18 /* as used by Olympus M:Robe 500i */
220 #define LCD_MROBE100 19 /* as used by Olympus M:Robe 100 */
221 #define LCD_LOGIKDAX 20 /* as used by Logik DAX - SSD1815 */
222 #define LCD_IAUDIO67 21 /* as used by iAudio 6/7 - unknown */
223 #define LCD_CREATIVEZVM 22 /* as used by Creative Zen Vision:M */
224 #define LCD_TL0350A 23 /* as used by the iAudio M3 remote, treated as main LCD */
225 #define LCD_COWOND2 24 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */
226 #define LCD_SA9200 25 /* as used by the Philips SA9200 */
227 #define LCD_S6B33B2 26 /* as used by the Sansa c100 */
228 #define LCD_HDD1630 27 /* as used by the Philips HDD1630 */
229 #define LCD_MEIZUM6 28 /* as used by the Meizu M6SP and M6SL (various models) */
230 #define LCD_ONDAVX747 29 /* as used by the Onda VX747 */
231 #define LCD_ONDAVX767 30 /* as used by the Onda VX767 */
232 #define LCD_SSD1303 31 /* as used by the Sansa Clip */
233 #define LCD_FUZE 32 /* as used by the Sansa Fuze */
234 #define LCD_LYRE_PROTO1 33 /* as used by the Lyre prototype 1 */
235 #define LCD_YH925 34 /* as used by Samsung YH-925 (similar to the H10 20GB) */
236 #define LCD_VIEW 35 /* as used by the Sansa View */
237 #define LCD_NANO2G 36 /* as used by the iPod Nano 2nd Generation */
238 #define LCD_MINI2440 37 /* as used by the Mini2440 */
239 #define LCD_HDD6330 38 /* as used by the Philips HDD6330 */
240 #define LCD_VIBE500 39 /* as used by the Packard Bell Vibe 500 */
241 #define LCD_IPOD6G 40 /* as used by the iPod Nano 2nd Generation */
242 #define LCD_FUZEPLUS 41
243 #define LCD_SPFD5420A 42 /* rk27xx */
244 #define LCD_CLIPZIP 43 /* as used by the Sandisk Sansa Clip Zip */
245 #define LCD_HX8340B 44 /* as used by the HiFiMAN HM-601/HM-602/HM-801 */
246 #define LCD_CONNECT 45 /* as used by the Sandisk Sansa Connect */
247 #define LCD_GIGABEATS 46
248 #define LCD_YPR0 47
249 #define LCD_CREATIVEZXFI2 48 /* as used by the Creative Zen X-Fi2 */
250 #define LCD_CREATIVEZXFI3 49 /* as used by the Creative Zen X-Fi3 */
252 /* LCD_PIXELFORMAT */
253 #define HORIZONTAL_PACKING 1
254 #define VERTICAL_PACKING 2
255 #define HORIZONTAL_INTERLEAVED 3
256 #define VERTICAL_INTERLEAVED 4
257 #define RGB565 565
258 #define RGB565SWAPPED 3553
260 /* LCD_STRIDEFORMAT */
261 #define VERTICAL_STRIDE 1
262 #define HORIZONTAL_STRIDE 2
264 /* CONFIG_ORIENTATION */
265 #define SCREEN_PORTRAIT 0
266 #define SCREEN_LANDSCAPE 1
267 #define SCREEN_SQUARE 2
269 /* CONFIG_I2C */
270 #define I2C_NONE 0 /* For targets that do not use I2C - as the
271 Lyre prototype 1 */
272 #define I2C_PLAYREC 1 /* Archos Player/Recorder style */
273 #define I2C_ONDIO 2 /* Ondio style */
274 #define I2C_COLDFIRE 3 /* Coldfire style */
275 #define I2C_PP5002 4 /* PP5002 style */
276 #define I2C_PP5020 5 /* PP5020 style */
277 #define I2C_PNX0101 6 /* PNX0101 style */
278 #define I2C_S3C2440 7
279 #define I2C_PP5024 8 /* PP5024 style */
280 #define I2C_IMX31L 9
281 #define I2C_TCC77X 10
282 #define I2C_TCC780X 11
283 #define I2C_DM320 12 /* DM320 style */
284 #define I2C_S5L8700 13
285 #define I2C_JZ47XX 14 /* Ingenic Jz47XX style */
286 #define I2C_AS3525 15
287 #define I2C_S5L8702 16 /* Same as S5L8700, but with two channels */
288 #define I2C_IMX233 17
289 #define I2C_RK27XX 18
291 /* CONFIG_LED */
292 #define LED_REAL 1 /* SW controlled LED (Archos recorders, player) */
293 #define LED_VIRTUAL 2 /* Virtual LED (icon) (Archos Ondio) */
294 /* else HW controlled LED (iRiver H1x0) */
296 /* CONFIG_NAND */
297 #define NAND_IFP7XX 1
298 #define NAND_TCC 2
299 #define NAND_SAMSUNG 3
300 #define NAND_CC 4 /* ChinaChip */
301 #define NAND_RK27XX 5
302 #define NAND_IMX233 6
304 /* CONFIG_RTC */
305 #define RTC_M41ST84W 1 /* Archos Recorder */
306 #define RTC_PCF50605 2 /* iPod 3G, 4G & Mini */
307 #define RTC_PCF50606 3 /* iriver H300 */
308 #define RTC_S3C2440 4
309 #define RTC_E8564 5 /* iriver H10 */
310 #define RTC_AS3514 6 /* Sandisk Sansa series */
311 #define RTC_DS1339_DS3231 7 /* h1x0 RTC mod */
312 #define RTC_IMX31L 8
313 #define RTC_RX5X348AB 9
314 #define RTC_TCC77X 10
315 #define RTC_TCC780X 11
316 #define RTC_MR100 12
317 #define RTC_MC13783 13 /* Freescale MC13783 PMIC */
318 #define RTC_S5L8700 14
319 #define RTC_S35390A 15
320 #define RTC_JZ47XX 16 /* Ingenic Jz47XX */
321 #define RTC_NANO2G 17 /* This seems to be a PCF5063x */
322 #define RTC_D2 18 /* Either PCF50606 or PCF50635 */
323 #define RTC_S35380A 19
324 #define RTC_IMX233 20
325 #define RTC_STM41T62 21 /* ST M41T62 */
327 /* USB On-the-go */
328 #define USBOTG_M66591 6591 /* M:Robe 500 */
329 #define USBOTG_ISP1362 1362 /* iriver H300 */
330 #define USBOTG_ISP1583 1583 /* Creative Zen Vision:M */
331 #define USBOTG_M5636 5636 /* iAudio X5 */
332 #define USBOTG_ARC 5020 /* PortalPlayer 502x and IMX233 */
333 #define USBOTG_JZ4740 4740 /* Ingenic Jz4740/Jz4732 */
334 #define USBOTG_AS3525 3525 /* AMS AS3525 */
335 #define USBOTG_S3C6400X 6400 /* Samsung S3C6400X, also used in the S5L8701/S5L8702/S5L8720 */
336 #define USBOTG_RK27XX 2700 /* Rockchip rk27xx */
337 #define USBOTG_TNETV105 105 /* TI TNETV105 */
339 /* Multiple cores */
340 #define CPU 0
341 #define COP 1
343 /* now go and pick yours */
344 #if defined(ARCHOS_PLAYER)
345 #include "config/archosplayer.h"
346 #elif defined(ARCHOS_RECORDER)
347 #include "config/archosrecorder.h"
348 #elif defined(ARCHOS_FMRECORDER)
349 #include "config/archosfmrecorder.h"
350 #elif defined(ARCHOS_RECORDERV2)
351 #include "config/archosrecorderv2.h"
352 #elif defined(ARCHOS_ONDIOSP)
353 #include "config/archosondiosp.h"
354 #elif defined(ARCHOS_ONDIOFM)
355 #include "config/archosondiofm.h"
356 #elif defined(ARCHOS_AV300)
357 #include "config/archosav300.h"
358 #elif defined(IRIVER_H100)
359 #include "config/iriverh100.h"
360 #elif defined(IRIVER_H120)
361 #include "config/iriverh120.h"
362 #elif defined(IRIVER_H300)
363 #include "config/iriverh300.h"
364 #elif defined(IAUDIO_X5)
365 #include "config/iaudiox5.h"
366 #elif defined(IAUDIO_M5)
367 #include "config/iaudiom5.h"
368 #elif defined(IAUDIO_M3)
369 #include "config/iaudiom3.h"
370 #elif defined(IPOD_COLOR)
371 #include "config/ipodcolor.h"
372 #elif defined(IPOD_NANO)
373 #include "config/ipodnano1g.h"
374 #elif defined(IPOD_VIDEO)
375 #include "config/ipodvideo.h"
376 #elif defined(IPOD_1G2G)
377 #include "config/ipod1g2g.h"
378 #elif defined(IPOD_3G)
379 #include "config/ipod3g.h"
380 #elif defined(IPOD_4G)
381 #include "config/ipod4g.h"
382 #elif defined(IPOD_NANO2G)
383 #include "config/ipodnano2g.h"
384 #elif defined(IPOD_6G)
385 #include "config/ipod6g.h"
386 #elif defined(IRIVER_IFP7XX)
387 #include "config/iriverifp7xx.h"
388 #elif defined(GIGABEAT_F)
389 #include "config/gigabeatfx.h"
390 #elif defined(GIGABEAT_S)
391 #include "config/gigabeats.h"
392 #elif defined(IPOD_MINI)
393 #include "config/ipodmini1g.h"
394 #elif defined(IPOD_MINI2G)
395 #include "config/ipodmini2g.h"
396 #elif defined(IRIVER_H10)
397 #include "config/iriverh10.h"
398 #elif defined(IRIVER_H10_5GB)
399 #include "config/iriverh10_5gb.h"
400 #elif defined(SANSA_E200)
401 #include "config/sansae200.h"
402 #elif defined(SANSA_C200)
403 #include "config/sansac200.h"
404 #elif defined(SANSA_M200)
405 #include "config/sansam200.h"
406 #elif defined(TATUNG_TPJ1022)
407 #include "config/tatungtpj1022.h"
408 #elif defined(MROBE_100)
409 #include "config/mrobe100.h"
410 #elif defined(MROBE_500)
411 #include "config/mrobe500.h"
412 #elif defined(LOGIK_DAX)
413 #include "config/logikdax.h"
414 #elif defined(IAUDIO_7)
415 #include "config/iaudio7.h"
416 #elif defined(COWON_D2)
417 #include "config/cowond2.h"
418 #elif defined(CREATIVE_ZVM)
419 #include "config/zenvisionm30gb.h"
420 #elif defined(CREATIVE_ZVM60GB)
421 #include "config/zenvisionm60gb.h"
422 #elif defined(CREATIVE_ZV)
423 #include "config/zenvision.h"
424 #elif defined(CREATIVE_ZENXFI2)
425 #include "config/creativezenxfi2.h"
426 #elif defined(CREATIVE_ZENXFI3)
427 #include "config/creativezenxfi3.h"
428 #elif defined(PHILIPS_SA9200)
429 #include "config/gogearsa9200.h"
430 #elif defined(PHILIPS_HDD1630)
431 #include "config/gogearhdd1630.h"
432 #elif defined(PHILIPS_HDD6330)
433 #include "config/gogearhdd6330.h"
434 #elif defined(SANSA_C100)
435 #include "config/sansac100.h"
436 #elif defined(MEIZU_M6SL)
437 #include "config/meizum6sl.h"
438 #elif defined(MEIZU_M6SP)
439 #include "config/meizum6sp.h"
440 #elif defined(MEIZU_M3)
441 #include "config/meizum3.h"
442 #elif defined(ONDA_VX747) || defined(ONDA_VX747P)
443 #include "config/ondavx747.h"
444 #elif defined(ONDA_VX777)
445 #include "config/ondavx777.h"
446 #elif defined(ONDA_VX767)
447 #include "config/ondavx767.h"
448 #elif defined(SANSA_CLIP)
449 #include "config/sansaclip.h"
450 #elif defined(SANSA_CLIPV2)
451 #include "config/sansaclipv2.h"
452 #elif defined(SANSA_CLIPPLUS)
453 #include "config/sansaclipplus.h"
454 #elif defined(SANSA_E200V2)
455 #include "config/sansae200v2.h"
456 #elif defined(SANSA_M200V4)
457 #include "config/sansam200v4.h"
458 #elif defined(SANSA_FUZE)
459 #include "config/sansafuze.h"
460 #elif defined(SANSA_FUZEV2)
461 #include "config/sansafuzev2.h"
462 #elif defined(SANSA_FUZEPLUS)
463 #include "config/sansafuzeplus.h"
464 #elif defined(SANSA_CLIPZIP)
465 #include "config/sansaclipzip.h"
466 #elif defined(SANSA_C200V2)
467 #include "config/sansac200v2.h"
468 #elif defined(SANSA_VIEW)
469 #include "config/sansaview.h"
470 #elif defined(LYRE_PROTO1)
471 #include "config/lyreproto1.h"
472 #elif defined(MINI2440)
473 #include "config/mini2440.h"
474 #elif defined(SAMSUNG_YH820)
475 #include "config/samsungyh820.h"
476 #elif defined(SAMSUNG_YH920)
477 #include "config/samsungyh920.h"
478 #elif defined(SAMSUNG_YH925)
479 #include "config/samsungyh925.h"
480 #elif defined(SAMSUNG_YPS3)
481 #include "config/samsungyps3.h"
482 #elif defined(PBELL_VIBE500)
483 #include "config/vibe500.h"
484 #elif defined(MPIO_HD200)
485 #include "config/mpiohd200.h"
486 #elif defined(MPIO_HD300)
487 #include "config/mpiohd300.h"
488 #elif defined(RK27_GENERIC)
489 #include "config/rk27generic.h"
490 #elif defined(HM60X)
491 #include "config/hifimanhm60x.h"
492 #elif defined(HM801)
493 #include "config/hifimanhm801.h"
494 #elif defined(SANSA_CONNECT)
495 #include "config/sansaconnect.h"
496 #elif defined(SDLAPP)
497 #include "config/sdlapp.h"
498 #elif defined(ANDROID)
499 #include "config/android.h"
500 #elif defined(NOKIAN8XX)
501 #include "config/nokian8xx.h"
502 #elif defined(NOKIAN900)
503 #include "config/nokian900.h"
504 #elif defined(PANDORA)
505 #include "config/pandora.h"
506 #elif defined(SAMSUNG_YPR0)
507 #include "config/samsungypr0.h"
508 #else
509 /* no known platform */
510 #endif
512 #ifdef __PCTOOL__
513 #undef CONFIG_CPU
514 #define CONFIG_CPU 0
515 #endif
517 #ifdef APPLICATION
518 #define CONFIG_CPU 0
519 #define CONFIG_STORAGE 0
520 #endif
522 /* keep this include after the target configs */
523 #ifdef SIMULATOR
524 #include "config/sim.h"
525 #endif
527 #ifndef CONFIG_PLATFORM
528 #define CONFIG_PLATFORM PLATFORM_NATIVE
529 #endif
531 /* setup basic macros from capability masks */
532 #include "config_caps.h"
534 /* setup CPU-specific defines */
536 #ifndef __PCTOOL__
538 /* define for all cpus from SH family */
539 #if (ARCH == ARCH_SH) && (CONFIG_CPU == SH7034)
540 #define CPU_SH
541 #endif
543 /* define for all cpus from coldfire family */
544 #if (ARCH == ARCH_M68K) && ((CONFIG_CPU == MCF5249) || (CONFIG_CPU == MCF5250))
545 #define CPU_COLDFIRE
546 #endif
548 /* define for all cpus from PP family */
549 #if (CONFIG_CPU == PP5002)
550 #define CPU_PP
551 #elif (CONFIG_CPU == PP5020) || (CONFIG_CPU == PP5022) \
552 || (CONFIG_CPU == PP5024) || (CONFIG_CPU == PP6100)
553 #define CPU_PP
554 #define CPU_PP502x
555 #endif
557 /* define for all cpus from S5L870X family */
558 #if (CONFIG_CPU == S5L8700) || (CONFIG_CPU == S5L8701) || (CONFIG_CPU == S5L8702)
559 #define CPU_S5L870X
560 #endif
562 /* define for all cpus from TCC77X family */
563 #if (CONFIG_CPU == TCC771L) || (CONFIG_CPU == TCC773L) || (CONFIG_CPU == TCC770)
564 #define CPU_TCC77X
565 #endif
567 /* define for all cpus from TCC780 family */
568 #if (CONFIG_CPU == TCC7801)
569 #define CPU_TCC780X
570 #endif
572 /* define for all cpus from ARM7TDMI family (for specific optimisations) */
573 #if defined(CPU_PP) || (CONFIG_CPU == PNX0101) || (CONFIG_CPU == DSC25)
574 #define CPU_ARM7TDMI
575 #endif
577 /* define for all cpus from ARM family */
578 #if ARCH == ARCH_ARM
579 #define CPU_ARM
580 #define ARM_ARCH ARCH_VERSION /* ARMv{4,5,6,7} */
581 #endif
583 #if ARCH == ARCH_MIPS
584 #define CPU_MIPS ARCH_VERSION /* 32, 64 */
585 #endif
587 #endif /*__PCTOOL__*/
589 /* now set any CONFIG_ defines correctly if they are not used,
590 No need to do this on CONFIG_'s which are compulsory (e.g CONFIG_CODEC ) */
592 #if !defined(CONFIG_BACKLIGHT_FADING)
593 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_NO_FADING
594 #endif
596 #ifndef CONFIG_I2C
597 #define CONFIG_I2C I2C_NONE
598 #endif
600 #ifndef CONFIG_TUNER
601 #define CONFIG_TUNER 0
602 #endif
604 #ifndef CONFIG_USBOTG
605 #define CONFIG_USBOTG 0
606 #endif
608 #ifndef CONFIG_LED
609 #define CONFIG_LED LED_VIRTUAL
610 #endif
612 #ifndef CONFIG_CHARGING
613 #define CONFIG_CHARGING 0
614 #endif
616 #ifndef CONFIG_BATTERY_MEASURE
617 #define CONFIG_BATTERY_MEASURE 0
618 #define NO_LOW_BATTERY_SHUTDOWN
619 #endif
621 #ifndef CONFIG_RTC
622 #define CONFIG_RTC 0
623 #endif
625 #ifndef BATTERY_TYPES_COUNT
626 #define BATTERY_TYPES_COUNT 0
627 #endif
629 #ifndef BATTERY_CAPACITY_DEFAULT
630 #define BATTERY_CAPACITY_DEFAULT 0
631 #endif
633 #ifndef BATTERY_CAPACITY_INC
634 #define BATTERY_CAPACITY_INC 0
635 #endif
637 #ifndef CONFIG_ORIENTATION
638 #if LCD_HEIGHT > LCD_WIDTH
639 #define CONFIG_ORIENTATION SCREEN_PORTRAIT
640 #elif LCD_HEIGHT < LCD_WIDTH
641 #define CONFIG_ORIENTATION SCREEN_LANDSCAPE
642 #else
643 #define CONFIG_ORIENTATION SCREEN_SQUARE
644 #endif
645 #endif
647 /* Pixel aspect ratio is defined in terms of a multiplier for pixel width and
648 * height, and is set to 1:1 if the target does not set a value
650 #ifndef LCD_PIXEL_ASPECT_HEIGHT
651 #define LCD_PIXEL_ASPECT_HEIGHT 1
652 #endif
653 #ifndef LCD_PIXEL_ASPECT_WIDTH
654 #define LCD_PIXEL_ASPECT_WIDTH 1
655 #endif
657 /* Used for split displays (Sansa Clip). Set to 0 otherwise */
658 #ifndef LCD_SPLIT_LINES
659 #define LCD_SPLIT_LINES 0
660 #endif
662 /* Simulator LCD dimensions. Set to standard dimensions if undefined */
663 #ifndef SIM_LCD_WIDTH
664 #define SIM_LCD_WIDTH LCD_WIDTH
665 #endif
666 #ifndef SIM_LCD_HEIGHT
667 #define SIM_LCD_HEIGHT (LCD_HEIGHT + LCD_SPLIT_LINES)
668 #endif
670 #ifdef HAVE_REMOTE_LCD
671 #ifndef SIM_REMOTE_WIDTH
672 #define SIM_REMOTE_WIDTH LCD_REMOTE_WIDTH
673 #endif
674 #ifndef SIM_REMOTE_HEIGHT
675 #define SIM_REMOTE_HEIGHT LCD_REMOTE_HEIGHT
676 #endif
677 #endif /* HAVE_REMOTE_LCD */
679 /* define this in the target config.h to use a different size */
680 #ifndef CONFIG_DEFAULT_ICON_HEIGHT
681 #define CONFIG_DEFAULT_ICON_HEIGHT 8
682 #endif
683 #ifndef CONFIG_DEFAULT_ICON_WIDTH
684 #define CONFIG_DEFAULT_ICON_WIDTH 6
685 #endif
686 #ifndef CONFIG_REMOTE_DEFAULT_ICON_HEIGHT
687 #define CONFIG_REMOTE_DEFAULT_ICON_HEIGHT 8
688 #endif
689 #ifndef CONFIG_REMOTE_DEFAULT_ICON_WIDTH
690 #define CONFIG_REMOTE_DEFAULT_ICON_WIDTH 6
691 #endif
693 #if LCD_DEPTH > 1 || defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
694 #define HAVE_BACKDROP_IMAGE
695 #endif
697 #if (CONFIG_TUNER & (CONFIG_TUNER - 1)) != 0
698 /* Multiple possible tuners */
699 #define CONFIG_TUNER_MULTI
700 #endif
702 /* deactivate fading in bootloader */
703 #if defined(BOOTLOADER)
704 #undef CONFIG_BACKLIGHT_FADING
705 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_NO_FADING
706 #endif
708 /* determine which setting/manual text to use */
709 #if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_PWM)
711 /* possibly overridden in target config */
712 #if !defined(HAVE_BACKLIGHT_FADING_BOOL_SETTING) \
713 && !defined(HAVE_BACKLIGHT_FADING_INT_SETTING)
714 #define HAVE_BACKLIGHT_FADING_INT_SETTING
715 #endif
717 #elif (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_SETTING) \
718 || (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG) \
719 || (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_TARGET)
721 /* possibly overridden in target config */
722 #if !defined(HAVE_BACKLIGHT_FADING_BOOL_SETTING) \
723 && !defined(HAVE_BACKLIGHT_FADING_INT_SETTING)
724 #define HAVE_BACKLIGHT_FADING_BOOL_SETTING
725 #endif
727 #endif /* CONFIG_BACKLIGHT_FADING */
729 /* Storage related config handling */
731 #if (CONFIG_STORAGE & (CONFIG_STORAGE - 1)) != 0
732 /* Multiple storage drivers */
733 #define CONFIG_STORAGE_MULTI
734 #endif
736 /* Explicit HAVE_MULTIVOLUME in the config file. Allow the maximum number */
737 #ifdef HAVE_MULTIVOLUME
738 #define NUM_VOLUMES_PER_DRIVE 4
739 #else
740 #define NUM_VOLUMES_PER_DRIVE 1
741 #endif
742 #if defined(CONFIG_STORAGE_MULTI) && !defined(HAVE_MULTIDRIVE)
743 #define HAVE_MULTIDRIVE
744 #endif
746 #if defined(HAVE_MULTIDRIVE) && !defined(HAVE_MULTIVOLUME)
747 #define HAVE_MULTIVOLUME
748 #endif
750 #if defined(HAVE_MULTIDRIVE) && !defined(NUM_DRIVES)
751 #error HAVE_MULTIDRIVE needs to have an explicit NUM_DRIVES
752 #endif
754 #ifndef NUM_DRIVES
755 #define NUM_DRIVES 1
756 #endif
758 #define NUM_VOLUMES (NUM_DRIVES * NUM_VOLUMES_PER_DRIVE)
760 #if defined(BOOTLOADER) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
761 /* Bootloaders don't use CPU frequency adjustment */
762 #undef HAVE_ADJUSTABLE_CPU_FREQ
763 #endif
765 #if defined(__PCTOOL__) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
766 /* PCTOOLs don't use CPU frequency adjustment */
767 #undef HAVE_ADJUSTABLE_CPU_FREQ
768 #endif
770 /* Enable the directory cache and tagcache in RAM if we have
771 * plenty of RAM. Both features can be enabled independently. */
772 #if (MEMORYSIZE >= 8) && !defined(BOOTLOADER) && !defined(__PCTOOL__) \
773 && !defined(APPLICATION)
774 #define HAVE_DIRCACHE
775 #ifdef HAVE_TAGCACHE
776 #define HAVE_TC_RAMCACHE
777 #endif
778 #endif
780 #if defined(HAVE_TAGCACHE) && defined(HAVE_LCD_BITMAP)
781 #define HAVE_PICTUREFLOW_INTEGRATION
782 #endif
784 /* Add one HAVE_ define for all mas35xx targets */
785 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3507D) || (CONFIG_CODEC == MAS3539F)
786 #define HAVE_MAS35XX
787 #endif
789 #if (CONFIG_CODEC == SWCODEC)
790 #ifdef BOOTLOADER
792 #ifdef HAVE_BOOTLOADER_USB_MODE
793 /* Priority in bootloader is wanted */
794 #define HAVE_PRIORITY_SCHEDULING
795 #define USB_STATUS_BY_EVENT
796 #define USB_DETECT_BY_REQUEST
797 #if defined(HAVE_USBSTACK) && CONFIG_USBOTG == USBOTG_ARC
798 #define INCLUDE_TIMEOUT_API
799 #define USB_DRIVER_CLOSE
800 #endif
801 #endif
803 #else /* !BOOTLOADER */
805 #define HAVE_EXTENDED_MESSAGING_AND_NAME
806 #define HAVE_WAKEUP_EXT_CB
809 #if defined(ASSEMBLER_THREADS) \
810 || defined(HAVE_WIN32_FIBER_THREADS) \
811 || defined(HAVE_SIGALTSTACK_THREADS)
812 #define HAVE_PRIORITY_SCHEDULING
813 #endif
815 #if (CONFIG_PLATFORM & PLATFORM_NATIVE)
816 #define HAVE_PRIORITY_SCHEDULING
817 #define HAVE_SCHEDULER_BOOSTCTRL
818 #endif /* PLATFORM_NATIVE */
821 #ifdef HAVE_USBSTACK
822 #if CONFIG_USBOTG == USBOTG_ARC
823 #define USB_STATUS_BY_EVENT
824 #define USB_DETECT_BY_REQUEST
825 #define INCLUDE_TIMEOUT_API
826 #elif CONFIG_USBOTG == USBOTG_AS3525
827 #define USB_STATUS_BY_EVENT
828 #define USB_DETECT_BY_REQUEST
829 #elif CONFIG_USBOTG == USBOTG_S3C6400X /* FIXME */ && CONFIG_CPU == AS3525v2
830 #define USB_STATUS_BY_EVENT
831 #define USB_DETECT_BY_REQUEST
832 #elif CONFIG_USBOTG == USBOTG_RK27XX
833 #define USB_STATUS_BY_EVENT
834 #define USB_DETECT_BY_REQUEST
835 #endif /* CONFIG_USB == */
836 #endif /* HAVE_USBSTACK */
838 #endif /* BOOTLOADER */
840 #if defined(HAVE_USBSTACK) || (CONFIG_CPU == JZ4732) \
841 || (CONFIG_CPU == AS3525) || (CONFIG_CPU == AS3525v2) \
842 || defined(CPU_S5L870X) || (CONFIG_CPU == S3C2440) \
843 || defined(APPLICATION) || (CONFIG_CPU == PP5002) \
844 || (CONFIG_CPU == RK27XX) || (CONFIG_CPU == IMX233)
845 #define HAVE_SEMAPHORE_OBJECTS
846 #endif
848 /*include support for crossfading - requires significant PCM buffer space*/
849 #if MEMORYSIZE > 2
850 #define HAVE_CROSSFADE
851 #endif
853 #endif /* (CONFIG_CODEC == SWCODEC) */
855 /* Determine if accesses should be strictly long aligned. */
856 #if (CONFIG_CPU == SH7034) || defined(CPU_ARM) || defined(CPU_MIPS)
857 #define ROCKBOX_STRICT_ALIGN 1
858 #endif
860 #if defined(CPU_ARM) && defined(__ASSEMBLER__)
861 /* ARMv4T doesn't switch the T bit when popping pc directly, we must use BX */
862 .macro ldmpc cond="", order="ia", regs
863 #if ARM_ARCH == 4 && defined(USE_THUMB)
864 ldm\cond\order sp!, { \regs, lr }
865 bx\cond lr
866 #else
867 ldm\cond\order sp!, { \regs, pc }
868 #endif
869 .endm
870 .macro ldrpc cond=""
871 #if ARM_ARCH == 4 && defined(USE_THUMB)
872 ldr\cond lr, [sp], #4
873 bx\cond lr
874 #else
875 ldr\cond pc, [sp], #4
876 #endif
877 .endm
878 #endif
880 #if defined(CPU_COLDFIRE) && defined(__ASSEMBLER__)
881 /* Assembler doesn't support these as mnemonics but does tpf */
882 .macro tpf.w
883 .word 0x51fa
884 .endm
886 .macro tpf.l
887 .word 0x51fb
888 .endm
889 #endif
891 #ifndef CODEC_SIZE
892 #define CODEC_SIZE 0
893 #endif
895 /* This attribute can be used to ensure that certain symbols are never profiled
896 * which can be important as profiling a function de-inlines it */
897 #ifdef RB_PROFILE
898 #define NO_PROF_ATTR __attribute__ ((no_instrument_function))
899 #else
900 #define NO_PROF_ATTR
901 #endif
903 /* IRAM usage */
904 #if (CONFIG_PLATFORM & PLATFORM_NATIVE) && /* Not for hosted environments */ \
905 (((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \
906 defined(CPU_COLDFIRE) || /* Coldfire: core, plugins, codecs */ \
907 defined(CPU_PP) || /* PortalPlayer: core, plugins, codecs */ \
908 (CONFIG_CPU == AS3525 && MEMORYSIZE > 2 && !defined(BOOTLOADER)) || /* AS3525 +2MB: core, plugins, codecs */ \
909 (CONFIG_CPU == AS3525 && MEMORYSIZE <= 2 && !defined(PLUGIN) && !defined(CODEC) && !defined(BOOTLOADER)) || /* AS3525 2MB: core only */ \
910 (CONFIG_CPU == AS3525v2 && !defined(PLUGIN) && !defined(CODEC) && !defined(BOOTLOADER)) || /* AS3525v2: core only */ \
911 (CONFIG_CPU == PNX0101) || \
912 (CONFIG_CPU == TCC7801) || \
913 (CONFIG_CPU == IMX233 && !defined(PLUGIN) && !defined(CODEC)) || /* IMX233: core only */ \
914 defined(CPU_S5L870X)) || /* Samsung S5L8700: core, plugins, codecs */ \
915 (CONFIG_CPU == JZ4732 && !defined(PLUGIN) && !defined(CODEC)) /* Jz4740: core only */
916 #define ICODE_ATTR __attribute__ ((section(".icode")))
917 #define ICONST_ATTR __attribute__ ((section(".irodata")))
918 #define IDATA_ATTR __attribute__ ((section(".idata")))
919 #define IBSS_ATTR __attribute__ ((section(".ibss")))
920 #define USE_IRAM
921 #if CONFIG_CPU != SH7034 && (CONFIG_CPU != AS3525 || MEMORYSIZE > 2) \
922 && CONFIG_CPU != JZ4732 && CONFIG_CPU != AS3525v2 && CONFIG_CPU != IMX233
923 #define PLUGIN_USE_IRAM
924 #endif
925 #else
926 #define ICODE_ATTR
927 #define ICONST_ATTR
928 #define IDATA_ATTR
929 #define IBSS_ATTR
930 #endif
932 #if (defined(CPU_PP) || (CONFIG_CPU == AS3525) || (CONFIG_CPU == AS3525v2) || \
933 (CONFIG_CPU == IMX31L) || (CONFIG_CPU == IMX233)) \
934 && (CONFIG_PLATFORM & PLATFORM_NATIVE) && !defined(BOOTLOADER)
935 /* Functions that have INIT_ATTR attached are NOT guaranteed to survive after
936 * root_menu() has been called. Their code may be overwritten by other data or
937 * code in order to save RAM, and references to them might point into
938 * zombie area.
940 * It is critical that you make sure these functions are only called before
941 * the final call to root_menu() (see apps/main.c) is called (i.e. basically
942 * only while main() runs), otherwise things may go wild,
943 * from crashes to freezes to exploding daps.
945 #define INIT_ATTR __attribute__ ((section(".init")))
946 #define INITDATA_ATTR __attribute__ ((section(".initdata")))
947 #define HAVE_INIT_ATTR
948 #else
949 #define INIT_ATTR
950 #define INITDATA_ATTR
951 #endif
953 /* We need to call storage_init more than once only if USB storage mode is
954 * handled in hardware:
955 * Deinit storage -> let hardware handle USB mode -> storage_init() again
957 #if defined(HAVE_USBSTACK) || defined(USB_NONE)
958 #define STORAGE_INIT_ATTR INIT_ATTR
959 #else
960 #define STORAGE_INIT_ATTR
961 #endif
963 #if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__)
964 #define DATA_ATTR __attribute__ ((section("__DATA, .data")))
965 #else
966 #define DATA_ATTR __attribute__ ((section(".data")))
967 #endif
969 #ifndef IRAM_LCDFRAMEBUFFER
970 /* if the LCD framebuffer has not been moved to IRAM, define it empty here */
971 #define IRAM_LCDFRAMEBUFFER
972 #endif
974 /* Change this if you want to build a single-core firmware for a multicore
975 * target for debugging */
976 #if defined(BOOTLOADER) || (CONFIG_CPU == PP6100)
977 #define FORCE_SINGLE_CORE
978 #endif
980 #if defined(CPU_PP)
981 #define IDLE_STACK_SIZE 0x80
982 #define IDLE_STACK_WORDS 0x20
984 /* Attributes to place data in uncached DRAM */
985 /* These are useful beyond dual-core and ultimately beyond PP since they may
986 * be used for DMA buffers and such without cache maintenence calls. */
987 #define NOCACHEBSS_ATTR __attribute__((section(".ncbss"),nocommon))
988 #define NOCACHEDATA_ATTR __attribute__((section(".ncdata"),nocommon))
990 #if !defined(FORCE_SINGLE_CORE)
992 #define NUM_CORES 2
993 #define HAVE_CORELOCK_OBJECT
994 #define CURRENT_CORE current_core()
995 /* Attributes for core-shared data in DRAM where IRAM is better used for other
996 * purposes. */
997 #define SHAREDBSS_ATTR NOCACHEBSS_ATTR
998 #define SHAREDDATA_ATTR NOCACHEDATA_ATTR
1000 #define IF_COP(...) __VA_ARGS__
1001 #define IF_COP_VOID(...) __VA_ARGS__
1002 #define IF_COP_CORE(core) core
1004 #endif /* !defined(FORCE_SINGLE_CORE) */
1006 #endif /* CPU_PP */
1008 #if CONFIG_CPU == IMX31L || CONFIG_CPU == IMX233
1009 #define NOCACHEBSS_ATTR __attribute__((section(".ncbss"),nocommon))
1010 #define NOCACHEDATA_ATTR __attribute__((section(".ncdata"),nocommon))
1011 #endif
1013 #ifndef NUM_CORES
1014 /* Default to single core */
1015 #define NUM_CORES 1
1016 #define CURRENT_CORE CPU
1017 /* Attributes for core-shared data in DRAM - no caching considerations */
1018 #define SHAREDBSS_ATTR
1019 #define SHAREDDATA_ATTR
1020 #ifndef NOCACHEBSS_ATTR
1021 #define NOCACHEBSS_ATTR
1022 #define NOCACHEDATA_ATTR
1023 #endif
1025 #define IF_COP(...)
1026 #define IF_COP_VOID(...) void
1027 #define IF_COP_CORE(core) CURRENT_CORE
1029 #endif /* NUM_CORES */
1031 #ifdef HAVE_HEADPHONE_DETECTION
1032 /* Timeout objects required if headphone detection is enabled */
1033 #define INCLUDE_TIMEOUT_API
1034 #endif /* HAVE_HEADPHONE_DETECTION */
1036 #ifdef HAVE_TOUCHSCREEN
1037 /* Timeout objects required for kinetic list scrolling */
1038 #define INCLUDE_TIMEOUT_API
1039 /* Enable skin variable system, may not be the best place for this #define. */
1040 #define HAVE_SKIN_VARIABLES
1041 #endif /* HAVE_TOUCHSCREEN */
1043 #if defined(HAVE_USB_CHARGING_ENABLE) && defined(HAVE_USBSTACK)
1044 /* USB charging support in the USB stack requires timeout objects */
1045 #define INCLUDE_TIMEOUT_API
1046 #endif /* HAVE_USB_CHARGING_ENABLE && HAVE_USBSTACK */
1048 #if defined(HAVE_GUI_BOOST) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
1049 /* Timeout objects required if GUI boost is enabled */
1050 #define INCLUDE_TIMEOUT_API
1051 #endif /* HAVE_GUI_BOOST && HAVE_ADJUSTABLE_CPU_FREQ */
1053 #if defined(HAVE_USBSTACK) || (CONFIG_STORAGE & STORAGE_NAND)
1054 #define STORAGE_GET_INFO
1055 #endif
1057 #ifdef CPU_MIPS
1058 #include <stdbool.h> /* MIPS GCC fix? */
1059 #endif
1061 #if defined(HAVE_USBSTACK)
1062 /* Define the implemented USB transport classes */
1063 #if CONFIG_USBOTG == USBOTG_ISP1583
1064 #define USB_HAS_BULK
1065 #elif (CONFIG_USBOTG == USBOTG_ARC) || \
1066 (CONFIG_USBOTG == USBOTG_JZ4740) || \
1067 (CONFIG_USBOTG == USBOTG_M66591) || \
1068 (CONFIG_USBOTG == USBOTG_AS3525)
1069 #define USB_HAS_BULK
1070 #define USB_HAS_INTERRUPT
1071 #elif defined(CPU_TCC780X) || defined(CPU_TCC77X)
1072 #define USB_HAS_BULK
1073 #elif CONFIG_USBOTG == USBOTG_S3C6400X
1074 #define USB_HAS_BULK
1075 //#define USB_HAS_INTERRUPT -- seems to be broken
1076 #endif /* CONFIG_USBOTG */
1078 #if (CONFIG_USBOTG == USBOTG_ARC) || \
1079 (CONFIG_USBOTG == USBOTG_AS3525)
1080 #define USB_HAS_ISOCHRONOUS
1081 #endif
1083 /* define the class drivers to enable */
1084 #ifdef BOOTLOADER
1086 /* enable usb storage for targets that do bootloader usb */
1087 #if defined(HAVE_BOOTLOADER_USB_MODE) || \
1088 defined(CREATIVE_ZVx) || defined(CPU_TCC77X) || defined(CPU_TCC780X) || \
1089 CONFIG_USBOTG == USBOTG_JZ4740 || CONFIG_USBOTG == USBOTG_AS3525 || \
1090 CONFIG_USBOTG == USBOTG_S3C6400X
1091 #define USB_ENABLE_STORAGE
1092 #endif
1094 #else /* BOOTLOADER */
1096 #if (CONFIG_PLATFORM & PLATFORM_NATIVE)
1097 #ifdef USB_HAS_BULK
1098 //#define USB_ENABLE_SERIAL
1099 #ifdef USE_ROCKBOX_USB
1100 #define USB_ENABLE_STORAGE
1101 #endif /* USE_ROCKBOX_USB */
1102 #endif /* USB_HAS_BULK */
1104 #ifdef USB_HAS_INTERRUPT
1105 #define USB_ENABLE_HID
1106 #else
1107 #define USB_ENABLE_CHARGING_ONLY
1108 #endif
1109 #endif
1111 #endif /* BOOTLOADER */
1113 #endif /* HAVE_USBSTACK */
1115 /* This attribute can be used to enable to detection of plugin file handles leaks.
1116 * When enabled, the plugin core will monitor open/close/creat and when the plugin exits
1117 * will display an error message if the plugin leaked some file handles */
1118 #if (CONFIG_PLATFORM & PLATFORM_NATIVE)
1119 #define HAVE_PLUGIN_CHECK_OPEN_CLOSE
1120 #endif
1122 #if defined(HAVE_DIRCACHE) && (CONFIG_PLATFORM & PLATFORM_NATIVE)
1123 #define HAVE_IO_PRIORITY
1124 #endif
1126 #if defined(CPU_COLDIRE) || CONFIG_CPU == IMX31L
1127 /* Can record and play simultaneously */
1128 #define HAVE_PCM_FULL_DUPLEX
1129 #endif
1131 #if (CONFIG_CODEC == SWCODEC) || (CONFIG_CODEC == MAS3587F) || \
1132 (CONFIG_CODEC == MAS3539F)
1133 #define HAVE_PITCHCONTROL
1134 #endif
1136 /* enable logging messages to disk*/
1137 #if CONFIG_PLATFORM == PLATFORM_NATIVE && !defined(SIMULATOR) && !defined(BOOTLOADER) \
1138 && !defined(__PCTOOL__) && (CONFIG_CODEC == SWCODEC)
1139 #define ROCKBOX_HAS_LOGDISKF
1140 #endif
1142 #endif /* __CONFIG_H__ */