2005-04-17 06:20:36 +08:00
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* coldfire.h -- Motorola ColdFire CPU sepecific defines
|
|
|
|
*
|
2006-06-26 08:58:09 +08:00
|
|
|
* (C) Copyright 1999-2006, Greg Ungerer (gerg@snapgear.com)
|
2005-04-17 06:20:36 +08:00
|
|
|
* (C) Copyright 2000, Lineo (www.lineo.com)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
#ifndef coldfire_h
|
|
|
|
#define coldfire_h
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
|
2006-06-26 08:58:09 +08:00
|
|
|
/*
|
2011-03-09 12:19:08 +08:00
|
|
|
* Define master clock frequency. This is done at config time now.
|
|
|
|
* No point enumerating dozens of possible clock options here. And
|
|
|
|
* in any case new boards come along from time to time that have yet
|
|
|
|
* another different clocking frequency.
|
2006-06-26 08:58:09 +08:00
|
|
|
*/
|
2015-07-07 12:21:21 +08:00
|
|
|
#ifdef CONFIG_CLOCK_FREQ
|
2006-06-26 08:58:09 +08:00
|
|
|
#define MCF_CLK CONFIG_CLOCK_FREQ
|
|
|
|
#else
|
|
|
|
#error "Don't know what your ColdFire CPU clock frequency is??"
|
|
|
|
#endif
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
2011-03-05 23:01:31 +08:00
|
|
|
* Define the processor internal peripherals base address.
|
|
|
|
*
|
|
|
|
* The majority of ColdFire parts use an MBAR register to set
|
|
|
|
* the base address. Some have an IPSBAR register instead, and it
|
|
|
|
* has slightly different rules on its size and alignment. Some
|
|
|
|
* parts have fixed addresses and the internal peripherals cannot
|
2011-03-06 19:53:28 +08:00
|
|
|
* be relocated in the CPU address space.
|
2011-03-05 23:01:31 +08:00
|
|
|
*
|
2011-03-06 19:53:28 +08:00
|
|
|
* The value of MBAR or IPSBAR is config time selectable, we no
|
|
|
|
* longer hard define it here. No MBAR or IPSBAR will be defined if
|
|
|
|
* this part has a fixed peripheral address map.
|
2005-04-17 06:20:36 +08:00
|
|
|
*/
|
2011-03-06 19:53:28 +08:00
|
|
|
#ifdef CONFIG_MBAR
|
|
|
|
#define MCF_MBAR CONFIG_MBAR
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_IPSBAR
|
|
|
|
#define MCF_IPSBAR CONFIG_IPSBAR
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
#endif /* coldfire_h */
|