mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 10:32:35 +00:00
ea49f8ffae
Add a very basic mmu-less support for coldfire m548x family. This is perhaps also valid for m547x family. The port comprises the serial, tick timer and reboot support. The gpio part compiles but is empty. This gives a functional albeit limited linux for the m548x coldfire family. This has been tested on a Freescale M548xEVB Lite board with a M5484 processor and the default dbug monitor. Signed-off-by: Philippe De Muyter <phdm@macqel.be> Signed-off-by: Greg Ungerer <gerg@uclinux.org>
54 lines
1.5 KiB
C
54 lines
1.5 KiB
C
/****************************************************************************/
|
|
|
|
/*
|
|
* coldfire.h -- Motorola ColdFire CPU sepecific defines
|
|
*
|
|
* (C) Copyright 1999-2006, Greg Ungerer (gerg@snapgear.com)
|
|
* (C) Copyright 2000, Lineo (www.lineo.com)
|
|
*/
|
|
|
|
/****************************************************************************/
|
|
#ifndef coldfire_h
|
|
#define coldfire_h
|
|
/****************************************************************************/
|
|
|
|
|
|
/*
|
|
* 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
|
|
|
|
/*
|
|
* Define the processor support peripherals base address.
|
|
* This is generally setup by the boards start up code.
|
|
*/
|
|
#define MCF_MBAR 0x10000000
|
|
#define MCF_MBAR2 0x80000000
|
|
#if defined(CONFIG_M548x)
|
|
#define MCF_IPSBAR MCF_MBAR
|
|
#elif defined(CONFIG_M520x)
|
|
#define MCF_IPSBAR 0xFC000000
|
|
#else
|
|
#define MCF_IPSBAR 0x40000000
|
|
#endif
|
|
|
|
#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
|
|
defined(CONFIG_M520x)
|
|
#undef MCF_MBAR
|
|
#define MCF_MBAR MCF_IPSBAR
|
|
#elif defined(CONFIG_M532x)
|
|
#undef MCF_MBAR
|
|
#define MCF_MBAR 0x00000000
|
|
#endif
|
|
|
|
/****************************************************************************/
|
|
#endif /* coldfire_h */
|