blob: d9cb26fb3e65709ddf3b25b441d8464e51858c7e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/****************************************************************************/
3
4/*
5 * coldfire.h -- Motorola ColdFire CPU sepecific defines
6 *
Greg Ungerer31f4fde2006-06-26 10:58:09 +10007 * (C) Copyright 1999-2006, Greg Ungerer (gerg@snapgear.com)
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 * (C) Copyright 2000, Lineo (www.lineo.com)
9 */
10
11/****************************************************************************/
12#ifndef coldfire_h
13#define coldfire_h
14/****************************************************************************/
15
Linus Torvalds1da177e2005-04-16 15:20:36 -070016
17/*
Greg Ungererce3de782011-03-09 14:19:08 +100018 * 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.
Greg Ungerer31f4fde2006-06-26 10:58:09 +100022 */
Greg Ungererd9ee4892015-07-07 14:21:21 +100023#ifdef CONFIG_CLOCK_FREQ
Greg Ungerer31f4fde2006-06-26 10:58:09 +100024#define MCF_CLK CONFIG_CLOCK_FREQ
Greg Ungerer31f4fde2006-06-26 10:58:09 +100025#else
26#error "Don't know what your ColdFire CPU clock frequency is??"
27#endif
28
29/*
Greg Ungererb195c472011-03-06 01:01:31 +100030 * Define the processor internal peripherals base address.
31 *
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
Greg Ungererd4852a32011-03-06 21:53:28 +100036 * be relocated in the CPU address space.
Greg Ungererb195c472011-03-06 01:01:31 +100037 *
Greg Ungererd4852a32011-03-06 21:53:28 +100038 * 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.
Linus Torvalds1da177e2005-04-16 15:20:36 -070041 */
Greg Ungererd4852a32011-03-06 21:53:28 +100042#ifdef CONFIG_MBAR
43#define MCF_MBAR CONFIG_MBAR
44#endif
45#ifdef CONFIG_IPSBAR
46#define MCF_IPSBAR CONFIG_IPSBAR
Linus Torvalds1da177e2005-04-16 15:20:36 -070047#endif
48
49/****************************************************************************/
50#endif /* coldfire_h */