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