1 /* SPDX-License-Identifier: GPL-2.0 */
2 /****************************************************************************/
5 * coldfire.h -- Motorola ColdFire CPU sepecific defines
7 * (C) Copyright 1999-2006, Greg Ungerer (gerg@snapgear.com)
8 * (C) Copyright 2000, Lineo (www.lineo.com)
11 /****************************************************************************/
14 /****************************************************************************/
18 * Define master clock frequency. This is done at config time now.
19 * No point enumerating dozens of possible clock options here. And
20 * in any case new boards come along from time to time that have yet
21 * another different clocking frequency.
23 #ifdef CONFIG_CLOCK_FREQ
24 #define MCF_CLK CONFIG_CLOCK_FREQ
26 #error "Don't know what your ColdFire CPU clock frequency is??"
30 * Define the processor internal peripherals base address.
32 * The majority of ColdFire parts use an MBAR register to set
33 * the base address. Some have an IPSBAR register instead, and it
34 * has slightly different rules on its size and alignment. Some
35 * parts have fixed addresses and the internal peripherals cannot
36 * be relocated in the CPU address space.
38 * The value of MBAR or IPSBAR is config time selectable, we no
39 * longer hard define it here. No MBAR or IPSBAR will be defined if
40 * this part has a fixed peripheral address map.
43 #define MCF_MBAR CONFIG_MBAR
46 #define MCF_IPSBAR CONFIG_IPSBAR
49 /****************************************************************************/
50 #endif /* coldfire_h */