Skip to content

Commit 833ae40

Browse files
committed
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68knommu fixes from Greg Ungerer: "Just a small collection of cleanups and fixes this time, no big changes. The most interresting are to make the m68k and m68knommu consistently use CONFIG_IOMAP, clean out some unused board config options and flush the cache on signal stack creation" * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68k: remove 16 unused boards in Kconfig.machine m68k: define 'VM_DATA_DEFAULT_FLAGS' no matter whether has 'NOMMU' or not m68knommu: user generic iomap to support ioread*/iowrite* m68k/coldfire: flush cache when creating the signal stack frame m68knommu: Mark functions only called from setup_arch() __init
2 parents 20e029d + c065edd commit 833ae40

File tree

12 files changed

+27
-147
lines changed

12 files changed

+27
-147
lines changed

arch/m68k/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ config M68K
1111
select VIRT_TO_BUS
1212
select ARCH_HAVE_NMI_SAFE_CMPXCHG if RMW_INSNS
1313
select GENERIC_CPU_DEVICES
14+
select GENERIC_IOMAP
1415
select GENERIC_STRNCPY_FROM_USER if MMU
1516
select GENERIC_STRNLEN_USER if MMU
1617
select FPU if MMU
@@ -72,7 +73,6 @@ source "kernel/Kconfig.freezer"
7273
config MMU
7374
bool "MMU-based Paged Memory Management Support"
7475
default y
75-
select GENERIC_IOMAP
7676
help
7777
Select if you want MMU-based virtualised addressing space
7878
support by paged memory management. If unsure, say 'Y'.

arch/m68k/Kconfig.machine

Lines changed: 0 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,6 @@ config XCOPILOT_BUGS
150150
help
151151
Support the bugs of Xcopilot.
152152

153-
config UC5272
154-
bool "Arcturus Networks uC5272 dimm board support"
155-
depends on M5272
156-
help
157-
Support for the Arcturus Networks uC5272 dimm board.
158-
159-
config UC5282
160-
bool "Arcturus Networks uC5282 board support"
161-
depends on M528x
162-
help
163-
Support for the Arcturus Networks uC5282 dimm board.
164-
165153
config UCSIMM
166154
bool "uCsimm module support"
167155
depends on M68EZ328
@@ -205,23 +193,15 @@ config UCQUICC
205193
help
206194
Support for the Lineo uCquicc board.
207195

208-
config ARNEWSH
209-
bool
210-
211196
config ARN5206
212197
bool "Arnewsh 5206 board support"
213198
depends on M5206
214-
select ARNEWSH
215199
help
216200
Support for the Arnewsh 5206 board.
217201

218-
config FREESCALE
219-
bool
220-
221202
config M5206eC3
222203
bool "Motorola M5206eC3 board support"
223204
depends on M5206e
224-
select FREESCALE
225205
help
226206
Support for the Motorola M5206eC3 board.
227207

@@ -231,88 +211,24 @@ config ELITE
231211
help
232212
Support for the Motorola M5206eLITE board.
233213

234-
config M5208EVB
235-
bool "Freescale M5208EVB board support"
236-
depends on M520x
237-
select FREESCALE
238-
help
239-
Support for the Freescale Coldfire M5208EVB.
240-
241214
config M5235EVB
242215
bool "Freescale M5235EVB support"
243216
depends on M523x
244-
select FREESCALE
245217
help
246218
Support for the Freescale M5235EVB board.
247219

248220
config M5249C3
249221
bool "Motorola M5249C3 board support"
250222
depends on M5249
251-
select FREESCALE
252223
help
253224
Support for the Motorola M5249C3 board.
254225

255-
config M5271EVB
256-
bool "Freescale (Motorola) M5271EVB board support"
257-
depends on M5271
258-
select FREESCALE
259-
help
260-
Support for the Freescale (Motorola) M5271EVB board.
261-
262-
config M5275EVB
263-
bool "Freescale (Motorola) M5275EVB board support"
264-
depends on M5275
265-
select FREESCALE
266-
help
267-
Support for the Freescale (Motorola) M5275EVB board.
268-
269226
config M5272C3
270227
bool "Motorola M5272C3 board support"
271228
depends on M5272
272-
select FREESCALE
273229
help
274230
Support for the Motorola M5272C3 board.
275231

276-
config senTec
277-
bool
278-
279-
config COBRA5272
280-
bool "senTec COBRA5272 board support"
281-
depends on M5272
282-
select senTec
283-
help
284-
Support for the senTec COBRA5272 board.
285-
286-
config AVNET
287-
bool
288-
289-
config AVNET5282
290-
bool "Avnet 5282 board support"
291-
depends on M528x
292-
select AVNET
293-
help
294-
Support for the Avnet 5282 board.
295-
296-
config M5282EVB
297-
bool "Motorola M5282EVB board support"
298-
depends on M528x
299-
select FREESCALE
300-
help
301-
Support for the Motorola M5282EVB board.
302-
303-
config COBRA5282
304-
bool "senTec COBRA5282 board support"
305-
depends on M528x
306-
select senTec
307-
help
308-
Support for the senTec COBRA5282 board.
309-
310-
config SOM5282EM
311-
bool "EMAC.Inc SOM5282EM board support"
312-
depends on M528x
313-
help
314-
Support for the EMAC.Inc SOM5282EM module.
315-
316232
config WILDFIRE
317233
bool "Intec Automation Inc. WildFire board support"
318234
depends on M528x
@@ -328,14 +244,12 @@ config WILDFIREMOD
328244
config ARN5307
329245
bool "Arnewsh 5307 board support"
330246
depends on M5307
331-
select ARNEWSH
332247
help
333248
Support for the Arnewsh 5307 board.
334249

335250
config M5307C3
336251
bool "Motorola M5307C3 board support"
337252
depends on M5307
338-
select FREESCALE
339253
help
340254
Support for the Motorola M5307C3 board.
341255

@@ -345,30 +259,9 @@ config SECUREEDGEMP3
345259
help
346260
Support for the SnapGear SecureEdge/MP3 platform.
347261

348-
config M5329EVB
349-
bool "Freescale (Motorola) M5329EVB board support"
350-
depends on M532x
351-
select FREESCALE
352-
help
353-
Support for the Freescale (Motorola) M5329EVB board.
354-
355-
config COBRA5329
356-
bool "senTec COBRA5329 board support"
357-
depends on M532x
358-
help
359-
Support for the senTec COBRA5329 board.
360-
361-
config M5373EVB
362-
bool "Freescale M5373EVB board support"
363-
depends on M537x
364-
select FREESCALE
365-
help
366-
Support for the Freescale M5373EVB board.
367-
368262
config M5407C3
369263
bool "Motorola M5407C3 board support"
370264
depends on M5407
371-
select FREESCALE
372265
help
373266
Support for the Motorola M5407C3 board.
374267

@@ -402,39 +295,12 @@ config NETtel
402295
help
403296
Support for the SnapGear NETtel/SecureEdge/SnapGear boards.
404297

405-
config SNAPGEAR
406-
bool "SnapGear router board support"
407-
depends on NETtel
408-
help
409-
Special additional support for SnapGear router boards.
410-
411-
config SNEHA
412-
bool
413-
414-
config CPU16B
415-
bool "Sneha Technologies S.L. Sarasvati board support"
416-
depends on M5272
417-
select SNEHA
418-
help
419-
Support for the SNEHA CPU16B board.
420-
421298
config MOD5272
422299
bool "Netburner MOD-5272 board support"
423300
depends on M5272
424301
help
425302
Support for the Netburner MOD-5272 board.
426303

427-
config SAVANT
428-
bool
429-
430-
config SAVANTrosie1
431-
bool "Savant Rosie1 board support"
432-
depends on M523x
433-
select SAVANT
434-
help
435-
Support for the Savant Rosie1 board.
436-
437-
438304
if !MMU || COLDFIRE
439305

440306
comment "Machine Options"

arch/m68k/include/asm/io_no.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#ifdef __KERNEL__
55

66
#include <asm/virtconvert.h>
7+
#include <asm-generic/iomap.h>
78

89
/*
910
* These are for ISA/PCI shared memory _only_ and should never be used

arch/m68k/include/asm/page.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ extern unsigned long _ramend;
4848
#include <asm/page_no.h>
4949
#endif
5050

51+
#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
52+
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
53+
5154
#include <asm-generic/getorder.h>
5255

5356
#endif /* _M68K_PAGE_H */

arch/m68k/include/asm/page_mm.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,4 @@ static inline __attribute_const__ int __virt_to_node_shift(void)
173173

174174
#endif /* __ASSEMBLY__ */
175175

176-
#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
177-
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
178-
179176
#endif /* _M68K_PAGE_MM_H */

arch/m68k/kernel/setup_no.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void (*mach_power_off)(void);
118118
*
119119
* Returns:
120120
*/
121-
void parse_uboot_commandline(char *commandp, int size)
121+
static void __init parse_uboot_commandline(char *commandp, int size)
122122
{
123123
extern unsigned long _init_sp;
124124
unsigned long *sp;

arch/m68k/kernel/signal.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#include <asm/pgtable.h>
5151
#include <asm/traps.h>
5252
#include <asm/ucontext.h>
53+
#include <asm/cacheflush.h>
5354

5455
#ifdef CONFIG_MMU
5556

@@ -181,6 +182,13 @@ static inline void push_cache (unsigned long vaddr)
181182
asm volatile ("movec %0,%%caar\n\t"
182183
"movec %1,%%cacr"
183184
: : "r" (vaddr + 4), "r" (temp));
185+
} else {
186+
/* CPU_IS_COLDFIRE */
187+
#if defined(CONFIG_CACHE_COPYBACK)
188+
flush_cf_dcache(0, DCACHE_MAX_ADDR);
189+
#endif
190+
/* Invalidate instruction cache for the pushed bytes */
191+
clear_cf_icache(vaddr, vaddr + 8);
184192
}
185193
}
186194

arch/m68k/platform/68000/m68328.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
/***************************************************************************/
1717

18+
#include <linux/init.h>
1819
#include <linux/types.h>
1920
#include <linux/kernel.h>
2021
#include <linux/rtc.h>
@@ -42,7 +43,7 @@ void m68328_reset (void)
4243

4344
/***************************************************************************/
4445

45-
void config_BSP(char *command, int len)
46+
void __init config_BSP(char *command, int len)
4647
{
4748
printk(KERN_INFO "\n68328 support D. Jeff Dionne <jeff@uclinux.org>\n");
4849
printk(KERN_INFO "68328 support Kenneth Albanowski <kjahds@kjshds.com>\n");

arch/m68k/platform/68000/m68EZ328.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
/***************************************************************************/
1515

16+
#include <linux/init.h>
1617
#include <linux/types.h>
1718
#include <linux/kernel.h>
1819
#include <linux/rtc.h>
@@ -52,7 +53,7 @@ _bsc1(unsigned char *, gethwaddr, int, a)
5253
_bsc1(char *, getbenv, char *, a)
5354
#endif
5455

55-
void config_BSP(char *command, int len)
56+
void __init config_BSP(char *command, int len)
5657
{
5758
unsigned char *p;
5859

arch/m68k/platform/68000/m68VZ328.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
/***************************************************************************/
1616

17+
#include <linux/init.h>
1718
#include <linux/types.h>
1819
#include <linux/kernel.h>
1920
#include <linux/kd.h>
@@ -59,7 +60,7 @@ static void m68vz328_reset(void)
5960
);
6061
}
6162

62-
static void init_hardware(char *command, int size)
63+
static void __init init_hardware(char *command, int size)
6364
{
6465
#ifdef CONFIG_DIRECT_IO_ACCESS
6566
SCR = 0x10; /* allow user access to internal registers */
@@ -145,7 +146,7 @@ _bsc0(char *, getserialnum)
145146
_bsc1(unsigned char *, gethwaddr, int, a)
146147
_bsc1(char *, getbenv, char *, a)
147148

148-
static void init_hardware(char *command, int size)
149+
static void __init init_hardware(char *command, int size)
149150
{
150151
char *p;
151152

@@ -167,15 +168,15 @@ static void m68vz328_reset(void)
167168
{
168169
}
169170

170-
static void init_hardware(char *command, int size)
171+
static void __init init_hardware(char *command, int size)
171172
{
172173
}
173174

174175
/***************************************************************************/
175176
#endif
176177
/***************************************************************************/
177178

178-
void config_BSP(char *command, int size)
179+
void __init config_BSP(char *command, int size)
179180
{
180181
printk(KERN_INFO "68VZ328 DragonBallVZ support (c) 2001 Lineo, Inc.\n");
181182

0 commit comments

Comments
 (0)