Path: blob/master/arch/m68k/include/asm/coldfire.h
10820 views
/****************************************************************************/12/*3* coldfire.h -- Motorola ColdFire CPU sepecific defines4*5* (C) Copyright 1999-2006, Greg Ungerer ([email protected])6* (C) Copyright 2000, Lineo (www.lineo.com)7*/89/****************************************************************************/10#ifndef coldfire_h11#define coldfire_h12/****************************************************************************/131415/*16* Define master clock frequency. This is done at config time now.17* No point enumerating dozens of possible clock options here. And18* in any case new boards come along from time to time that have yet19* another different clocking frequency.20*/21#ifdef CONFIG_CLOCK_SET22#define MCF_CLK CONFIG_CLOCK_FREQ23#else24#error "Don't know what your ColdFire CPU clock frequency is??"25#endif2627/*28* Define the processor internal peripherals base address.29*30* The majority of ColdFire parts use an MBAR register to set31* the base address. Some have an IPSBAR register instead, and it32* has slightly different rules on its size and alignment. Some33* parts have fixed addresses and the internal peripherals cannot34* be relocated in the CPU address space.35*36* The value of MBAR or IPSBAR is config time selectable, we no37* longer hard define it here. No MBAR or IPSBAR will be defined if38* this part has a fixed peripheral address map.39*/40#ifdef CONFIG_MBAR41#define MCF_MBAR CONFIG_MBAR42#endif43#ifdef CONFIG_IPSBAR44#define MCF_IPSBAR CONFIG_IPSBAR45#endif4647/****************************************************************************/48#endif /* coldfire_h */495051