aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-05-10 10:22:35 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-05-10 10:22:35 -0400
commit977b58e1dd6fc2a751fb427798bfb8256476c93e (patch)
treeee71723ccffda6d183652266134f623d9541d76f /arch/m68k
parentf5b8fcb48b9eb1a02f6a3a679da913f6c467527c (diff)
parent2842e5b00e99b30404f9af1c1b367c8e467b5c6c (diff)
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68knommu updates from Greg Ungerer: "The bulk of the changes are generalizing the ColdFire v3 core support and adding in 537x CPU support. Also a couple of other bug fixes, one to fix a reintroduction of a past bug in the romfs filesystem nommu support." * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68knommu: enable Timer on coldfire 532x m68knommu: fix ColdFire 5373/5329 QSPI base address m68knommu: add support for configuring a Freescale M5373EVB board m68knommu: add support for the ColdFire 537x family of CPUs m68knommu: make ColdFire M532x platform support more v3 generic m68knommu: create and use a common M53xx ColdFire class of CPUs m68k: remove unused asm/dbg.h m68k: Set ColdFire ACR1 cache mode depending on kernel configuration romfs: fix nommu map length to keep inside filesystem m68k: clean up unused "config ROMVECSIZE"
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/Kconfig.cpu12
-rw-r--r--arch/m68k/Kconfig.machine16
-rw-r--r--arch/m68k/Makefile1
-rw-r--r--arch/m68k/include/asm/dbg.h6
-rw-r--r--arch/m68k/include/asm/dma.h2
-rw-r--r--arch/m68k/include/asm/m53xxacr.h4
-rw-r--r--arch/m68k/include/asm/m53xxsim.h (renamed from arch/m68k/include/asm/m532xsim.h)12
-rw-r--r--arch/m68k/include/asm/m54xxacr.h7
-rw-r--r--arch/m68k/include/asm/mcfgpio.h10
-rw-r--r--arch/m68k/include/asm/mcfsim.h4
-rw-r--r--arch/m68k/include/asm/mcftimer.h2
-rw-r--r--arch/m68k/platform/coldfire/Makefile2
-rw-r--r--arch/m68k/platform/coldfire/m53xx.c (renamed from arch/m68k/platform/coldfire/m532x.c)23
-rw-r--r--arch/m68k/platform/coldfire/timers.c2
14 files changed, 56 insertions, 47 deletions
diff --git a/arch/m68k/Kconfig.cpu b/arch/m68k/Kconfig.cpu
index d266787725b4..33013dfcd3e1 100644
--- a/arch/m68k/Kconfig.cpu
+++ b/arch/m68k/Kconfig.cpu
@@ -223,13 +223,25 @@ config M5307
223 help 223 help
224 Motorola ColdFire 5307 processor support. 224 Motorola ColdFire 5307 processor support.
225 225
226config M53xx
227 bool
228
226config M532x 229config M532x
227 bool "MCF532x" 230 bool "MCF532x"
228 depends on !MMU 231 depends on !MMU
232 select M53xx
229 select HAVE_CACHE_CB 233 select HAVE_CACHE_CB
230 help 234 help
231 Freescale (Motorola) ColdFire 532x processor support. 235 Freescale (Motorola) ColdFire 532x processor support.
232 236
237config M537x
238 bool "MCF537x"
239 depends on !MMU
240 select M53xx
241 select HAVE_CACHE_CB
242 help
243 Freescale ColdFire 537x processor support.
244
233config M5407 245config M5407
234 bool "MCF5407" 246 bool "MCF5407"
235 depends on !MMU 247 depends on !MMU
diff --git a/arch/m68k/Kconfig.machine b/arch/m68k/Kconfig.machine
index 7240584d3439..b9ab0a69561c 100644
--- a/arch/m68k/Kconfig.machine
+++ b/arch/m68k/Kconfig.machine
@@ -358,6 +358,13 @@ config COBRA5329
358 help 358 help
359 Support for the senTec COBRA5329 board. 359 Support for the senTec COBRA5329 board.
360 360
361config M5373EVB
362 bool "Freescale M5373EVB board support"
363 depends on M537x
364 select FREESCALE
365 help
366 Support for the Freescale M5373EVB board.
367
361config M5407C3 368config M5407C3
362 bool "Motorola M5407C3 board support" 369 bool "Motorola M5407C3 board support"
363 depends on M5407 370 depends on M5407
@@ -539,15 +546,6 @@ config ROMVEC
539 68000 type variants the vectors are at the base of the boot device 546 68000 type variants the vectors are at the base of the boot device
540 on system startup. 547 on system startup.
541 548
542config ROMVECSIZE
543 hex "Size of ROM vector region (in bytes)"
544 default "0x400"
545 depends on ROM
546 help
547 Define the size of the vector region in ROM. For most 68000
548 variants this would be 0x400 bytes in size. Set to 0 if you do
549 not want a vector region at the start of the ROM.
550
551config ROMSTART 549config ROMSTART
552 hex "Address of the base of system image in ROM" 550 hex "Address of the base of system image in ROM"
553 default "0x400" 551 default "0x400"
diff --git a/arch/m68k/Makefile b/arch/m68k/Makefile
index 2f02acfb8edf..7f7830f2c5bc 100644
--- a/arch/m68k/Makefile
+++ b/arch/m68k/Makefile
@@ -45,6 +45,7 @@ cpuflags-$(CONFIG_M5441x) := $(call cc-option,-mcpu=54455,-mcfv4e)
45cpuflags-$(CONFIG_M54xx) := $(call cc-option,-mcpu=5475,-m5200) 45cpuflags-$(CONFIG_M54xx) := $(call cc-option,-mcpu=5475,-m5200)
46cpuflags-$(CONFIG_M5407) := $(call cc-option,-mcpu=5407,-m5200) 46cpuflags-$(CONFIG_M5407) := $(call cc-option,-mcpu=5407,-m5200)
47cpuflags-$(CONFIG_M532x) := $(call cc-option,-mcpu=532x,-m5307) 47cpuflags-$(CONFIG_M532x) := $(call cc-option,-mcpu=532x,-m5307)
48cpuflags-$(CONFIG_M537x) := $(call cc-option,-mcpu=537x,-m5307)
48cpuflags-$(CONFIG_M5307) := $(call cc-option,-mcpu=5307,-m5200) 49cpuflags-$(CONFIG_M5307) := $(call cc-option,-mcpu=5307,-m5200)
49cpuflags-$(CONFIG_M528x) := $(call cc-option,-mcpu=528x,-m5307) 50cpuflags-$(CONFIG_M528x) := $(call cc-option,-mcpu=528x,-m5307)
50cpuflags-$(CONFIG_M5275) := $(call cc-option,-mcpu=5275,-m5307) 51cpuflags-$(CONFIG_M5275) := $(call cc-option,-mcpu=5275,-m5307)
diff --git a/arch/m68k/include/asm/dbg.h b/arch/m68k/include/asm/dbg.h
deleted file mode 100644
index 27af3270f671..000000000000
--- a/arch/m68k/include/asm/dbg.h
+++ /dev/null
@@ -1,6 +0,0 @@
1#define DEBUG 1
2#ifdef CONFIG_COLDFIRE
3#define BREAK asm volatile ("halt")
4#else
5#define BREAK *(volatile unsigned char *)0xdeadbee0 = 0
6#endif
diff --git a/arch/m68k/include/asm/dma.h b/arch/m68k/include/asm/dma.h
index 0ff3fc6a6d9a..429fe26e320c 100644
--- a/arch/m68k/include/asm/dma.h
+++ b/arch/m68k/include/asm/dma.h
@@ -39,7 +39,7 @@
39#define MAX_M68K_DMA_CHANNELS 4 39#define MAX_M68K_DMA_CHANNELS 4
40#elif defined(CONFIG_M5272) 40#elif defined(CONFIG_M5272)
41#define MAX_M68K_DMA_CHANNELS 1 41#define MAX_M68K_DMA_CHANNELS 1
42#elif defined(CONFIG_M532x) 42#elif defined(CONFIG_M53xx)
43#define MAX_M68K_DMA_CHANNELS 0 43#define MAX_M68K_DMA_CHANNELS 0
44#else 44#else
45#define MAX_M68K_DMA_CHANNELS 2 45#define MAX_M68K_DMA_CHANNELS 2
diff --git a/arch/m68k/include/asm/m53xxacr.h b/arch/m68k/include/asm/m53xxacr.h
index cd952b0a8bd3..3177ce8331d6 100644
--- a/arch/m68k/include/asm/m53xxacr.h
+++ b/arch/m68k/include/asm/m53xxacr.h
@@ -55,8 +55,8 @@
55#define CACHE_SIZE 0x2000 /* 8k of unified cache */ 55#define CACHE_SIZE 0x2000 /* 8k of unified cache */
56#define ICACHE_SIZE CACHE_SIZE 56#define ICACHE_SIZE CACHE_SIZE
57#define DCACHE_SIZE CACHE_SIZE 57#define DCACHE_SIZE CACHE_SIZE
58#elif defined(CONFIG_M532x) 58#elif defined(CONFIG_M53xx)
59#define CACHE_SIZE 0x4000 /* 32k of unified cache */ 59#define CACHE_SIZE 0x4000 /* 16k of unified cache */
60#define ICACHE_SIZE CACHE_SIZE 60#define ICACHE_SIZE CACHE_SIZE
61#define DCACHE_SIZE CACHE_SIZE 61#define DCACHE_SIZE CACHE_SIZE
62#endif 62#endif
diff --git a/arch/m68k/include/asm/m532xsim.h b/arch/m68k/include/asm/m53xxsim.h
index 8668e47ced0e..faa1a2133bfd 100644
--- a/arch/m68k/include/asm/m532xsim.h
+++ b/arch/m68k/include/asm/m53xxsim.h
@@ -1,15 +1,15 @@
1/****************************************************************************/ 1/****************************************************************************/
2 2
3/* 3/*
4 * m532xsim.h -- ColdFire 5329 registers 4 * m53xxsim.h -- ColdFire 5329 registers
5 */ 5 */
6 6
7/****************************************************************************/ 7/****************************************************************************/
8#ifndef m532xsim_h 8#ifndef m53xxsim_h
9#define m532xsim_h 9#define m53xxsim_h
10/****************************************************************************/ 10/****************************************************************************/
11 11
12#define CPU_NAME "COLDFIRE(m532x)" 12#define CPU_NAME "COLDFIRE(m53xx)"
13#define CPU_INSTR_PER_JIFFY 3 13#define CPU_INSTR_PER_JIFFY 3
14#define MCF_BUSCLK (MCF_CLK / 3) 14#define MCF_BUSCLK (MCF_CLK / 3)
15 15
@@ -107,7 +107,7 @@
107/* 107/*
108 * QSPI module. 108 * QSPI module.
109 */ 109 */
110#define MCFQSPI_BASE 0xFC058000 /* Base address of QSPI */ 110#define MCFQSPI_BASE 0xFC05C000 /* Base address of QSPI */
111#define MCFQSPI_SIZE 0x40 /* Size of QSPI region */ 111#define MCFQSPI_SIZE 0x40 /* Size of QSPI region */
112 112
113#define MCFQSPI_CS0 84 113#define MCFQSPI_CS0 84
@@ -1238,4 +1238,4 @@
1238#define MCFEPORT_EPFR (0xFC094006) 1238#define MCFEPORT_EPFR (0xFC094006)
1239 1239
1240/********************************************************************/ 1240/********************************************************************/
1241#endif /* m532xsim_h */ 1241#endif /* m53xxsim_h */
diff --git a/arch/m68k/include/asm/m54xxacr.h b/arch/m68k/include/asm/m54xxacr.h
index 192bbfeabf70..6d13cae44af5 100644
--- a/arch/m68k/include/asm/m54xxacr.h
+++ b/arch/m68k/include/asm/m54xxacr.h
@@ -96,8 +96,13 @@
96 */ 96 */
97#define ACR0_MODE (ACR_BA(CONFIG_MBAR)+ACR_ADMSK(0x1000000)+ \ 97#define ACR0_MODE (ACR_BA(CONFIG_MBAR)+ACR_ADMSK(0x1000000)+ \
98 ACR_ENABLE+ACR_SUPER+ACR_CM_OFF_PRE+ACR_SP) 98 ACR_ENABLE+ACR_SUPER+ACR_CM_OFF_PRE+ACR_SP)
99#if defined(CONFIG_CACHE_COPYBACK)
99#define ACR1_MODE (ACR_BA(CONFIG_RAMBASE)+ACR_ADMSK(CONFIG_RAMSIZE)+ \ 100#define ACR1_MODE (ACR_BA(CONFIG_RAMBASE)+ACR_ADMSK(CONFIG_RAMSIZE)+ \
100 ACR_ENABLE+ACR_SUPER+ACR_SP) 101 ACR_ENABLE+ACR_SUPER+ACR_SP+ACR_CM_CP)
102#else
103#define ACR1_MODE (ACR_BA(CONFIG_RAMBASE)+ACR_ADMSK(CONFIG_RAMSIZE)+ \
104 ACR_ENABLE+ACR_SUPER+ACR_SP+ACR_CM_WT)
105#endif
101#define ACR2_MODE 0 106#define ACR2_MODE 0
102#define ACR3_MODE (ACR_BA(CONFIG_RAMBASE)+ACR_ADMSK(CONFIG_RAMSIZE)+ \ 107#define ACR3_MODE (ACR_BA(CONFIG_RAMBASE)+ACR_ADMSK(CONFIG_RAMSIZE)+ \
103 ACR_ENABLE+ACR_SUPER+ACR_SP) 108 ACR_ENABLE+ACR_SUPER+ACR_SP)
diff --git a/arch/m68k/include/asm/mcfgpio.h b/arch/m68k/include/asm/mcfgpio.h
index fa1059f50dfc..c41ebf45f1d0 100644
--- a/arch/m68k/include/asm/mcfgpio.h
+++ b/arch/m68k/include/asm/mcfgpio.h
@@ -104,7 +104,7 @@ static inline void gpio_free(unsigned gpio)
104#if defined(CONFIG_M5206) || defined(CONFIG_M5206e) || \ 104#if defined(CONFIG_M5206) || defined(CONFIG_M5206e) || \
105 defined(CONFIG_M520x) || defined(CONFIG_M523x) || \ 105 defined(CONFIG_M520x) || defined(CONFIG_M523x) || \
106 defined(CONFIG_M527x) || defined(CONFIG_M528x) || \ 106 defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
107 defined(CONFIG_M532x) || defined(CONFIG_M54xx) || \ 107 defined(CONFIG_M53xx) || defined(CONFIG_M54xx) || \
108 defined(CONFIG_M5441x) 108 defined(CONFIG_M5441x)
109 109
110/* These parts have GPIO organized by 8 bit ports */ 110/* These parts have GPIO organized by 8 bit ports */
@@ -139,7 +139,7 @@ static inline void gpio_free(unsigned gpio)
139 139
140#if defined(CONFIG_M520x) || defined(CONFIG_M523x) || \ 140#if defined(CONFIG_M520x) || defined(CONFIG_M523x) || \
141 defined(CONFIG_M527x) || defined(CONFIG_M528x) || \ 141 defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
142 defined(CONFIG_M532x) || defined(CONFIG_M5441x) 142 defined(CONFIG_M53xx) || defined(CONFIG_M5441x)
143/* 143/*
144 * These parts have an 'Edge' Port module (external interrupt/GPIO) which uses 144 * These parts have an 'Edge' Port module (external interrupt/GPIO) which uses
145 * read-modify-write to change an output and a GPIO module which has separate 145 * read-modify-write to change an output and a GPIO module which has separate
@@ -195,7 +195,7 @@ static inline u32 __mcfgpio_ppdr(unsigned gpio)
195 return MCFSIM2_GPIO1READ; 195 return MCFSIM2_GPIO1READ;
196#elif defined(CONFIG_M520x) || defined(CONFIG_M523x) || \ 196#elif defined(CONFIG_M520x) || defined(CONFIG_M523x) || \
197 defined(CONFIG_M527x) || defined(CONFIG_M528x) || \ 197 defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
198 defined(CONFIG_M532x) || defined(CONFIG_M5441x) 198 defined(CONFIG_M53xx) || defined(CONFIG_M5441x)
199#if !defined(CONFIG_M5441x) 199#if !defined(CONFIG_M5441x)
200 if (gpio < 8) 200 if (gpio < 8)
201 return MCFEPORT_EPPDR; 201 return MCFEPORT_EPPDR;
@@ -237,7 +237,7 @@ static inline u32 __mcfgpio_podr(unsigned gpio)
237 return MCFSIM2_GPIO1WRITE; 237 return MCFSIM2_GPIO1WRITE;
238#elif defined(CONFIG_M520x) || defined(CONFIG_M523x) || \ 238#elif defined(CONFIG_M520x) || defined(CONFIG_M523x) || \
239 defined(CONFIG_M527x) || defined(CONFIG_M528x) || \ 239 defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
240 defined(CONFIG_M532x) || defined(CONFIG_M5441x) 240 defined(CONFIG_M53xx) || defined(CONFIG_M5441x)
241#if !defined(CONFIG_M5441x) 241#if !defined(CONFIG_M5441x)
242 if (gpio < 8) 242 if (gpio < 8)
243 return MCFEPORT_EPDR; 243 return MCFEPORT_EPDR;
@@ -279,7 +279,7 @@ static inline u32 __mcfgpio_pddr(unsigned gpio)
279 return MCFSIM2_GPIO1ENABLE; 279 return MCFSIM2_GPIO1ENABLE;
280#elif defined(CONFIG_M520x) || defined(CONFIG_M523x) || \ 280#elif defined(CONFIG_M520x) || defined(CONFIG_M523x) || \
281 defined(CONFIG_M527x) || defined(CONFIG_M528x) || \ 281 defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
282 defined(CONFIG_M532x) || defined(CONFIG_M5441x) 282 defined(CONFIG_M53xx) || defined(CONFIG_M5441x)
283#if !defined(CONFIG_M5441x) 283#if !defined(CONFIG_M5441x)
284 if (gpio < 8) 284 if (gpio < 8)
285 return MCFEPORT_EPDDR; 285 return MCFEPORT_EPDDR;
diff --git a/arch/m68k/include/asm/mcfsim.h b/arch/m68k/include/asm/mcfsim.h
index a04fd9b2714c..bc867de8a1e9 100644
--- a/arch/m68k/include/asm/mcfsim.h
+++ b/arch/m68k/include/asm/mcfsim.h
@@ -36,8 +36,8 @@
36#elif defined(CONFIG_M5307) 36#elif defined(CONFIG_M5307)
37#include <asm/m5307sim.h> 37#include <asm/m5307sim.h>
38#include <asm/mcfintc.h> 38#include <asm/mcfintc.h>
39#elif defined(CONFIG_M532x) 39#elif defined(CONFIG_M53xx)
40#include <asm/m532xsim.h> 40#include <asm/m53xxsim.h>
41#elif defined(CONFIG_M5407) 41#elif defined(CONFIG_M5407)
42#include <asm/m5407sim.h> 42#include <asm/m5407sim.h>
43#include <asm/mcfintc.h> 43#include <asm/mcfintc.h>
diff --git a/arch/m68k/include/asm/mcftimer.h b/arch/m68k/include/asm/mcftimer.h
index da2fa43c2e45..089f0f150bbf 100644
--- a/arch/m68k/include/asm/mcftimer.h
+++ b/arch/m68k/include/asm/mcftimer.h
@@ -19,7 +19,7 @@
19#define MCFTIMER_TRR 0x04 /* Timer Reference (r/w) */ 19#define MCFTIMER_TRR 0x04 /* Timer Reference (r/w) */
20#define MCFTIMER_TCR 0x08 /* Timer Capture reg (r/w) */ 20#define MCFTIMER_TCR 0x08 /* Timer Capture reg (r/w) */
21#define MCFTIMER_TCN 0x0C /* Timer Counter reg (r/w) */ 21#define MCFTIMER_TCN 0x0C /* Timer Counter reg (r/w) */
22#if defined(CONFIG_M532x) || defined(CONFIG_M5441x) 22#if defined(CONFIG_M53xx) || defined(CONFIG_M5441x)
23#define MCFTIMER_TER 0x03 /* Timer Event reg (r/w) */ 23#define MCFTIMER_TER 0x03 /* Timer Event reg (r/w) */
24#else 24#else
25#define MCFTIMER_TER 0x11 /* Timer Event reg (r/w) */ 25#define MCFTIMER_TER 0x11 /* Timer Event reg (r/w) */
diff --git a/arch/m68k/platform/coldfire/Makefile b/arch/m68k/platform/coldfire/Makefile
index 02591a109f8c..68f0fac60099 100644
--- a/arch/m68k/platform/coldfire/Makefile
+++ b/arch/m68k/platform/coldfire/Makefile
@@ -25,7 +25,7 @@ obj-$(CONFIG_M527x) += m527x.o pit.o intc-2.o reset.o
25obj-$(CONFIG_M5272) += m5272.o intc-5272.o timers.o 25obj-$(CONFIG_M5272) += m5272.o intc-5272.o timers.o
26obj-$(CONFIG_M528x) += m528x.o pit.o intc-2.o reset.o 26obj-$(CONFIG_M528x) += m528x.o pit.o intc-2.o reset.o
27obj-$(CONFIG_M5307) += m5307.o timers.o intc.o reset.o 27obj-$(CONFIG_M5307) += m5307.o timers.o intc.o reset.o
28obj-$(CONFIG_M532x) += m532x.o timers.o intc-simr.o reset.o 28obj-$(CONFIG_M53xx) += m53xx.o timers.o intc-simr.o reset.o
29obj-$(CONFIG_M5407) += m5407.o timers.o intc.o reset.o 29obj-$(CONFIG_M5407) += m5407.o timers.o intc.o reset.o
30obj-$(CONFIG_M54xx) += m54xx.o sltimers.o intc-2.o 30obj-$(CONFIG_M54xx) += m54xx.o sltimers.o intc-2.o
31obj-$(CONFIG_M5441x) += m5441x.o pit.o intc-simr.o reset.o 31obj-$(CONFIG_M5441x) += m5441x.o pit.o intc-simr.o reset.o
diff --git a/arch/m68k/platform/coldfire/m532x.c b/arch/m68k/platform/coldfire/m53xx.c
index 7951d1d43357..5286f98fbed0 100644
--- a/arch/m68k/platform/coldfire/m532x.c
+++ b/arch/m68k/platform/coldfire/m53xx.c
@@ -1,7 +1,7 @@
1/***************************************************************************/ 1/***************************************************************************/
2 2
3/* 3/*
4 * linux/arch/m68knommu/platform/532x/config.c 4 * m53xx.c -- platform support for ColdFire 53xx based boards
5 * 5 *
6 * Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com) 6 * Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com)
7 * Copyright (C) 2000, Lineo (www.lineo.com) 7 * Copyright (C) 2000, Lineo (www.lineo.com)
@@ -118,7 +118,8 @@ static struct clk * const enable_clks[] __initconst = {
118 &__clk_0_24, /* mcfuart.0 */ 118 &__clk_0_24, /* mcfuart.0 */
119 &__clk_0_25, /* mcfuart.1 */ 119 &__clk_0_25, /* mcfuart.1 */
120 &__clk_0_26, /* mcfuart.2 */ 120 &__clk_0_26, /* mcfuart.2 */
121 121 &__clk_0_28, /* mcftmr.0 */
122 &__clk_0_29, /* mcftmr.1 */
122 &__clk_0_32, /* mcfpit.0 */ 123 &__clk_0_32, /* mcfpit.0 */
123 &__clk_0_33, /* mcfpit.1 */ 124 &__clk_0_33, /* mcfpit.1 */
124 &__clk_0_37, /* mcfeport.0 */ 125 &__clk_0_37, /* mcfeport.0 */
@@ -134,8 +135,6 @@ static struct clk * const disable_clks[] __initconst = {
134 &__clk_0_17, /* edma */ 135 &__clk_0_17, /* edma */
135 &__clk_0_22, /* mcfi2c.0 */ 136 &__clk_0_22, /* mcfi2c.0 */
136 &__clk_0_23, /* mcfqspi.0 */ 137 &__clk_0_23, /* mcfqspi.0 */
137 &__clk_0_28, /* mcftmr.0 */
138 &__clk_0_29, /* mcftmr.1 */
139 &__clk_0_30, /* mcftmr.2 */ 138 &__clk_0_30, /* mcftmr.2 */
140 &__clk_0_31, /* mcftmr.3 */ 139 &__clk_0_31, /* mcftmr.3 */
141 &__clk_0_34, /* mcfpit.2 */ 140 &__clk_0_34, /* mcfpit.2 */
@@ -153,7 +152,7 @@ static struct clk * const disable_clks[] __initconst = {
153}; 152};
154 153
155 154
156static void __init m532x_clk_init(void) 155static void __init m53xx_clk_init(void)
157{ 156{
158 unsigned i; 157 unsigned i;
159 158
@@ -169,7 +168,7 @@ static void __init m532x_clk_init(void)
169 168
170#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) 169#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
171 170
172static void __init m532x_qspi_init(void) 171static void __init m53xx_qspi_init(void)
173{ 172{
174 /* setup QSPS pins for QSPI with gpio CS control */ 173 /* setup QSPS pins for QSPI with gpio CS control */
175 writew(0x01f0, MCFGPIO_PAR_QSPI); 174 writew(0x01f0, MCFGPIO_PAR_QSPI);
@@ -179,7 +178,7 @@ static void __init m532x_qspi_init(void)
179 178
180/***************************************************************************/ 179/***************************************************************************/
181 180
182static void __init m532x_uarts_init(void) 181static void __init m53xx_uarts_init(void)
183{ 182{
184 /* UART GPIO initialization */ 183 /* UART GPIO initialization */
185 writew(readw(MCFGPIO_PAR_UART) | 0x0FFF, MCFGPIO_PAR_UART); 184 writew(readw(MCFGPIO_PAR_UART) | 0x0FFF, MCFGPIO_PAR_UART);
@@ -187,7 +186,7 @@ static void __init m532x_uarts_init(void)
187 186
188/***************************************************************************/ 187/***************************************************************************/
189 188
190static void __init m532x_fec_init(void) 189static void __init m53xx_fec_init(void)
191{ 190{
192 u8 v; 191 u8 v;
193 192
@@ -217,11 +216,11 @@ void __init config_BSP(char *commandp, int size)
217 } 216 }
218#endif 217#endif
219 mach_sched_init = hw_timer_init; 218 mach_sched_init = hw_timer_init;
220 m532x_clk_init(); 219 m53xx_clk_init();
221 m532x_uarts_init(); 220 m53xx_uarts_init();
222 m532x_fec_init(); 221 m53xx_fec_init();
223#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) 222#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
224 m532x_qspi_init(); 223 m53xx_qspi_init();
225#endif 224#endif
226 225
227#ifdef CONFIG_BDM_DISABLE 226#ifdef CONFIG_BDM_DISABLE
diff --git a/arch/m68k/platform/coldfire/timers.c b/arch/m68k/platform/coldfire/timers.c
index 51f6d2af807f..d06068e45764 100644
--- a/arch/m68k/platform/coldfire/timers.c
+++ b/arch/m68k/platform/coldfire/timers.c
@@ -36,7 +36,7 @@
36 */ 36 */
37void coldfire_profile_init(void); 37void coldfire_profile_init(void);
38 38
39#if defined(CONFIG_M532x) || defined(CONFIG_M5441x) 39#if defined(CONFIG_M53xx) || defined(CONFIG_M5441x)
40#define __raw_readtrr __raw_readl 40#define __raw_readtrr __raw_readl
41#define __raw_writetrr __raw_writel 41#define __raw_writetrr __raw_writel
42#else 42#else