diff options
-rw-r--r-- | arch/arm/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-shark/core.c | 18 | ||||
-rw-r--r-- | arch/arm/mach-shark/include/mach/debug-macro.S | 7 | ||||
-rw-r--r-- | arch/arm/mach-shark/include/mach/entry-macro.S | 3 | ||||
-rw-r--r-- | arch/arm/mach-shark/include/mach/io.h | 18 | ||||
-rw-r--r-- | arch/arm/mach-shark/pci.c | 5 |
6 files changed, 11 insertions, 41 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5d376283b7a4..3dfc555219b5 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -869,7 +869,6 @@ config ARCH_SHARK | |||
869 | select PCI | 869 | select PCI |
870 | select ARCH_USES_GETTIMEOFFSET | 870 | select ARCH_USES_GETTIMEOFFSET |
871 | select NEED_MACH_MEMORY_H | 871 | select NEED_MACH_MEMORY_H |
872 | select NEED_MACH_IO_H | ||
873 | help | 872 | help |
874 | Support for the StrongARM based Digital DNARD machine, also known | 873 | Support for the StrongARM based Digital DNARD machine, also known |
875 | as "Shark" (<http://www.shark-linux.de/shark.html>). | 874 | as "Shark" (<http://www.shark-linux.de/shark.html>). |
diff --git a/arch/arm/mach-shark/core.c b/arch/arm/mach-shark/core.c index 2704bcd869cd..d35b94ef73b7 100644 --- a/arch/arm/mach-shark/core.c +++ b/arch/arm/mach-shark/core.c | |||
@@ -21,9 +21,6 @@ | |||
21 | #include <asm/mach/arch.h> | 21 | #include <asm/mach/arch.h> |
22 | #include <asm/mach/time.h> | 22 | #include <asm/mach/time.h> |
23 | 23 | ||
24 | #define IO_BASE 0xe0000000 | ||
25 | #define IO_SIZE 0x08000000 | ||
26 | #define IO_START 0x40000000 | ||
27 | #define ROMCARD_SIZE 0x08000000 | 24 | #define ROMCARD_SIZE 0x08000000 |
28 | #define ROMCARD_START 0x10000000 | 25 | #define ROMCARD_START 0x10000000 |
29 | 26 | ||
@@ -104,20 +101,6 @@ arch_initcall(shark_init); | |||
104 | 101 | ||
105 | extern void shark_init_irq(void); | 102 | extern void shark_init_irq(void); |
106 | 103 | ||
107 | static struct map_desc shark_io_desc[] __initdata = { | ||
108 | { | ||
109 | .virtual = IO_BASE, | ||
110 | .pfn = __phys_to_pfn(IO_START), | ||
111 | .length = IO_SIZE, | ||
112 | .type = MT_DEVICE | ||
113 | } | ||
114 | }; | ||
115 | |||
116 | static void __init shark_map_io(void) | ||
117 | { | ||
118 | iotable_init(shark_io_desc, ARRAY_SIZE(shark_io_desc)); | ||
119 | } | ||
120 | |||
121 | #define IRQ_TIMER 0 | 104 | #define IRQ_TIMER 0 |
122 | #define HZ_TIME ((1193180 + HZ/2) / HZ) | 105 | #define HZ_TIME ((1193180 + HZ/2) / HZ) |
123 | 106 | ||
@@ -158,7 +141,6 @@ static void shark_init_early(void) | |||
158 | MACHINE_START(SHARK, "Shark") | 141 | MACHINE_START(SHARK, "Shark") |
159 | /* Maintainer: Alexander Schulz */ | 142 | /* Maintainer: Alexander Schulz */ |
160 | .atag_offset = 0x3000, | 143 | .atag_offset = 0x3000, |
161 | .map_io = shark_map_io, | ||
162 | .init_early = shark_init_early, | 144 | .init_early = shark_init_early, |
163 | .init_irq = shark_init_irq, | 145 | .init_irq = shark_init_irq, |
164 | .timer = &shark_timer, | 146 | .timer = &shark_timer, |
diff --git a/arch/arm/mach-shark/include/mach/debug-macro.S b/arch/arm/mach-shark/include/mach/debug-macro.S index 20eb2bf2a42b..d129119a3f69 100644 --- a/arch/arm/mach-shark/include/mach/debug-macro.S +++ b/arch/arm/mach-shark/include/mach/debug-macro.S | |||
@@ -12,9 +12,10 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | .macro addruart, rp, rv, tmp | 14 | .macro addruart, rp, rv, tmp |
15 | mov \rp, #0xe0000000 | 15 | mov \rp, #0x3f8 |
16 | orr \rp, \rp, #0x000003f8 | 16 | orr \rv, \rp, #0xfe000000 |
17 | mov \rv, \rp | 17 | orr \rv, \rv, #0x00e00000 |
18 | orr \rp, \rp, #0x40000000 | ||
18 | .endm | 19 | .endm |
19 | 20 | ||
20 | .macro senduart,rd,rx | 21 | .macro senduart,rd,rx |
diff --git a/arch/arm/mach-shark/include/mach/entry-macro.S b/arch/arm/mach-shark/include/mach/entry-macro.S index 5901b09fc96a..c9e49f049532 100644 --- a/arch/arm/mach-shark/include/mach/entry-macro.S +++ b/arch/arm/mach-shark/include/mach/entry-macro.S | |||
@@ -8,7 +8,8 @@ | |||
8 | * warranty of any kind, whether express or implied. | 8 | * warranty of any kind, whether express or implied. |
9 | */ | 9 | */ |
10 | .macro get_irqnr_preamble, base, tmp | 10 | .macro get_irqnr_preamble, base, tmp |
11 | mov \base, #0xe0000000 | 11 | mov \base, #0xfe000000 |
12 | orr \base, \base, #0x00e00000 | ||
12 | .endm | 13 | .endm |
13 | 14 | ||
14 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp | 15 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp |
diff --git a/arch/arm/mach-shark/include/mach/io.h b/arch/arm/mach-shark/include/mach/io.h deleted file mode 100644 index 1a45fc01ff1d..000000000000 --- a/arch/arm/mach-shark/include/mach/io.h +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-shark/include/mach/io.h | ||
3 | * | ||
4 | * by Alexander Schulz | ||
5 | * | ||
6 | * derived from: | ||
7 | * arch/arm/mach-ebsa110/include/mach/io.h | ||
8 | * Copyright (C) 1997,1998 Russell King | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_ARM_ARCH_IO_H | ||
12 | #define __ASM_ARM_ARCH_IO_H | ||
13 | |||
14 | #define IO_SPACE_LIMIT 0xffffffff | ||
15 | |||
16 | #define __io(a) ((void __iomem *)(0xe0000000 + (a))) | ||
17 | |||
18 | #endif | ||
diff --git a/arch/arm/mach-shark/pci.c b/arch/arm/mach-shark/pci.c index 9089407d5326..b8b4ab323a3e 100644 --- a/arch/arm/mach-shark/pci.c +++ b/arch/arm/mach-shark/pci.c | |||
@@ -8,12 +8,15 @@ | |||
8 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
9 | #include <linux/pci.h> | 9 | #include <linux/pci.h> |
10 | #include <linux/init.h> | 10 | #include <linux/init.h> |
11 | #include <linux/io.h> | ||
11 | #include <video/vga.h> | 12 | #include <video/vga.h> |
12 | 13 | ||
13 | #include <asm/irq.h> | 14 | #include <asm/irq.h> |
14 | #include <asm/mach/pci.h> | 15 | #include <asm/mach/pci.h> |
15 | #include <asm/mach-types.h> | 16 | #include <asm/mach-types.h> |
16 | 17 | ||
18 | #define IO_START 0x40000000 | ||
19 | |||
17 | static int __init shark_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | 20 | static int __init shark_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
18 | { | 21 | { |
19 | if (dev->bus->number == 0) | 22 | if (dev->bus->number == 0) |
@@ -44,6 +47,8 @@ static int __init shark_pci_init(void) | |||
44 | pcibios_min_mem = 0x50000000; | 47 | pcibios_min_mem = 0x50000000; |
45 | vga_base = 0xe8000000; | 48 | vga_base = 0xe8000000; |
46 | 49 | ||
50 | pci_ioremap_io(0, IO_START); | ||
51 | |||
47 | pci_common_init(&shark_pci); | 52 | pci_common_init(&shark_pci); |
48 | 53 | ||
49 | return 0; | 54 | return 0; |