diff options
Diffstat (limited to 'arch/m68k/include/asm/coldfire.h')
| -rw-r--r-- | arch/m68k/include/asm/coldfire.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/coldfire.h b/arch/m68k/include/asm/coldfire.h new file mode 100644 index 000000000000..83a9fa4e618a --- /dev/null +++ b/arch/m68k/include/asm/coldfire.h | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | /****************************************************************************/ | ||
| 2 | |||
| 3 | /* | ||
| 4 | * coldfire.h -- Motorola ColdFire CPU sepecific defines | ||
| 5 | * | ||
| 6 | * (C) Copyright 1999-2006, Greg Ungerer (gerg@snapgear.com) | ||
| 7 | * (C) Copyright 2000, Lineo (www.lineo.com) | ||
| 8 | */ | ||
| 9 | |||
| 10 | /****************************************************************************/ | ||
| 11 | #ifndef coldfire_h | ||
| 12 | #define coldfire_h | ||
| 13 | /****************************************************************************/ | ||
| 14 | |||
| 15 | |||
| 16 | /* | ||
| 17 | * Define master clock frequency. This is essentially done at config | ||
| 18 | * time now. No point enumerating dozens of possible clock options | ||
| 19 | * here. Also the peripheral clock (bus clock) divide ratio is set | ||
| 20 | * at config time too. | ||
| 21 | */ | ||
| 22 | #ifdef CONFIG_CLOCK_SET | ||
| 23 | #define MCF_CLK CONFIG_CLOCK_FREQ | ||
| 24 | #define MCF_BUSCLK (CONFIG_CLOCK_FREQ / CONFIG_CLOCK_DIV) | ||
| 25 | #else | ||
| 26 | #error "Don't know what your ColdFire CPU clock frequency is??" | ||
| 27 | #endif | ||
| 28 | |||
| 29 | /* | ||
| 30 | * Define the processor support peripherals base address. | ||
| 31 | * This is generally setup by the boards start up code. | ||
| 32 | */ | ||
| 33 | #define MCF_MBAR 0x10000000 | ||
| 34 | #define MCF_MBAR2 0x80000000 | ||
| 35 | #if defined(CONFIG_M520x) | ||
| 36 | #define MCF_IPSBAR 0xFC000000 | ||
| 37 | #else | ||
| 38 | #define MCF_IPSBAR 0x40000000 | ||
| 39 | #endif | ||
| 40 | |||
| 41 | #if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \ | ||
| 42 | defined(CONFIG_M520x) | ||
| 43 | #undef MCF_MBAR | ||
| 44 | #define MCF_MBAR MCF_IPSBAR | ||
| 45 | #elif defined(CONFIG_M532x) | ||
| 46 | #undef MCF_MBAR | ||
| 47 | #define MCF_MBAR 0x00000000 | ||
| 48 | #endif | ||
| 49 | |||
| 50 | /****************************************************************************/ | ||
| 51 | #endif /* coldfire_h */ | ||
