-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/geert/linux-m68k * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k: m68k: amiga - Floppy platform device conversion m68k: amiga - Sound platform device conversion m68k: amiga - Frame buffer platform device conversion m68k: amiga - Zorro host bridge platform device conversion m68k: amiga - Zorro bus modalias support platform: Make platform resource input parameters const m68k: invoke oom-killer from page fault serial167: Kill unused variables m68k: Implement generic_find_next_{zero_,}le_bit() m68k: hp300 - Checkpatch cleanup m68k: Remove trailing spaces in messages m68k: Simplify param.h by using <asm-generic/param.h> m68k: Remove BKL from rtc implementations
- Loading branch information
Showing
31 changed files
with
405 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/* | ||
* Copyright (C) 2007-2009 Geert Uytterhoeven | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file COPYING in the main directory of this archive | ||
* for more details. | ||
*/ | ||
|
||
#include <linux/init.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/zorro.h> | ||
|
||
#include <asm/amigahw.h> | ||
|
||
|
||
#ifdef CONFIG_ZORRO | ||
|
||
static const struct resource zorro_resources[] __initconst = { | ||
/* Zorro II regions (on Zorro II/III) */ | ||
{ | ||
.name = "Zorro II exp", | ||
.start = 0x00e80000, | ||
.end = 0x00efffff, | ||
.flags = IORESOURCE_MEM, | ||
}, { | ||
.name = "Zorro II mem", | ||
.start = 0x00200000, | ||
.end = 0x009fffff, | ||
.flags = IORESOURCE_MEM, | ||
}, | ||
/* Zorro III regions (on Zorro III only) */ | ||
{ | ||
.name = "Zorro III exp", | ||
.start = 0xff000000, | ||
.end = 0xffffffff, | ||
.flags = IORESOURCE_MEM, | ||
}, { | ||
.name = "Zorro III cfg", | ||
.start = 0x40000000, | ||
.end = 0x7fffffff, | ||
.flags = IORESOURCE_MEM, | ||
} | ||
}; | ||
|
||
|
||
static int __init amiga_init_bus(void) | ||
{ | ||
if (!MACH_IS_AMIGA || !AMIGAHW_PRESENT(ZORRO)) | ||
return -ENODEV; | ||
|
||
platform_device_register_simple("amiga-zorro", -1, zorro_resources, | ||
AMIGAHW_PRESENT(ZORRO3) ? 4 : 2); | ||
return 0; | ||
} | ||
|
||
subsys_initcall(amiga_init_bus); | ||
|
||
#endif /* CONFIG_ZORRO */ | ||
|
||
|
||
static int __init amiga_init_devices(void) | ||
{ | ||
if (!MACH_IS_AMIGA) | ||
return -ENODEV; | ||
|
||
/* video hardware */ | ||
if (AMIGAHW_PRESENT(AMI_VIDEO)) | ||
platform_device_register_simple("amiga-video", -1, NULL, 0); | ||
|
||
|
||
/* sound hardware */ | ||
if (AMIGAHW_PRESENT(AMI_AUDIO)) | ||
platform_device_register_simple("amiga-audio", -1, NULL, 0); | ||
|
||
|
||
/* storage interfaces */ | ||
if (AMIGAHW_PRESENT(AMI_FLOPPY)) | ||
platform_device_register_simple("amiga-floppy", -1, NULL, 0); | ||
|
||
return 0; | ||
} | ||
|
||
device_initcall(amiga_init_devices); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
extern void hp300_sched_init(irq_handler_t vector); | ||
extern unsigned long hp300_gettimeoffset (void); | ||
|
||
|
||
extern unsigned long hp300_gettimeoffset(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,12 @@ | ||
#ifndef _M68K_PARAM_H | ||
#define _M68K_PARAM_H | ||
|
||
#ifdef __KERNEL__ | ||
# define HZ CONFIG_HZ /* Internal kernel timer frequency */ | ||
# define USER_HZ 100 /* .. some user interfaces are in "ticks" */ | ||
# define CLOCKS_PER_SEC (USER_HZ) /* like times() */ | ||
#endif | ||
|
||
#ifndef HZ | ||
#define HZ 100 | ||
#endif | ||
|
||
#ifdef __uClinux__ | ||
#define EXEC_PAGESIZE 4096 | ||
#else | ||
#define EXEC_PAGESIZE 8192 | ||
#endif | ||
|
||
#ifndef NOGROUP | ||
#define NOGROUP (-1) | ||
#endif | ||
|
||
#define MAXHOSTNAMELEN 64 /* max length of hostname */ | ||
#include <asm-generic/param.h> | ||
|
||
#endif /* _M68K_PARAM_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.