blob: c7dce7e556861e244836e6a97d465eab01c02989 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/****************************************************************************/
2
3/*
4 * coldfire.h -- Motorola ColdFire CPU sepecific defines
5 *
Greg Ungerer31f4fde2006-06-26 10:58:09 +10006 * (C) Copyright 1999-2006, Greg Ungerer (gerg@snapgear.com)
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 * (C) Copyright 2000, Lineo (www.lineo.com)
8 */
9
10/****************************************************************************/
11#ifndef coldfire_h
12#define coldfire_h
13/****************************************************************************/
14
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
16/*
Greg Ungerer31f4fde2006-06-26 10:58:09 +100017 * 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/*
Linus Torvalds1da177e2005-04-16 15:20:36 -070030 * Define the processor support peripherals base address.
31 * This is generally setup by the boards start up code.
32 */
33#define MCF_MBAR 0x10000000
Linus Torvalds1da177e2005-04-16 15:20:36 -070034#define MCF_IPSBAR 0x40000000
35
Greg Ungerer571f0602011-03-05 23:50:37 +100036#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x)
Linus Torvalds1da177e2005-04-16 15:20:36 -070037#undef MCF_MBAR
38#define MCF_MBAR MCF_IPSBAR
Linus Torvalds1da177e2005-04-16 15:20:36 -070039#endif
40
41/****************************************************************************/
42#endif /* coldfire_h */