Commit 8b8f1c46 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] m68knommu: clock definitions for 527x ColdFire CPU's

Add clock rate definitions for newly support ColdFire 527x family
of CPU's. And switch to the generic 528x define for the 5280 and
5282 CPU's.
Signed-off-by: default avatarGreg Ungerer <gerg@snapgear.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d46808dc
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#define MCF_MBAR2 0x80000000 #define MCF_MBAR2 0x80000000
#define MCF_IPSBAR 0x40000000 #define MCF_IPSBAR 0x40000000
#ifdef CONFIG_M5282 #if defined(CONFIG_M527x) || defined(CONFIG_M528x)
#undef MCF_MBAR #undef MCF_MBAR
#define MCF_MBAR MCF_IPSBAR #define MCF_MBAR MCF_IPSBAR
#endif #endif
...@@ -60,8 +60,14 @@ ...@@ -60,8 +60,14 @@
#define MCF_CLK 66000000 #define MCF_CLK 66000000
#elif defined(CONFIG_CLOCK_70MHz) #elif defined(CONFIG_CLOCK_70MHz)
#define MCF_CLK 70000000 #define MCF_CLK 70000000
#elif defined(CONFIG_CLOCK_100MHz)
#define MCF_CLK 100000000
#elif defined(CONFIG_CLOCK_140MHz) #elif defined(CONFIG_CLOCK_140MHz)
#define MCF_CLK 140000000 #define MCF_CLK 140000000
#elif defined(CONFIG_CLOCK_150MHz)
#define MCF_CLK 150000000
#elif defined(CONFIG_CLOCK_166MHz)
#define MCF_CLK 166000000
#else #else
#error "Don't know what your ColdFire CPU clock frequency is??" #error "Don't know what your ColdFire CPU clock frequency is??"
#endif #endif
...@@ -70,7 +76,7 @@ ...@@ -70,7 +76,7 @@
* One some ColdFire family members the bus clock (used by internal * One some ColdFire family members the bus clock (used by internal
* peripherals) is not the same as the CPU clock. * peripherals) is not the same as the CPU clock.
*/ */
#ifdef CONFIG_M5249 #if defined(CONFIG_M5249) || defined(CONFIG_M527x)
#define MCF_BUSCLK (MCF_CLK / 2) #define MCF_BUSCLK (MCF_CLK / 2)
#else #else
#define MCF_BUSCLK MCF_CLK #define MCF_BUSCLK MCF_CLK
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment