summaryrefslogtreecommitdiff
path: root/firmware/export/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r--firmware/export/config.h39
1 files changed, 24 insertions, 15 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index d848d16155..13fb77661d 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -273,21 +273,6 @@
273/* define for all cpus from PP family */ 273/* define for all cpus from PP family */
274#if (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) || (CONFIG_CPU == PP5024) 274#if (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) || (CONFIG_CPU == PP5024)
275#define CPU_PP 275#define CPU_PP
276
277/* PP family has dual cores */
278#if 0
279/* Keep it as single core until dual core support is ready */
280#define NUM_CORES 2
281#define CURRENT_CORE current_core()
282#endif
283
284#define NUM_CORES 1
285#define CURRENT_CORE 0
286
287#define COP_REBOOT 0x00000001
288#else
289#define NUM_CORES 1
290#define CURRENT_CORE 0
291#endif 276#endif
292 277
293/* define for all cpus from ARM family */ 278/* define for all cpus from ARM family */
@@ -348,4 +333,28 @@
348#define IRAM_LCDFRAMEBUFFER 333#define IRAM_LCDFRAMEBUFFER
349#endif 334#endif
350 335
336/* Dual core support - not yet working on the 3G iPod */
337#if defined(CPU_PP) && CONFIG_CPU != PP5002
338#define NUM_CORES 2
339#define CURRENT_CORE current_core()
340/* Hopefully at some point we will learn how to mark areas of main memory as
341 * not to be cached. Until then, use IRAM for variables shared across cores */
342#define NOCACHEBSS_ATTR IBSS_ATTR
343#define NOCACHEDATA_ATTR IDATA_ATTR
344
345#define IF_COP(empty, x, y) , x, y
346
347/* Defines for inter-core messaging */
348#define COP_REBOOT 1
349
350#else
351#define NUM_CORES 1
352#define CURRENT_CORE CPU
353#define NOCACHEBSS_ATTR
354#define NOCACHEDATA_ATTR
355
356#define IF_COP(empty, x, y)
357
358#endif /* Processor specific */
359
351#endif 360#endif