Add Onda VX767 target
[kugel-rb.git] / firmware / export / config.h
blobbdf8743942b692f4ad0a2fadd62a33d1a3f6b6df
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 #ifndef __PCTOOL__
26 #include "autoconf.h"
27 #endif
29 /* symbolic names for multiple choice configurations: */
31 /* CONFIG_TUNER (note these are combineable bit-flags) */
32 #define S1A0903X01 0x01 /* Samsung */
33 #define TEA5767 0x02 /* Philips */
34 #define LV24020LP 0x04 /* Sanyo */
35 #define SI4700 0x08 /* Silicon Labs */
36 #define TEA5760 0x10 /* Philips */
37 #define LV240000 0x20 /* Sanyo */
39 /* CONFIG_CODEC */
40 #define MAS3587F 3587
41 #define MAS3507D 3507
42 #define MAS3539F 3539
43 #define SWCODEC 1 /* if codec is done by SW */
45 /* CONFIG_CPU */
46 #define SH7034 7034
47 #define MCF5249 5249
48 #define MCF5250 5250
49 #define PP5002 5002
50 #define PP5020 5020
51 #define PP5022 5022
52 #define PP5024 5024
53 #define PNX0101 101
54 #define S3C2440 2440
55 #define DSC25 25
56 #define DM320 320
57 #define IMX31L 31
58 #define TCC770 770
59 #define TCC771L 771
60 #define TCC773L 773
61 #define TCC7801 7801
62 #define S5L8700 8700
63 #define JZ4732 4732
65 /* CONFIG_KEYPAD */
66 #define PLAYER_PAD 1
67 #define RECORDER_PAD 2
68 #define ONDIO_PAD 3
69 #define IRIVER_H100_PAD 4
70 #define IRIVER_H300_PAD 5
71 #define IAUDIO_X5M5_PAD 6
72 #define IPOD_4G_PAD 7
73 #define IPOD_3G_PAD 8
74 #define IPOD_1G2G_PAD 9
75 #define IRIVER_IFP7XX_PAD 10
76 #define GIGABEAT_PAD 11
77 #define IRIVER_H10_PAD 12
78 #define SANSA_E200_PAD 13
79 #define SANSA_C200_PAD 14
80 #define ELIO_TPJ1022_PAD 15
81 #define ARCHOS_AV300_PAD 16
82 #define MROBE100_PAD 17
83 #define MROBE500_PAD 18
84 #define GIGABEAT_S_PAD 19
85 #define LOGIK_DAX_PAD 20
86 #define IAUDIO67_PAD 21
87 #define COWOND2_PAD 22
88 #define IAUDIO_M3_PAD 23
89 #define CREATIVEZVM_PAD 24
90 #define SANSA_M200_PAD 25
91 #define CREATIVEZV_PAD 26
92 #define PHILIPS_SA9200_PAD 27
93 #define SANSA_C100_PAD 28
94 #define PHILIPS_HDD1630_PAD 29
95 #define MEIZU_M6SL_PAD 30
96 #define ONDAVX747_PAD 31
97 #define ONDAVX767_PAD 32
99 /* CONFIG_REMOTE_KEYPAD */
100 #define H100_REMOTE 1
101 #define H300_REMOTE 2
102 #define X5_REMOTE 3
104 /* CONFIG_CHARGING */
105 #define CHARGING_SIMPLE 1 /* Simple, hardware controlled charging */
106 #define CHARGING_MONITOR 2 /* Hardware controlled charging with monitoring */
107 #define CHARGING_CONTROL 3 /* Software controlled charging */
109 /* CONFIG_LCD */
110 #define LCD_SSD1815 1 /* as used by Archos Recorders and Ondios */
111 #define LCD_SSD1801 2 /* as used by Archos Player/Studio */
112 #define LCD_S1D15E06 3 /* as used by iRiver H100 series */
113 #define LCD_H300 4 /* as used by iRiver H300 series, exact model name is
114 unknown at the time of this writing */
115 #define LCD_X5 5 /* as used by iAudio X5 series, exact model name is
116 unknown at the time of this writing */
117 #define LCD_IPODCOLOR 6 /* as used by iPod Color/Photo */
118 #define LCD_IPODNANO 7 /* as used by iPod Nano */
119 #define LCD_IPODVIDEO 8 /* as used by iPod Video */
120 #define LCD_IPOD2BPP 9 /* as used by all fullsize greyscale iPods */
121 #define LCD_IPODMINI 10 /* as used by iPod Mini g1/g2 */
122 #define LCD_IFP7XX 11 /* as used by iRiver iFP 7xx/8xx */
123 #define LCD_GIGABEAT 12
124 #define LCD_H10_20GB 13 /* as used by iriver H10 20Gb */
125 #define LCD_H10_5GB 14 /* as used by iriver H10 5Gb */
126 #define LCD_TPJ1022 15 /* as used by Tatung Elio TPJ-1022 */
127 #define LCD_DSC25 16 /* as used by Archos AV300 */
128 #define LCD_C200 17 /* as used by Sandisk Sansa c200 */
129 #define LCD_MROBE500 18 /* as used by Olympus M:Robe 500i */
130 #define LCD_MROBE100 19 /* as used by Olympus M:Robe 100 */
131 #define LCD_LOGIKDAX 20 /* as used by Logik DAX - SSD1815 */
132 #define LCD_IAUDIO67 21 /* as used by iAudio 6/7 - unknown */
133 #define LCD_CREATIVEZVM 22 /* as used by Creative Zen Vision:M */
134 #define LCD_TL0350A 23 /* as used by the iAudio M3 remote, treated as main LCD */
135 #define LCD_COWOND2 24 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */
136 #define LCD_SA9200 25 /* as used by the Philips SA9200 */
137 #define LCD_S6B33B2 26 /* as used by the Sansa c100 */
138 #define LCD_HDD1630 27 /* as used by the Philips HDD1630 */
139 #define LCD_MEIZUM6 28 /* as used by the Meizu M6SP and M6SL (various models) */
140 #define LCD_ONDAVX747 29 /* as used by the Onda VX747 */
141 #define LCD_ONDAVX767 30 /* as used by the Onda VX767 */
143 /* LCD_PIXELFORMAT */
144 #define HORIZONTAL_PACKING 1
145 #define VERTICAL_PACKING 2
146 #define HORIZONTAL_INTERLEAVED 3
147 #define VERTICAL_INTERLEAVED 4
148 #define RGB565 565
149 #define RGB565SWAPPED 3553
151 /* CONFIG_ORIENTATION */
152 #define SCREEN_PORTRAIT 0
153 #define SCREEN_LANDSCAPE 1
154 #define SCREEN_SQUARE 2
156 /* CONFIG_I2C */
157 #define I2C_PLAYREC 1 /* Archos Player/Recorder style */
158 #define I2C_ONDIO 2 /* Ondio style */
159 #define I2C_COLDFIRE 3 /* Coldfire style */
160 #define I2C_PP5002 4 /* PP5002 style */
161 #define I2C_PP5020 5 /* PP5020 style */
162 #define I2C_PNX0101 6 /* PNX0101 style */
163 #define I2C_S3C2440 7
164 #define I2C_PP5024 8 /* PP5024 style */
165 #define I2C_IMX31L 9
166 #define I2C_TCC77X 10
167 #define I2C_TCC780X 11
168 #define I2C_DM320 12 /* DM320 style */
169 #define I2C_S5L8700 13
170 #define I2C_JZ47XX 14 /* Ingenic Jz47XX style */
172 /* CONFIG_LED */
173 #define LED_REAL 1 /* SW controlled LED (Archos recorders, player) */
174 #define LED_VIRTUAL 2 /* Virtual LED (icon) (Archos Ondio) */
175 /* else HW controlled LED (iRiver H1x0) */
177 /* CONFIG_FLASH */
178 #define FLASH_IFP7XX 1
180 /* CONFIG_RTC */
181 #define RTC_M41ST84W 1 /* Archos Recorder */
182 #define RTC_PCF50605 2 /* iPod 3G, 4G & Mini */
183 #define RTC_PCF50606 3 /* iriver H300 */
184 #define RTC_S3C2440 4
185 #define RTC_E8564 5 /* iriver H10 */
186 #define RTC_AS3514 6 /* Sandisk Sansa e200 series */
187 #define RTC_DS1339_DS3231 7 /* h1x0 RTC mod */
188 #define RTC_IMX31L 8
189 #define RTC_RX5X348AB 9
190 #define RTC_TCC77X 10
191 #define RTC_TCC780X 11
192 #define RTC_MR100 12
193 #define RTC_MC13783 13 /* Freescale MC13783 PMIC */
194 #define RTC_S5L8700 14
195 #define RTC_S35390A 15
196 #define RTC_JZ47XX 16 /* Ingenic Jz47XX */
198 /* USB On-the-go */
199 #define USBOTG_ISP1362 1362 /* iriver H300 */
200 #define USBOTG_ISP1583 1583 /* Creative Zen Vision:M */
201 #define USBOTG_M5636 5636 /* iAudio X5 */
202 #define USBOTG_ARC 5020 /* PortalPlayer 502x */
203 #define USBOTG_JZ4740 4740 /* Ingenic Jz4740/Jz4732 */
205 /* Multiple cores */
206 #define CPU 0
207 #define COP 1
209 /* now go and pick yours */
210 #if defined(ARCHOS_PLAYER)
211 #include "config-player.h"
212 #elif defined(ARCHOS_RECORDER)
213 #include "config-recorder.h"
214 #elif defined(ARCHOS_FMRECORDER)
215 #include "config-fmrecorder.h"
216 #elif defined(ARCHOS_RECORDERV2)
217 #include "config-recorderv2.h"
218 #elif defined(ARCHOS_ONDIOSP)
219 #include "config-ondiosp.h"
220 #elif defined(ARCHOS_ONDIOFM)
221 #include "config-ondiofm.h"
222 #elif defined(ARCHOS_AV300)
223 #include "config-av300.h"
224 #elif defined(IRIVER_H100)
225 #include "config-h100.h"
226 #elif defined(IRIVER_H120)
227 #include "config-h120.h"
228 #elif defined(IRIVER_H300)
229 #include "config-h300.h"
230 #elif defined(IAUDIO_X5)
231 #include "config-iaudiox5.h"
232 #elif defined(IAUDIO_M5)
233 #include "config-iaudiom5.h"
234 #elif defined(IAUDIO_M3)
235 #include "config-iaudiom3.h"
236 #elif defined(IPOD_COLOR)
237 #include "config-ipodcolor.h"
238 #elif defined(IPOD_NANO)
239 #include "config-ipodnano.h"
240 #elif defined(IPOD_VIDEO)
241 #include "config-ipodvideo.h"
242 #elif defined(IPOD_1G2G)
243 #include "config-ipod1g2g.h"
244 #elif defined(IPOD_3G)
245 #include "config-ipod3g.h"
246 #elif defined(IPOD_4G)
247 #include "config-ipod4g.h"
248 #elif defined(IRIVER_IFP7XX)
249 #include "config-ifp7xx.h"
250 #elif defined(GIGABEAT_F)
251 #include "config-gigabeat.h"
252 #elif defined(GIGABEAT_S)
253 #include "config-gigabeat-s.h"
254 #elif defined(IPOD_MINI)
255 #include "config-ipodmini.h"
256 #elif defined(IPOD_MINI2G)
257 #include "config-ipodmini2g.h"
258 #elif defined(IRIVER_H10)
259 #include "config-h10.h"
260 #elif defined(IRIVER_H10_5GB)
261 #include "config-h10_5gb.h"
262 #elif defined(SANSA_E200)
263 #include "config-e200.h"
264 #elif defined(SANSA_C200)
265 #include "config-c200.h"
266 #elif defined(SANSA_M200)
267 #include "config-m200.h"
268 #elif defined(ELIO_TPJ1022)
269 #include "config-tpj1022.h"
270 #elif defined(MROBE_100)
271 #include "config-mrobe100.h"
272 #elif defined(MROBE_500)
273 #include "config-mrobe500.h"
274 #elif defined(LOGIK_DAX)
275 #include "config-logikdax.h"
276 #elif defined(IAUDIO_7)
277 #include "config-iaudio7.h"
278 #elif defined(COWON_D2)
279 #include "config-cowond2.h"
280 #elif defined(CREATIVE_ZVM)
281 #include "config-creativezvm.h"
282 #elif defined(CREATIVE_ZVM60GB)
283 #include "config-creativezvm60gb.h"
284 #elif defined(CREATIVE_ZV)
285 #include "config-creativezv.h"
286 #elif defined(PHILIPS_SA9200)
287 #include "config-sa9200.h"
288 #elif defined(PHILIPS_HDD1630)
289 #include "config-hdd1630.h"
290 #elif defined(SANSA_C100)
291 #include "config-c100.h"
292 #elif defined(MEIZU_M6SL)
293 #include "config-meizu-m6sl.h"
294 #elif defined(ONDA_VX747)
295 #include "config-ondavx747.h"
296 #elif defined(ONDA_VX767)
297 #include "config-ondavx767.h"
298 #else
299 /* no known platform */
300 #endif
302 /* setup basic macros from capability masks */
303 #include "config_caps.h"
305 /* now set any CONFIG_ defines correctly if they are not used,
306 No need to do this on CONFIG_'s which are compulsary (e.g CONFIG_CODEC ) */
307 #ifndef CONFIG_TUNER
308 #define CONFIG_TUNER 0
309 #endif
311 #ifndef CONFIG_USBOTG
312 #define CONFIG_USBOTG 0
313 #endif
315 #ifndef CONFIG_LED
316 #define CONFIG_LED 0
317 #endif
319 #ifndef CONFIG_CHARGING
320 #define CONFIG_CHARGING 0
321 #endif
323 #ifndef CONFIG_RTC
324 #define CONFIG_RTC 0
325 #endif
327 #ifndef CONFIG_ORIENTATION
328 #if LCD_HEIGHT > LCD_WIDTH
329 #define CONFIG_ORIENTATION SCREEN_PORTRAIT
330 #elif LCD_HEIGHT < LCD_WIDTH
331 #define CONFIG_ORIENTATION SCREEN_LANDSCAPE
332 #else
333 #define CONFIG_ORIENTATION SCREEN_SQUARE
334 #endif
335 #endif
337 /* define this in the target config.h to use a different size */
338 #ifndef CONFIG_DEFAULT_ICON_HEIGHT
339 #define CONFIG_DEFAULT_ICON_HEIGHT 8
340 #endif
341 #ifndef CONFIG_DEFAULT_ICON_WIDTH
342 #define CONFIG_DEFAULT_ICON_WIDTH 6
343 #endif
344 #ifndef CONFIG_REMOTE_DEFAULT_ICON_HEIGHT
345 #define CONFIG_REMOTE_DEFAULT_ICON_HEIGHT 8
346 #endif
347 #ifndef CONFIG_REMOTE_DEFAULT_ICON_WIDTH
348 #define CONFIG_REMOTE_DEFAULT_ICON_WIDTH 6
349 #endif
351 #if (CONFIG_TUNER & (CONFIG_TUNER - 1)) != 0
352 /* Multiple possible tuners */
353 #define CONFIG_TUNER_MULTI
354 #endif
356 #if defined(BOOTLOADER) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
357 /* Bootloaders don't use CPU frequency adjustment */
358 #undef HAVE_ADJUSTABLE_CPU_FREQ
359 #endif
361 /* Enable the directory cache and tagcache in RAM if we have
362 * plenty of RAM. Both features can be enabled independently. */
363 #if ((defined(MEMORYSIZE) && (MEMORYSIZE > 8)) || MEM > 8) && \
364 !defined(BOOTLOADER)
365 #define HAVE_DIRCACHE
366 #ifdef HAVE_TAGCACHE
367 #define HAVE_TC_RAMCACHE
368 #endif
369 #endif
371 /* Add one HAVE_ define for all mas35xx targets */
372 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3507D) || (CONFIG_CODEC == MAS3539F)
373 #define HAVE_MAS35XX
374 #endif
376 #if (CONFIG_CODEC == SWCODEC)
377 #ifdef BOOTLOADER
379 #if CONFIG_CPU == IMX31L
380 /* Priority in bootloader is wanted */
381 #define HAVE_PRIORITY_SCHEDULING
382 #endif
384 #else /* !BOOTLOADER */
386 #define HAVE_EXTENDED_MESSAGING_AND_NAME
388 #ifndef SIMULATOR
389 #define HAVE_PRIORITY_SCHEDULING
390 #define HAVE_SCHEDULER_BOOSTCTRL
391 #endif /* SIMULATOR */
393 #define HAVE_SEMAPHORE_OBJECTS
394 #define HAVE_EVENT_OBJECTS
396 #ifdef TOSHIBA_GIGABEAT_F
397 #define HAVE_WAKEUP_OBJECTS
398 #endif
400 #endif /* BOOTLOADER */
402 #ifdef HAVE_USBSTACK
403 #define HAVE_WAKEUP_OBJECTS
404 #endif
406 #endif /* (CONFIG_CODEC == SWCODEC) */
408 /* define for all cpus from SH family */
409 #if (CONFIG_CPU == SH7034)
410 #define CPU_SH
411 #endif
413 /* define for all cpus from coldfire family */
414 #if (CONFIG_CPU == MCF5249) || (CONFIG_CPU == MCF5250)
415 #define CPU_COLDFIRE
416 #endif
418 /* define for all cpus from PP family */
419 #if (CONFIG_CPU == PP5002)
420 #define CPU_PP
421 #elif (CONFIG_CPU == PP5020) || (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
422 #define CPU_PP
423 #define CPU_PP502x
424 #endif
426 /* define for all cpus from TCC77X family */
427 #if (CONFIG_CPU == TCC771L) || (CONFIG_CPU == TCC773L) || (CONFIG_CPU == TCC770)
428 #define CPU_TCC77X
429 #endif
431 /* define for all cpus from TCC780 family */
432 #if (CONFIG_CPU == TCC7801)
433 #define CPU_TCC780X
434 #endif
436 /* define for all cpus from ARM7TDMI family (for specific optimisations) */
437 #if defined(CPU_PP) || (CONFIG_CPU == PNX0101) || (CONFIG_CPU == DSC25)
438 #define CPU_ARM7TDMI
439 #endif
441 /* define for all cpus from ARM family */
442 #if (CONFIG_CPU == IMX31L)
443 #define CPU_ARM
444 #define ARM_ARCH 6 /* ARMv6 */
445 #endif
447 #if defined(CPU_TCC77X) || defined(CPU_TCC780X) || (CONFIG_CPU == DM320)
448 #define CPU_ARM
449 #define ARM_ARCH 5 /* ARMv5 */
450 #endif
452 #if defined(CPU_PP) || (CONFIG_CPU == PNX0101) || (CONFIG_CPU == S3C2440) \
453 || (CONFIG_CPU == DSC25) || (CONFIG_CPU == S5L8700)
454 #define CPU_ARM
455 #define ARM_ARCH 4 /* ARMv4 */
456 #endif
458 /* Determine if accesses should be strictly long aligned. */
459 #if (CONFIG_CPU == SH7034) || defined(CPU_ARM)
460 #define ROCKBOX_STRICT_ALIGN 1
461 #endif
463 #if (CONFIG_CPU == JZ4732)
464 #define CPU_MIPS 32
465 #endif
467 #ifndef CODEC_SIZE
468 #define CODEC_SIZE 0
469 #endif
471 /* This attribute can be used to ensure that certain symbols are never profiled
472 * which can be important as profiling a function de-inlines it */
473 #ifdef RB_PROFILE
474 #define NO_PROF_ATTR __attribute__ ((no_instrument_function))
475 #else
476 #define NO_PROF_ATTR
477 #endif
479 /* IRAM usage */
480 #if !defined(SIMULATOR) && /* Not for simulators */ \
481 (((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \
482 defined(CPU_COLDFIRE) || /* Coldfire: core, plugins, codecs */ \
483 defined(CPU_PP) || /* PortalPlayer: core, plugins, codecs */ \
484 defined(CPU_TCC77X) || /* Telechips: core, plugins, codecs */ \
485 (CONFIG_CPU == PNX0101) || \
486 (CONFIG_CPU == S5L8700)) /* Samsung S5L8700: core, plugins, codecs */
487 #define ICODE_ATTR __attribute__ ((section(".icode")))
488 #define ICONST_ATTR __attribute__ ((section(".irodata")))
489 #define IDATA_ATTR __attribute__ ((section(".idata")))
490 #define IBSS_ATTR __attribute__ ((section(".ibss")))
491 #define USE_IRAM
492 #if CONFIG_CPU != SH7034
493 #define PLUGIN_USE_IRAM
494 #endif
495 #if defined(CPU_ARM)
496 /* GCC quirk workaround: arm-elf-gcc treats static functions as short_call
497 * when not compiling with -ffunction-sections, even when the function has
498 * a section attribute. */
499 #define STATICIRAM
500 #else
501 #define STATICIRAM static
502 #endif
503 #else
504 #define ICODE_ATTR
505 #define ICONST_ATTR
506 #define IDATA_ATTR
507 #define IBSS_ATTR
508 #define STATICIRAM static
509 #endif
511 #ifndef IRAM_LCDFRAMEBUFFER
512 /* if the LCD framebuffer has not been moved to IRAM, define it empty here */
513 #define IRAM_LCDFRAMEBUFFER
514 #endif
516 /* Change this if you want to build a single-core firmware for a multicore
517 * target for debugging */
518 #if defined(BOOTLOADER)
519 #define FORCE_SINGLE_CORE
520 #endif
522 /* Core locking types - specifies type of atomic operation */
523 #define CORELOCK_NONE 0
524 #define SW_CORELOCK 1 /* Mutual exclusion provided by a software algorithm
525 and not a special semaphore instruction */
526 #define CORELOCK_SWAP 2 /* A swap (exchange) instruction */
528 #if defined(CPU_PP)
529 #define IDLE_STACK_SIZE 0x80
530 #define IDLE_STACK_WORDS 0x20
532 /* Attributes to place data in uncached DRAM */
533 /* These are useful beyond dual-core and ultimately beyond PP since they may
534 * be used for DMA buffers and such without cache maintenence calls. */
535 #define NOCACHEBSS_ATTR __attribute__((section(".ncbss"),nocommon))
536 #define NOCACHEDATA_ATTR __attribute__((section(".ncdata"),nocommon))
538 #if !defined(FORCE_SINGLE_CORE)
540 #define NUM_CORES 2
541 #define CURRENT_CORE current_core()
542 /* Attributes for core-shared data in DRAM where IRAM is better used for other
543 * purposes. */
544 #define SHAREDBSS_ATTR NOCACHEBSS_ATTR
545 #define SHAREDDATA_ATTR NOCACHEDATA_ATTR
547 #define IF_COP(...) __VA_ARGS__
548 #define IF_COP_VOID(...) __VA_ARGS__
549 #define IF_COP_CORE(core) core
551 #ifdef CPU_PP
552 #define CONFIG_CORELOCK SW_CORELOCK /* SWP(B) is broken */
553 #else
554 #define CONFIG_CORELOCK CORELOCK_SWAP
555 #endif
557 #endif /* !defined(BOOTLOADER) && CONFIG_CPU != PP5002 */
559 #endif /* CPU_PP */
561 #ifndef CONFIG_CORELOCK
562 #define CONFIG_CORELOCK CORELOCK_NONE
563 #endif
565 #if CONFIG_CORELOCK == SW_CORELOCK
566 #define IF_SWCL(...) __VA_ARGS__
567 #define IFN_SWCL(...)
568 #else
569 #define IF_SWCL(...)
570 #define IFN_SWCL(...) __VA_ARGS__
571 #endif /* CONFIG_CORELOCK == */
573 #ifndef NUM_CORES
574 /* Default to single core */
575 #define NUM_CORES 1
576 #define CURRENT_CORE CPU
577 /* Attributes for core-shared data in DRAM - no caching considerations */
578 #define SHAREDBSS_ATTR
579 #define SHAREDDATA_ATTR
580 #ifndef NOCACHEBSS_ATTR
581 #define NOCACHEBSS_ATTR
582 #define NOCACHEDATA_ATTR
583 #endif
584 #define CONFIG_CORELOCK CORELOCK_NONE
586 #define IF_COP(...)
587 #define IF_COP_VOID(...) void
588 #define IF_COP_CORE(core) CURRENT_CORE
590 #endif /* NUM_CORES */
592 #ifdef HAVE_HEADPHONE_DETECTION
593 /* Timeout objects required if headphone detection is enabled */
594 #ifndef INCLUDE_TIMEOUT_API
595 #define INCLUDE_TIMEOUT_API
596 #endif
597 #endif /* HAVE_HEADPHONE_DETECTION */
599 #endif /* __CONFIG_H__ */