summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2005-07-18 12:40:29 +0000
committerChristian Gmeiner <christian.gmeiner@gmail.com>2005-07-18 12:40:29 +0000
commitc6ff1f5eb541f9557e7fbc1449df9c024fd59a03 (patch)
treeae38d203a3fcc15b1d897afe31c5a4f9099ac247 /firmware/export
parentf5df9cd81c685b01b5e72e4a05471d97ffa7d260 (diff)
downloadrockbox-c6ff1f5eb541f9557e7fbc1449df9c024fd59a03.tar.gz
rockbox-c6ff1f5eb541f9557e7fbc1449df9c024fd59a03.zip
Added CPU_COLDFIRE define - one step closer to iAudio-port
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7186 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h5
-rw-r--r--firmware/export/system.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 1654072a3a..6b77f0dfc1 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -118,6 +118,11 @@
118/* no known platform */ 118/* no known platform */
119#endif 119#endif
120 120
121/* define for all cpus from coldfire family */
122#if (CONFIG_CPU == MCF5249) || (CONFIG_CPU == MCF5250)
123#define CPU_COLDFIRE
124#endif
125
121#ifndef CODEC_SIZE 126#ifndef CODEC_SIZE
122#define CODEC_SIZE 0 127#define CODEC_SIZE 0
123#endif 128#endif
diff --git a/firmware/export/system.h b/firmware/export/system.h
index f379b325d3..39663f1087 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -103,7 +103,7 @@ enum {
103 : /* %0 */ I_CONSTRAINT((char)(mask)), \ 103 : /* %0 */ I_CONSTRAINT((char)(mask)), \
104 /* %1 */ "z"(address-GBR)) 104 /* %1 */ "z"(address-GBR))
105 105
106#elif CONFIG_CPU == MCF5249 106#elif defined(CPU_COLDFIRE)
107#define or_l(mask, address) \ 107#define or_l(mask, address) \
108 asm \ 108 asm \
109 ("or.l %0,(%1)" \ 109 ("or.l %0,(%1)" \
@@ -182,7 +182,7 @@ static inline unsigned long SWAB32(unsigned long value)
182 182
183#define invalidate_icache() 183#define invalidate_icache()
184 184
185#elif CONFIG_CPU == MCF5249 185#elif defined(CPU_COLDFIRE)
186#define HIGHEST_IRQ_LEVEL (7<<8) 186#define HIGHEST_IRQ_LEVEL (7<<8)
187static inline int set_irq_level(int level) 187static inline int set_irq_level(int level)
188{ 188{