diff options
Diffstat (limited to 'arch/m68k/platform')
-rw-r--r-- | arch/m68k/platform/coldfire/Makefile | 2 | ||||
-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.c | 2 |
3 files changed, 13 insertions, 14 deletions
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 | |||
25 | obj-$(CONFIG_M5272) += m5272.o intc-5272.o timers.o | 25 | obj-$(CONFIG_M5272) += m5272.o intc-5272.o timers.o |
26 | obj-$(CONFIG_M528x) += m528x.o pit.o intc-2.o reset.o | 26 | obj-$(CONFIG_M528x) += m528x.o pit.o intc-2.o reset.o |
27 | obj-$(CONFIG_M5307) += m5307.o timers.o intc.o reset.o | 27 | obj-$(CONFIG_M5307) += m5307.o timers.o intc.o reset.o |
28 | obj-$(CONFIG_M532x) += m532x.o timers.o intc-simr.o reset.o | 28 | obj-$(CONFIG_M53xx) += m53xx.o timers.o intc-simr.o reset.o |
29 | obj-$(CONFIG_M5407) += m5407.o timers.o intc.o reset.o | 29 | obj-$(CONFIG_M5407) += m5407.o timers.o intc.o reset.o |
30 | obj-$(CONFIG_M54xx) += m54xx.o sltimers.o intc-2.o | 30 | obj-$(CONFIG_M54xx) += m54xx.o sltimers.o intc-2.o |
31 | obj-$(CONFIG_M5441x) += m5441x.o pit.o intc-simr.o reset.o | 31 | obj-$(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 | ||
156 | static void __init m532x_clk_init(void) | 155 | static 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 | ||
172 | static void __init m532x_qspi_init(void) | 171 | static 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 | ||
182 | static void __init m532x_uarts_init(void) | 181 | static 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 | ||
190 | static void __init m532x_fec_init(void) | 189 | static 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 | */ |
37 | void coldfire_profile_init(void); | 37 | void 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 |