Don't set CONFIG_CPU for __PCTOOL__, to avoid wrong asm
[maemo-rb.git] / firmware / export / config.h
blob50f35c52127a7a5ad7e376b9db3a8ffafbdd5080
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_BATTERY_MEASURE bits */
188 #define VOLTAGE_MEASURE 1 /* Target can report battery voltage
189 * Usually native ports */
190 #define PERCENTAGE_MEASURE 2 /* Target can report remaining capacity in %
191 * Usually application/hosted ports */
192 #define TIME_MEASURE 4 /* Target can report remaining time estimation
193 Usually application ports, and only
194 if the estimation is better that ours
195 (which it probably is) */
196 /* CONFIG_LCD */
197 #define LCD_SSD1815 1 /* as used by Archos Recorders and Ondios */
198 #define LCD_SSD1801 2 /* as used by Archos Player/Studio */
199 #define LCD_S1D15E06 3 /* as used by iRiver H100 series */
200 #define LCD_H300 4 /* as used by iRiver H300 series, exact model name is
201 unknown at the time of this writing */
202 #define LCD_X5 5 /* as used by iAudio X5 series, exact model name is
203 unknown at the time of this writing */
204 #define LCD_IPODCOLOR 6 /* as used by iPod Color/Photo */
205 #define LCD_IPODNANO 7 /* as used by iPod Nano */
206 #define LCD_IPODVIDEO 8 /* as used by iPod Video */
207 #define LCD_IPOD2BPP 9 /* as used by all fullsize greyscale iPods */
208 #define LCD_IPODMINI 10 /* as used by iPod Mini g1/g2 */
209 #define LCD_IFP7XX 11 /* as used by iRiver iFP 7xx/8xx */
210 #define LCD_GIGABEAT 12
211 #define LCD_H10_20GB 13 /* as used by iriver H10 20Gb */
212 #define LCD_H10_5GB 14 /* as used by iriver H10 5Gb */
213 #define LCD_TPJ1022 15 /* as used by Tatung Elio TPJ-1022 */
214 #define LCD_DSC25 16 /* as used by Archos AV300 */
215 #define LCD_C200 17 /* as used by Sandisk Sansa c200 */
216 #define LCD_MROBE500 18 /* as used by Olympus M:Robe 500i */
217 #define LCD_MROBE100 19 /* as used by Olympus M:Robe 100 */
218 #define LCD_LOGIKDAX 20 /* as used by Logik DAX - SSD1815 */
219 #define LCD_IAUDIO67 21 /* as used by iAudio 6/7 - unknown */
220 #define LCD_CREATIVEZVM 22 /* as used by Creative Zen Vision:M */
221 #define LCD_TL0350A 23 /* as used by the iAudio M3 remote, treated as main LCD */
222 #define LCD_COWOND2 24 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */
223 #define LCD_SA9200 25 /* as used by the Philips SA9200 */
224 #define LCD_S6B33B2 26 /* as used by the Sansa c100 */
225 #define LCD_HDD1630 27 /* as used by the Philips HDD1630 */
226 #define LCD_MEIZUM6 28 /* as used by the Meizu M6SP and M6SL (various models) */
227 #define LCD_ONDAVX747 29 /* as used by the Onda VX747 */
228 #define LCD_ONDAVX767 30 /* as used by the Onda VX767 */
229 #define LCD_SSD1303 31 /* as used by the Sansa Clip */
230 #define LCD_FUZE 32 /* as used by the Sansa Fuze */
231 #define LCD_LYRE_PROTO1 33 /* as used by the Lyre prototype 1 */
232 #define LCD_YH925 34 /* as used by Samsung YH-925 (similar to the H10 20GB) */
233 #define LCD_VIEW 35 /* as used by the Sansa View */
234 #define LCD_NANO2G 36 /* as used by the iPod Nano 2nd Generation */
235 #define LCD_MINI2440 37 /* as used by the Mini2440 */
236 #define LCD_HDD6330 38 /* as used by the Philips HDD6330 */
237 #define LCD_VIBE500 39 /* as used by the Packard Bell Vibe 500 */
238 #define LCD_IPOD6G 40 /* as used by the iPod Nano 2nd Generation */
239 #define LCD_FUZEPLUS 41
240 #define LCD_SPFD5420A 42 /* rk27xx */
241 #define LCD_CLIPZIP 43 /* as used by the Sandisk Sansa Clip Zip */
242 #define LCD_HX8340B 44 /* as used by the HiFiMAN HM-601/HM-602/HM-801 */
243 #define LCD_CONNECT 45 /* as used by the Sandisk Sansa Connect */
244 #define LCD_GIGABEATS 46
245 #define LCD_YPR0 47
247 /* LCD_PIXELFORMAT */
248 #define HORIZONTAL_PACKING 1
249 #define VERTICAL_PACKING 2
250 #define HORIZONTAL_INTERLEAVED 3
251 #define VERTICAL_INTERLEAVED 4
252 #define RGB565 565
253 #define RGB565SWAPPED 3553
255 /* LCD_STRIDEFORMAT */
256 #define VERTICAL_STRIDE 1
257 #define HORIZONTAL_STRIDE 2
259 /* CONFIG_ORIENTATION */
260 #define SCREEN_PORTRAIT 0
261 #define SCREEN_LANDSCAPE 1
262 #define SCREEN_SQUARE 2
264 /* CONFIG_I2C */
265 #define I2C_NONE 0 /* For targets that do not use I2C - as the
266 Lyre prototype 1 */
267 #define I2C_PLAYREC 1 /* Archos Player/Recorder style */
268 #define I2C_ONDIO 2 /* Ondio style */
269 #define I2C_COLDFIRE 3 /* Coldfire style */
270 #define I2C_PP5002 4 /* PP5002 style */
271 #define I2C_PP5020 5 /* PP5020 style */
272 #define I2C_PNX0101 6 /* PNX0101 style */
273 #define I2C_S3C2440 7
274 #define I2C_PP5024 8 /* PP5024 style */
275 #define I2C_IMX31L 9
276 #define I2C_TCC77X 10
277 #define I2C_TCC780X 11
278 #define I2C_DM320 12 /* DM320 style */
279 #define I2C_S5L8700 13
280 #define I2C_JZ47XX 14 /* Ingenic Jz47XX style */
281 #define I2C_AS3525 15
282 #define I2C_S5L8702 16 /* Same as S5L8700, but with two channels */
283 #define I2C_IMX233 17
284 #define I2C_RK27XX 18
286 /* CONFIG_LED */
287 #define LED_REAL 1 /* SW controlled LED (Archos recorders, player) */
288 #define LED_VIRTUAL 2 /* Virtual LED (icon) (Archos Ondio) */
289 /* else HW controlled LED (iRiver H1x0) */
291 /* CONFIG_NAND */
292 #define NAND_IFP7XX 1
293 #define NAND_TCC 2
294 #define NAND_SAMSUNG 3
295 #define NAND_CC 4 /* ChinaChip */
296 #define NAND_RK27XX 5
298 /* CONFIG_RTC */
299 #define RTC_M41ST84W 1 /* Archos Recorder */
300 #define RTC_PCF50605 2 /* iPod 3G, 4G & Mini */
301 #define RTC_PCF50606 3 /* iriver H300 */
302 #define RTC_S3C2440 4
303 #define RTC_E8564 5 /* iriver H10 */
304 #define RTC_AS3514 6 /* Sandisk Sansa series */
305 #define RTC_DS1339_DS3231 7 /* h1x0 RTC mod */
306 #define RTC_IMX31L 8
307 #define RTC_RX5X348AB 9
308 #define RTC_TCC77X 10
309 #define RTC_TCC780X 11
310 #define RTC_MR100 12
311 #define RTC_MC13783 13 /* Freescale MC13783 PMIC */
312 #define RTC_S5L8700 14
313 #define RTC_S35390A 15
314 #define RTC_JZ47XX 16 /* Ingenic Jz47XX */
315 #define RTC_NANO2G 17 /* This seems to be a PCF5063x */
316 #define RTC_D2 18 /* Either PCF50606 or PCF50635 */
317 #define RTC_S35380A 19
318 #define RTC_IMX233 20
319 #define RTC_STM41T62 21 /* ST M41T62 */
321 /* USB On-the-go */
322 #define USBOTG_M66591 6591 /* M:Robe 500 */
323 #define USBOTG_ISP1362 1362 /* iriver H300 */
324 #define USBOTG_ISP1583 1583 /* Creative Zen Vision:M */
325 #define USBOTG_M5636 5636 /* iAudio X5 */
326 #define USBOTG_ARC 5020 /* PortalPlayer 502x and IMX233 */
327 #define USBOTG_JZ4740 4740 /* Ingenic Jz4740/Jz4732 */
328 #define USBOTG_AS3525 3525 /* AMS AS3525 */
329 #define USBOTG_S3C6400X 6400 /* Samsung S3C6400X, also used in the S5L8701/S5L8702/S5L8720 */
330 #define USBOTG_RK27XX 2700 /* Rockchip rk27xx */
331 #define USBOTG_TNETV105 105 /* TI TNETV105 */
333 /* Multiple cores */
334 #define CPU 0
335 #define COP 1
337 /* now go and pick yours */
338 #if defined(ARCHOS_PLAYER)
339 #include "config/archosplayer.h"
340 #elif defined(ARCHOS_RECORDER)
341 #include "config/archosrecorder.h"
342 #elif defined(ARCHOS_FMRECORDER)
343 #include "config/archosfmrecorder.h"
344 #elif defined(ARCHOS_RECORDERV2)
345 #include "config/archosrecorderv2.h"
346 #elif defined(ARCHOS_ONDIOSP)
347 #include "config/archosondiosp.h"
348 #elif defined(ARCHOS_ONDIOFM)
349 #include "config/archosondiofm.h"
350 #elif defined(ARCHOS_AV300)
351 #include "config/archosav300.h"
352 #elif defined(IRIVER_H100)
353 #include "config/iriverh100.h"
354 #elif defined(IRIVER_H120)
355 #include "config/iriverh120.h"
356 #elif defined(IRIVER_H300)
357 #include "config/iriverh300.h"
358 #elif defined(IAUDIO_X5)
359 #include "config/iaudiox5.h"
360 #elif defined(IAUDIO_M5)
361 #include "config/iaudiom5.h"
362 #elif defined(IAUDIO_M3)
363 #include "config/iaudiom3.h"
364 #elif defined(IPOD_COLOR)
365 #include "config/ipodcolor.h"
366 #elif defined(IPOD_NANO)
367 #include "config/ipodnano1g.h"
368 #elif defined(IPOD_VIDEO)
369 #include "config/ipodvideo.h"
370 #elif defined(IPOD_1G2G)
371 #include "config/ipod1g2g.h"
372 #elif defined(IPOD_3G)
373 #include "config/ipod3g.h"
374 #elif defined(IPOD_4G)
375 #include "config/ipod4g.h"
376 #elif defined(IPOD_NANO2G)
377 #include "config/ipodnano2g.h"
378 #elif defined(IPOD_6G)
379 #include "config/ipod6g.h"
380 #elif defined(IRIVER_IFP7XX)
381 #include "config/iriverifp7xx.h"
382 #elif defined(GIGABEAT_F)
383 #include "config/gigabeatfx.h"
384 #elif defined(GIGABEAT_S)
385 #include "config/gigabeats.h"
386 #elif defined(IPOD_MINI)
387 #include "config/ipodmini1g.h"
388 #elif defined(IPOD_MINI2G)
389 #include "config/ipodmini2g.h"
390 #elif defined(IRIVER_H10)
391 #include "config/iriverh10.h"
392 #elif defined(IRIVER_H10_5GB)
393 #include "config/iriverh10_5gb.h"
394 #elif defined(SANSA_E200)
395 #include "config/sansae200.h"
396 #elif defined(SANSA_C200)
397 #include "config/sansac200.h"
398 #elif defined(SANSA_M200)
399 #include "config/sansam200.h"
400 #elif defined(TATUNG_TPJ1022)
401 #include "config/tatungtpj1022.h"
402 #elif defined(MROBE_100)
403 #include "config/mrobe100.h"
404 #elif defined(MROBE_500)
405 #include "config/mrobe500.h"
406 #elif defined(LOGIK_DAX)
407 #include "config/logikdax.h"
408 #elif defined(IAUDIO_7)
409 #include "config/iaudio7.h"
410 #elif defined(COWON_D2)
411 #include "config/cowond2.h"
412 #elif defined(CREATIVE_ZVM)
413 #include "config/zenvisionm30gb.h"
414 #elif defined(CREATIVE_ZVM60GB)
415 #include "config/zenvisionm60gb.h"
416 #elif defined(CREATIVE_ZV)
417 #include "config/zenvision.h"
418 #elif defined(PHILIPS_SA9200)
419 #include "config/gogearsa9200.h"
420 #elif defined(PHILIPS_HDD1630)
421 #include "config/gogearhdd1630.h"
422 #elif defined(PHILIPS_HDD6330)
423 #include "config/gogearhdd6330.h"
424 #elif defined(SANSA_C100)
425 #include "config/sansac100.h"
426 #elif defined(MEIZU_M6SL)
427 #include "config/meizum6sl.h"
428 #elif defined(MEIZU_M6SP)
429 #include "config/meizum6sp.h"
430 #elif defined(MEIZU_M3)
431 #include "config/meizum3.h"
432 #elif defined(ONDA_VX747) || defined(ONDA_VX747P)
433 #include "config/ondavx747.h"
434 #elif defined(ONDA_VX777)
435 #include "config/ondavx777.h"
436 #elif defined(ONDA_VX767)
437 #include "config/ondavx767.h"
438 #elif defined(SANSA_CLIP)
439 #include "config/sansaclip.h"
440 #elif defined(SANSA_CLIPV2)
441 #include "config/sansaclipv2.h"
442 #elif defined(SANSA_CLIPPLUS)
443 #include "config/sansaclipplus.h"
444 #elif defined(SANSA_E200V2)
445 #include "config/sansae200v2.h"
446 #elif defined(SANSA_M200V4)
447 #include "config/sansam200v4.h"
448 #elif defined(SANSA_FUZE)
449 #include "config/sansafuze.h"
450 #elif defined(SANSA_FUZEV2)
451 #include "config/sansafuzev2.h"
452 #elif defined(SANSA_FUZEPLUS)
453 #include "config/sansafuzeplus.h"
454 #elif defined(SANSA_CLIPZIP)
455 #include "config/sansaclipzip.h"
456 #elif defined(SANSA_C200V2)
457 #include "config/sansac200v2.h"
458 #elif defined(SANSA_VIEW)
459 #include "config/sansaview.h"
460 #elif defined(LYRE_PROTO1)
461 #include "config/lyreproto1.h"
462 #elif defined(MINI2440)
463 #include "config/mini2440.h"
464 #elif defined(SAMSUNG_YH820)
465 #include "config/samsungyh820.h"
466 #elif defined(SAMSUNG_YH920)
467 #include "config/samsungyh920.h"
468 #elif defined(SAMSUNG_YH925)
469 #include "config/samsungyh925.h"
470 #elif defined(SAMSUNG_YPS3)
471 #include "config/samsungyps3.h"
472 #elif defined(PBELL_VIBE500)
473 #include "config/vibe500.h"
474 #elif defined(MPIO_HD200)
475 #include "config/mpiohd200.h"
476 #elif defined(MPIO_HD300)
477 #include "config/mpiohd300.h"
478 #elif defined(RK27_GENERIC)
479 #include "config/rk27generic.h"
480 #elif defined(HM60X)
481 #include "config/hifimanhm60x.h"
482 #elif defined(HM801)
483 #include "config/hifimanhm801.h"
484 #elif defined(SANSA_CONNECT)
485 #include "config/sansaconnect.h"
486 #elif defined(SDLAPP)
487 #include "config/sdlapp.h"
488 #elif defined(ANDROID)
489 #include "config/android.h"
490 #elif defined(NOKIAN8XX)
491 #include "config/nokian8xx.h"
492 #elif defined(NOKIAN900)
493 #include "config/nokian900.h"
494 #elif defined(PANDORA)
495 #include "config/pandora.h"
496 #elif defined(SAMSUNG_YPR0)
497 #include "config/samsungypr0.h"
498 #else
499 /* no known platform */
500 #endif
502 #ifdef __PCTOOL__
503 #undef CONFIG_CPU
504 #define CONFIG_CPU 0
505 #endif
507 #ifdef APPLICATION
508 #define CONFIG_CPU 0
509 #define CONFIG_STORAGE 0
510 #endif
512 /* keep this include after the target configs */
513 #ifdef SIMULATOR
514 #include "config/sim.h"
515 #endif
517 #ifndef CONFIG_PLATFORM
518 #define CONFIG_PLATFORM PLATFORM_NATIVE
519 #endif
521 /* setup basic macros from capability masks */
522 #include "config_caps.h"
524 /* setup CPU-specific defines */
526 /* define for all cpus from SH family */
527 #if (CONFIG_CPU == SH7034)
528 #define CPU_SH
529 #endif
531 /* define for all cpus from coldfire family */
532 #if (CONFIG_CPU == MCF5249) || (CONFIG_CPU == MCF5250)
533 #define CPU_COLDFIRE
534 #endif
536 /* define for all cpus from PP family */
537 #if (CONFIG_CPU == PP5002)
538 #define CPU_PP
539 #elif (CONFIG_CPU == PP5020) || (CONFIG_CPU == PP5022) \
540 || (CONFIG_CPU == PP5024) || (CONFIG_CPU == PP6100)
541 #define CPU_PP
542 #define CPU_PP502x
543 #endif
545 /* define for all cpus from S5L870X family */
546 #if (CONFIG_CPU == S5L8700) || (CONFIG_CPU == S5L8701) || (CONFIG_CPU == S5L8702)
547 #define CPU_S5L870X
548 #endif
550 /* define for all cpus from TCC77X family */
551 #if (CONFIG_CPU == TCC771L) || (CONFIG_CPU == TCC773L) || (CONFIG_CPU == TCC770)
552 #define CPU_TCC77X
553 #endif
555 /* define for all cpus from TCC780 family */
556 #if (CONFIG_CPU == TCC7801)
557 #define CPU_TCC780X
558 #endif
560 /* define for all cpus from ARM7TDMI family (for specific optimisations) */
561 #if defined(CPU_PP) || (CONFIG_CPU == PNX0101) || (CONFIG_CPU == DSC25)
562 #define CPU_ARM7TDMI
563 #endif
565 /* define for all cpus from ARM family */
566 #if ((CONFIG_PLATFORM & PLATFORM_MAEMO5) && defined(MAEMO_ARM_BUILD)) \
567 || (CONFIG_PLATFORM & PLATFORM_PANDORA)
568 #define CPU_ARM
569 #define ARM_ARCH 7 /* ARMv7 */
571 #elif (CONFIG_CPU == IMX31L) || defined(SAMSUNG_YPR0) \
572 || ((CONFIG_PLATFORM & PLATFORM_MAEMO4) && defined(MAEMO_ARM_BUILD))
573 #define CPU_ARM
574 #define ARM_ARCH 6 /* ARMv6 */
576 #elif defined(CPU_TCC77X) || defined(CPU_TCC780X) || (CONFIG_CPU == DM320) \
577 || (CONFIG_CPU == AT91SAM9260) || (CONFIG_CPU == AS3525v2) \
578 || (CONFIG_CPU == S5L8702) || (CONFIG_CPU == IMX233) \
579 || (CONFIG_CPU == RK27XX) ||(CONFIG_PLATFORM & PLATFORM_ANDROID)
580 #define CPU_ARM
581 #define ARM_ARCH 5 /* ARMv5 */
583 #elif defined(CPU_PP) || (CONFIG_CPU == PNX0101) || (CONFIG_CPU == S3C2440) \
584 || (CONFIG_CPU == DSC25) || defined(CPU_S5L870X) || (CONFIG_CPU == AS3525)
585 #define CPU_ARM
586 #define ARM_ARCH 4 /* ARMv4 */
587 #endif
589 #if (CONFIG_CPU == JZ4732)
590 #define CPU_MIPS 32
591 #endif
593 /* now set any CONFIG_ defines correctly if they are not used,
594 No need to do this on CONFIG_'s which are compulsory (e.g CONFIG_CODEC ) */
596 #if !defined(CONFIG_BACKLIGHT_FADING)
597 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_NO_FADING
598 #endif
600 #ifndef CONFIG_I2C
601 #define CONFIG_I2C I2C_NONE
602 #endif
604 #ifndef CONFIG_TUNER
605 #define CONFIG_TUNER 0
606 #endif
608 #ifndef CONFIG_USBOTG
609 #define CONFIG_USBOTG 0
610 #endif
612 #ifndef CONFIG_LED
613 #define CONFIG_LED LED_VIRTUAL
614 #endif
616 #ifndef CONFIG_CHARGING
617 #define CONFIG_CHARGING 0
618 #endif
620 #ifndef CONFIG_BATTERY_MEASURE
621 #define CONFIG_BATTERY_MEASURE 0
622 #define NO_LOW_BATTERY_SHUTDOWN
623 #endif
625 #ifndef CONFIG_RTC
626 #define CONFIG_RTC 0
627 #endif
629 #ifndef BATTERY_TYPES_COUNT
630 #define BATTERY_TYPES_COUNT 0
631 #endif
633 #ifndef BATTERY_CAPACITY_DEFAULT
634 #define BATTERY_CAPACITY_DEFAULT 0
635 #endif
637 #ifndef BATTERY_CAPACITY_INC
638 #define BATTERY_CAPACITY_INC 0
639 #endif
641 #ifndef CONFIG_ORIENTATION
642 #if LCD_HEIGHT > LCD_WIDTH
643 #define CONFIG_ORIENTATION SCREEN_PORTRAIT
644 #elif LCD_HEIGHT < LCD_WIDTH
645 #define CONFIG_ORIENTATION SCREEN_LANDSCAPE
646 #else
647 #define CONFIG_ORIENTATION SCREEN_SQUARE
648 #endif
649 #endif
651 /* Pixel aspect ratio is defined in terms of a multiplier for pixel width and
652 * height, and is set to 1:1 if the target does not set a value
654 #ifndef LCD_PIXEL_ASPECT_HEIGHT
655 #define LCD_PIXEL_ASPECT_HEIGHT 1
656 #endif
657 #ifndef LCD_PIXEL_ASPECT_WIDTH
658 #define LCD_PIXEL_ASPECT_WIDTH 1
659 #endif
661 /* Used for split displays (Sansa Clip). Set to 0 otherwise */
662 #ifndef LCD_SPLIT_LINES
663 #define LCD_SPLIT_LINES 0
664 #endif
666 /* Simulator LCD dimensions. Set to standard dimensions if undefined */
667 #ifndef SIM_LCD_WIDTH
668 #define SIM_LCD_WIDTH LCD_WIDTH
669 #endif
670 #ifndef SIM_LCD_HEIGHT
671 #define SIM_LCD_HEIGHT (LCD_HEIGHT + LCD_SPLIT_LINES)
672 #endif
674 #ifdef HAVE_REMOTE_LCD
675 #ifndef SIM_REMOTE_WIDTH
676 #define SIM_REMOTE_WIDTH LCD_REMOTE_WIDTH
677 #endif
678 #ifndef SIM_REMOTE_HEIGHT
679 #define SIM_REMOTE_HEIGHT LCD_REMOTE_HEIGHT
680 #endif
681 #endif /* HAVE_REMOTE_LCD */
683 /* define this in the target config.h to use a different size */
684 #ifndef CONFIG_DEFAULT_ICON_HEIGHT
685 #define CONFIG_DEFAULT_ICON_HEIGHT 8
686 #endif
687 #ifndef CONFIG_DEFAULT_ICON_WIDTH
688 #define CONFIG_DEFAULT_ICON_WIDTH 6
689 #endif
690 #ifndef CONFIG_REMOTE_DEFAULT_ICON_HEIGHT
691 #define CONFIG_REMOTE_DEFAULT_ICON_HEIGHT 8
692 #endif
693 #ifndef CONFIG_REMOTE_DEFAULT_ICON_WIDTH
694 #define CONFIG_REMOTE_DEFAULT_ICON_WIDTH 6
695 #endif
697 #if LCD_DEPTH > 1 || defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
698 #define HAVE_BACKDROP_IMAGE
699 #endif
701 #if (CONFIG_TUNER & (CONFIG_TUNER - 1)) != 0
702 /* Multiple possible tuners */
703 #define CONFIG_TUNER_MULTI
704 #endif
706 /* deactivate fading in bootloader */
707 #if defined(BOOTLOADER)
708 #undef CONFIG_BACKLIGHT_FADING
709 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_NO_FADING
710 #endif
712 /* determine which setting/manual text to use */
713 #if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_PWM)
715 /* possibly overridden in target config */
716 #if !defined(HAVE_BACKLIGHT_FADING_BOOL_SETTING) \
717 && !defined(HAVE_BACKLIGHT_FADING_INT_SETTING)
718 #define HAVE_BACKLIGHT_FADING_INT_SETTING
719 #endif
721 #elif (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_SETTING) \
722 || (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG) \
723 || (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_TARGET)
725 /* possibly overridden in target config */
726 #if !defined(HAVE_BACKLIGHT_FADING_BOOL_SETTING) \
727 && !defined(HAVE_BACKLIGHT_FADING_INT_SETTING)
728 #define HAVE_BACKLIGHT_FADING_BOOL_SETTING
729 #endif
731 #endif /* CONFIG_BACKLIGHT_FADING */
733 /* Storage related config handling */
735 #if (CONFIG_STORAGE & (CONFIG_STORAGE - 1)) != 0
736 /* Multiple storage drivers */
737 #define CONFIG_STORAGE_MULTI
738 #endif
740 /* Explicit HAVE_MULTIVOLUME in the config file. Allow the maximum number */
741 #ifdef HAVE_MULTIVOLUME
742 #define NUM_VOLUMES_PER_DRIVE 4
743 #else
744 #define NUM_VOLUMES_PER_DRIVE 1
745 #endif
746 #if defined(CONFIG_STORAGE_MULTI) && !defined(HAVE_MULTIDRIVE)
747 #define HAVE_MULTIDRIVE
748 #endif
750 #if defined(HAVE_MULTIDRIVE) && !defined(HAVE_MULTIVOLUME)
751 #define HAVE_MULTIVOLUME
752 #endif
754 #if defined(HAVE_MULTIDRIVE) && !defined(NUM_DRIVES)
755 #error HAVE_MULTIDRIVE needs to have an explicit NUM_DRIVES
756 #endif
758 #ifndef NUM_DRIVES
759 #define NUM_DRIVES 1
760 #endif
762 #define NUM_VOLUMES (NUM_DRIVES * NUM_VOLUMES_PER_DRIVE)
764 #if defined(BOOTLOADER) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
765 /* Bootloaders don't use CPU frequency adjustment */
766 #undef HAVE_ADJUSTABLE_CPU_FREQ
767 #endif
769 #if defined(__PCTOOL__) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
770 /* PCTOOLs don't use CPU frequency adjustment */
771 #undef HAVE_ADJUSTABLE_CPU_FREQ
772 #endif
774 /* Enable the directory cache and tagcache in RAM if we have
775 * plenty of RAM. Both features can be enabled independently. */
776 #if (MEMORYSIZE >= 8) && !defined(BOOTLOADER) && !defined(__PCTOOL__) \
777 && !defined(APPLICATION)
778 #define HAVE_DIRCACHE
779 #ifdef HAVE_TAGCACHE
780 #define HAVE_TC_RAMCACHE
781 #endif
782 #endif
784 #if defined(HAVE_TAGCACHE) && defined(HAVE_LCD_BITMAP)
785 #define HAVE_PICTUREFLOW_INTEGRATION
786 #endif
788 /* Add one HAVE_ define for all mas35xx targets */
789 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3507D) || (CONFIG_CODEC == MAS3539F)
790 #define HAVE_MAS35XX
791 #endif
793 #if (CONFIG_CODEC == SWCODEC)
794 #ifdef BOOTLOADER
796 #ifdef HAVE_BOOTLOADER_USB_MODE
797 /* Priority in bootloader is wanted */
798 #define HAVE_PRIORITY_SCHEDULING
799 #define USB_STATUS_BY_EVENT
800 #define USB_DETECT_BY_REQUEST
801 #if defined(HAVE_USBSTACK) && CONFIG_USBOTG == USBOTG_ARC
802 #define INCLUDE_TIMEOUT_API
803 #define USB_DRIVER_CLOSE
804 #endif
805 #endif
807 #else /* !BOOTLOADER */
809 #define HAVE_EXTENDED_MESSAGING_AND_NAME
810 #define HAVE_WAKEUP_EXT_CB
813 #if defined(ASSEMBLER_THREADS) \
814 || defined(HAVE_WIN32_FIBER_THREADS) \
815 || defined(HAVE_SIGALTSTACK_THREADS)
816 #define HAVE_PRIORITY_SCHEDULING
817 #endif
819 #if (CONFIG_PLATFORM & PLATFORM_NATIVE)
820 #define HAVE_PRIORITY_SCHEDULING
821 #define HAVE_SCHEDULER_BOOSTCTRL
822 #endif /* PLATFORM_NATIVE */
825 #ifdef HAVE_USBSTACK
826 #if CONFIG_USBOTG == USBOTG_ARC
827 #define USB_STATUS_BY_EVENT
828 #define USB_DETECT_BY_REQUEST
829 #define INCLUDE_TIMEOUT_API
830 #elif CONFIG_USBOTG == USBOTG_AS3525
831 #define USB_STATUS_BY_EVENT
832 #define USB_DETECT_BY_REQUEST
833 #elif CONFIG_USBOTG == USBOTG_S3C6400X /* FIXME */ && CONFIG_CPU == AS3525v2
834 #define USB_STATUS_BY_EVENT
835 #define USB_DETECT_BY_REQUEST
836 #elif CONFIG_USBOTG == USBOTG_RK27XX
837 #define USB_STATUS_BY_EVENT
838 #define USB_DETECT_BY_REQUEST
839 #endif /* CONFIG_USB == */
840 #endif /* HAVE_USBSTACK */
842 #endif /* BOOTLOADER */
844 #if defined(HAVE_USBSTACK) || (CONFIG_CPU == JZ4732) \
845 || (CONFIG_CPU == AS3525) || (CONFIG_CPU == AS3525v2) \
846 || defined(CPU_S5L870X) || (CONFIG_CPU == S3C2440) \
847 || defined(APPLICATION) || (CONFIG_CPU == PP5002) \
848 || (CONFIG_CPU == RK27XX) || (CONFIG_CPU == IMX233)
849 #define HAVE_SEMAPHORE_OBJECTS
850 #endif
852 /*include support for crossfading - requires significant PCM buffer space*/
853 #if MEMORYSIZE > 2
854 #define HAVE_CROSSFADE
855 #endif
857 #endif /* (CONFIG_CODEC == SWCODEC) */
859 /* Determine if accesses should be strictly long aligned. */
860 #if (CONFIG_CPU == SH7034) || defined(CPU_ARM) || defined(CPU_MIPS)
861 #define ROCKBOX_STRICT_ALIGN 1
862 #endif
864 #if defined(CPU_ARM) && defined(__ASSEMBLER__)
865 /* ARMv4T doesn't switch the T bit when popping pc directly, we must use BX */
866 .macro ldmpc cond="", order="ia", regs
867 #if ARM_ARCH == 4 && defined(USE_THUMB)
868 ldm\cond\order sp!, { \regs, lr }
869 bx\cond lr
870 #else
871 ldm\cond\order sp!, { \regs, pc }
872 #endif
873 .endm
874 .macro ldrpc cond=""
875 #if ARM_ARCH == 4 && defined(USE_THUMB)
876 ldr\cond lr, [sp], #4
877 bx\cond lr
878 #else
879 ldr\cond pc, [sp], #4
880 #endif
881 .endm
882 #endif
884 #ifndef CODEC_SIZE
885 #define CODEC_SIZE 0
886 #endif
888 /* This attribute can be used to ensure that certain symbols are never profiled
889 * which can be important as profiling a function de-inlines it */
890 #ifdef RB_PROFILE
891 #define NO_PROF_ATTR __attribute__ ((no_instrument_function))
892 #else
893 #define NO_PROF_ATTR
894 #endif
896 /* IRAM usage */
897 #if (CONFIG_PLATFORM & PLATFORM_NATIVE) && /* Not for hosted environments */ \
898 (((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \
899 defined(CPU_COLDFIRE) || /* Coldfire: core, plugins, codecs */ \
900 defined(CPU_PP) || /* PortalPlayer: core, plugins, codecs */ \
901 (CONFIG_CPU == AS3525 && MEMORYSIZE > 2 && !defined(BOOTLOADER)) || /* AS3525 +2MB: core, plugins, codecs */ \
902 (CONFIG_CPU == AS3525 && MEMORYSIZE <= 2 && !defined(PLUGIN) && !defined(CODEC) && !defined(BOOTLOADER)) || /* AS3525 2MB: core only */ \
903 (CONFIG_CPU == AS3525v2 && !defined(PLUGIN) && !defined(CODEC) && !defined(BOOTLOADER)) || /* AS3525v2: core only */ \
904 (CONFIG_CPU == PNX0101) || \
905 (CONFIG_CPU == TCC7801) || \
906 (CONFIG_CPU == IMX233 && !defined(PLUGIN) && !defined(CODEC)) || /* IMX233: core only */ \
907 defined(CPU_S5L870X)) || /* Samsung S5L8700: core, plugins, codecs */ \
908 (CONFIG_CPU == JZ4732 && !defined(PLUGIN) && !defined(CODEC)) /* Jz4740: core only */
909 #define ICODE_ATTR __attribute__ ((section(".icode")))
910 #define ICONST_ATTR __attribute__ ((section(".irodata")))
911 #define IDATA_ATTR __attribute__ ((section(".idata")))
912 #define IBSS_ATTR __attribute__ ((section(".ibss")))
913 #define USE_IRAM
914 #if CONFIG_CPU != SH7034 && (CONFIG_CPU != AS3525 || MEMORYSIZE > 2) \
915 && CONFIG_CPU != JZ4732 && CONFIG_CPU != AS3525v2 && CONFIG_CPU != IMX233
916 #define PLUGIN_USE_IRAM
917 #endif
918 #if defined(CPU_ARM) && !defined(__ARM_EABI__)
919 /* GCC quirk workaround: arm-elf-gcc treats static functions as short_call
920 * when not compiling with -ffunction-sections, even when the function has
921 * a section attribute.
922 * This is fixed with eabi since all calls are short ones by default */
923 #define STATICIRAM
924 #else
925 #define STATICIRAM static
926 #endif
927 #else
928 #define ICODE_ATTR
929 #define ICONST_ATTR
930 #define IDATA_ATTR
931 #define IBSS_ATTR
932 #define STATICIRAM static
933 #endif
935 #if (defined(CPU_PP) || (CONFIG_CPU == AS3525) || (CONFIG_CPU == AS3525v2) || \
936 (CONFIG_CPU == IMX31L) || (CONFIG_CPU == IMX233)) \
937 && (CONFIG_PLATFORM & PLATFORM_NATIVE) && !defined(BOOTLOADER)
938 /* Functions that have INIT_ATTR attached are NOT guaranteed to survive after
939 * root_menu() has been called. Their code may be overwritten by other data or
940 * code in order to save RAM, and references to them might point into
941 * zombie area.
943 * It is critical that you make sure these functions are only called before
944 * the final call to root_menu() (see apps/main.c) is called (i.e. basically
945 * only while main() runs), otherwise things may go wild,
946 * from crashes to freezes to exploding daps.
948 #define INIT_ATTR __attribute__ ((section(".init")))
949 #define INITDATA_ATTR __attribute__ ((section(".initdata")))
950 #define HAVE_INIT_ATTR
951 #else
952 #define INIT_ATTR
953 #define INITDATA_ATTR
954 #endif
956 /* We need to call storage_init more than once only if USB storage mode is
957 * handled in hardware:
958 * Deinit storage -> let hardware handle USB mode -> storage_init() again
960 #if defined(HAVE_USBSTACK) || defined(USB_NONE)
961 #define STORAGE_INIT_ATTR INIT_ATTR
962 #else
963 #define STORAGE_INIT_ATTR
964 #endif
966 #if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__)
967 #define DATA_ATTR __attribute__ ((section("__DATA, .data")))
968 #else
969 #define DATA_ATTR __attribute__ ((section(".data")))
970 #endif
972 #ifndef IRAM_LCDFRAMEBUFFER
973 /* if the LCD framebuffer has not been moved to IRAM, define it empty here */
974 #define IRAM_LCDFRAMEBUFFER
975 #endif
977 /* Change this if you want to build a single-core firmware for a multicore
978 * target for debugging */
979 #if defined(BOOTLOADER) || (CONFIG_CPU == PP6100)
980 #define FORCE_SINGLE_CORE
981 #endif
983 #if defined(CPU_PP)
984 #define IDLE_STACK_SIZE 0x80
985 #define IDLE_STACK_WORDS 0x20
987 /* Attributes to place data in uncached DRAM */
988 /* These are useful beyond dual-core and ultimately beyond PP since they may
989 * be used for DMA buffers and such without cache maintenence calls. */
990 #define NOCACHEBSS_ATTR __attribute__((section(".ncbss"),nocommon))
991 #define NOCACHEDATA_ATTR __attribute__((section(".ncdata"),nocommon))
993 #if !defined(FORCE_SINGLE_CORE)
995 #define NUM_CORES 2
996 #define HAVE_CORELOCK_OBJECT
997 #define CURRENT_CORE current_core()
998 /* Attributes for core-shared data in DRAM where IRAM is better used for other
999 * purposes. */
1000 #define SHAREDBSS_ATTR NOCACHEBSS_ATTR
1001 #define SHAREDDATA_ATTR NOCACHEDATA_ATTR
1003 #define IF_COP(...) __VA_ARGS__
1004 #define IF_COP_VOID(...) __VA_ARGS__
1005 #define IF_COP_CORE(core) core
1007 #endif /* !defined(FORCE_SINGLE_CORE) */
1009 #endif /* CPU_PP */
1011 #if CONFIG_CPU == IMX31L || CONFIG_CPU == IMX233
1012 #define NOCACHEBSS_ATTR __attribute__((section(".ncbss"),nocommon))
1013 #define NOCACHEDATA_ATTR __attribute__((section(".ncdata"),nocommon))
1014 #endif
1016 #ifndef NUM_CORES
1017 /* Default to single core */
1018 #define NUM_CORES 1
1019 #define CURRENT_CORE CPU
1020 /* Attributes for core-shared data in DRAM - no caching considerations */
1021 #define SHAREDBSS_ATTR
1022 #define SHAREDDATA_ATTR
1023 #ifndef NOCACHEBSS_ATTR
1024 #define NOCACHEBSS_ATTR
1025 #define NOCACHEDATA_ATTR
1026 #endif
1028 #define IF_COP(...)
1029 #define IF_COP_VOID(...) void
1030 #define IF_COP_CORE(core) CURRENT_CORE
1032 #endif /* NUM_CORES */
1034 #ifdef HAVE_HEADPHONE_DETECTION
1035 /* Timeout objects required if headphone detection is enabled */
1036 #define INCLUDE_TIMEOUT_API
1037 #endif /* HAVE_HEADPHONE_DETECTION */
1039 #ifdef HAVE_TOUCHSCREEN
1040 /* Timeout objects required for kinetic list scrolling */
1041 #define INCLUDE_TIMEOUT_API
1042 /* Enable skin variable system, may not be the best place for this #define. */
1043 #define HAVE_SKIN_VARIABLES
1044 #endif /* HAVE_TOUCHSCREEN */
1046 #if defined(HAVE_USB_CHARGING_ENABLE) && defined(HAVE_USBSTACK)
1047 /* USB charging support in the USB stack requires timeout objects */
1048 #define INCLUDE_TIMEOUT_API
1049 #endif /* HAVE_USB_CHARGING_ENABLE && HAVE_USBSTACK */
1051 #if defined(HAVE_GUI_BOOST) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
1052 /* Timeout objects required if GUI boost is enabled */
1053 #define INCLUDE_TIMEOUT_API
1054 #endif /* HAVE_GUI_BOOST && HAVE_ADJUSTABLE_CPU_FREQ */
1056 #if defined(HAVE_USBSTACK) || (CONFIG_STORAGE & STORAGE_NAND)
1057 #define STORAGE_GET_INFO
1058 #endif
1060 #ifdef CPU_MIPS
1061 #include <stdbool.h> /* MIPS GCC fix? */
1062 #endif
1064 #if defined(HAVE_USBSTACK)
1065 /* Define the implemented USB transport classes */
1066 #if CONFIG_USBOTG == USBOTG_ISP1583
1067 #define USB_HAS_BULK
1068 #elif (CONFIG_USBOTG == USBOTG_ARC) || \
1069 (CONFIG_USBOTG == USBOTG_JZ4740) || \
1070 (CONFIG_USBOTG == USBOTG_M66591) || \
1071 (CONFIG_USBOTG == USBOTG_AS3525)
1072 #define USB_HAS_BULK
1073 #define USB_HAS_INTERRUPT
1074 #elif defined(CPU_TCC780X) || defined(CPU_TCC77X)
1075 #define USB_HAS_BULK
1076 #elif CONFIG_USBOTG == USBOTG_S3C6400X
1077 #define USB_HAS_BULK
1078 //#define USB_HAS_INTERRUPT -- seems to be broken
1079 #endif /* CONFIG_USBOTG */
1081 #if (CONFIG_USBOTG == USBOTG_ARC) || \
1082 (CONFIG_USBOTG == USBOTG_AS3525)
1083 #define USB_HAS_ISOCHRONOUS
1084 #endif
1086 /* define the class drivers to enable */
1087 #ifdef BOOTLOADER
1089 /* enable usb storage for targets that do bootloader usb */
1090 #if defined(HAVE_BOOTLOADER_USB_MODE) || \
1091 defined(CREATIVE_ZVx) || defined(CPU_TCC77X) || defined(CPU_TCC780X) || \
1092 CONFIG_USBOTG == USBOTG_JZ4740 || CONFIG_USBOTG == USBOTG_AS3525 || \
1093 CONFIG_USBOTG == USBOTG_S3C6400X
1094 #define USB_ENABLE_STORAGE
1095 #endif
1097 #else /* BOOTLOADER */
1099 #if (CONFIG_PLATFORM & PLATFORM_NATIVE)
1100 #ifdef USB_HAS_BULK
1101 //#define USB_ENABLE_SERIAL
1102 #ifdef USE_ROCKBOX_USB
1103 #define USB_ENABLE_STORAGE
1104 #endif /* USE_ROCKBOX_USB */
1105 #endif /* USB_HAS_BULK */
1107 #ifdef USB_HAS_INTERRUPT
1108 #define USB_ENABLE_HID
1109 #else
1110 #define USB_ENABLE_CHARGING_ONLY
1111 #endif
1112 #endif
1114 #endif /* BOOTLOADER */
1116 #endif /* HAVE_USBSTACK */
1118 /* This attribute can be used to enable to detection of plugin file handles leaks.
1119 * When enabled, the plugin core will monitor open/close/creat and when the plugin exits
1120 * will display an error message if the plugin leaked some file handles */
1121 #if (CONFIG_PLATFORM & PLATFORM_NATIVE)
1122 #define HAVE_PLUGIN_CHECK_OPEN_CLOSE
1123 #endif
1125 #if defined(HAVE_DIRCACHE) && (CONFIG_PLATFORM & PLATFORM_NATIVE)
1126 #define HAVE_IO_PRIORITY
1127 #endif
1129 #if defined(CPU_COLDIRE) || CONFIG_CPU == IMX31L
1130 /* Can record and play simultaneously */
1131 #define HAVE_PCM_FULL_DUPLEX
1132 #endif
1134 #endif /* __CONFIG_H__ */