/* SPDX-License-Identifier: GPL-2.0 */1/****************************************************************************/23/*4* coldfire.h -- Motorola ColdFire CPU sepecific defines5*6* (C) Copyright 1999-2006, Greg Ungerer ([email protected])7* (C) Copyright 2000, Lineo (www.lineo.com)8*/910/****************************************************************************/11#ifndef coldfire_h12#define coldfire_h13/****************************************************************************/141516/*17* Define master clock frequency. This is done at config time now.18* No point enumerating dozens of possible clock options here. And19* in any case new boards come along from time to time that have yet20* another different clocking frequency.21*/22#ifdef CONFIG_CLOCK_FREQ23#define MCF_CLK CONFIG_CLOCK_FREQ24#else25#error "Don't know what your ColdFire CPU clock frequency is??"26#endif2728/*29* Define the processor internal peripherals base address.30*31* The majority of ColdFire parts use an MBAR register to set32* the base address. Some have an IPSBAR register instead, and it33* has slightly different rules on its size and alignment. Some34* parts have fixed addresses and the internal peripherals cannot35* be relocated in the CPU address space.36*37* The value of MBAR or IPSBAR is config time selectable, we no38* longer hard define it here. No MBAR or IPSBAR will be defined if39* this part has a fixed peripheral address map.40*/41#ifdef CONFIG_MBAR42#define MCF_MBAR CONFIG_MBAR43#endif44#ifdef CONFIG_IPSBAR45#define MCF_IPSBAR CONFIG_IPSBAR46#endif4748/****************************************************************************/49#endif /* coldfire_h */505152