2005-04-17 05:20:36 +07:00
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* coldfire.h -- Motorola ColdFire CPU sepecific defines
|
|
|
|
*
|
2006-06-26 07:58:09 +07:00
|
|
|
* (C) Copyright 1999-2006, Greg Ungerer (gerg@snapgear.com)
|
2005-04-17 05:20:36 +07:00
|
|
|
* (C) Copyright 2000, Lineo (www.lineo.com)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
#ifndef coldfire_h
|
|
|
|
#define coldfire_h
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
|
2006-06-26 07:58:09 +07:00
|
|
|
/*
|
|
|
|
* Define master clock frequency. This is essentially done at config
|
|
|
|
* time now. No point enumerating dozens of possible clock options
|
|
|
|
* here. Also the peripheral clock (bus clock) divide ratio is set
|
|
|
|
* at config time too.
|
|
|
|
*/
|
|
|
|
#ifdef CONFIG_CLOCK_SET
|
|
|
|
#define MCF_CLK CONFIG_CLOCK_FREQ
|
|
|
|
#define MCF_BUSCLK (CONFIG_CLOCK_FREQ / CONFIG_CLOCK_DIV)
|
|
|
|
#else
|
|
|
|
#error "Don't know what your ColdFire CPU clock frequency is??"
|
|
|
|
#endif
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Define the processor support peripherals base address.
|
|
|
|
* This is generally setup by the boards start up code.
|
|
|
|
*/
|
|
|
|
#define MCF_MBAR 0x10000000
|
2011-03-05 19:17:17 +07:00
|
|
|
#if defined(CONFIG_M520x)
|
2005-11-02 11:59:09 +07:00
|
|
|
#define MCF_IPSBAR 0xFC000000
|
|
|
|
#else
|
2005-04-17 05:20:36 +07:00
|
|
|
#define MCF_IPSBAR 0x40000000
|
2005-11-02 11:59:09 +07:00
|
|
|
#endif
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2005-11-02 11:59:09 +07:00
|
|
|
#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
|
|
|
|
defined(CONFIG_M520x)
|
2005-04-17 05:20:36 +07:00
|
|
|
#undef MCF_MBAR
|
|
|
|
#define MCF_MBAR MCF_IPSBAR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
#endif /* coldfire_h */
|