diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config.h | 5 | ||||
-rw-r--r-- | firmware/export/system.h | 4 |
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) |
187 | static inline int set_irq_level(int level) | 187 | static inline int set_irq_level(int level) |
188 | { | 188 | { |