-
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.
m68k: amiga - Zorro host bridge platform device conversion
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
- Loading branch information
Geert Uytterhoeven
committed
May 17, 2010
1 parent
bf54a2b
commit 0d30546
Showing
5 changed files
with
190 additions
and
128 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,58 @@ | ||
| /* | ||
| * 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 */ |
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.