diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2006-09-18 18:12:53 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-09-25 05:25:37 -0400 |
commit | 7ae1f7ec525c32db441836ab0ab010b85cb819a2 (patch) | |
tree | 25d87bd43198bdc3868c20cf3e8d44e8e343f0e6 /arch/arm/mach-iop32x | |
parent | 3f7e5815f4b774270e6506962de37af85aa9c830 (diff) |
[ARM] 3818/1: iop3xx: introduce arch/arm/plat-iop for shared iop32x/iop33x code
Introduce the arch/arm/plat-iop directory, for code shared between the
iop32x and iop33x, and move the common memory map setup bits there.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-iop32x')
-rw-r--r-- | arch/arm/mach-iop32x/iq31244-mm.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-iop32x/iq80321-mm.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-iop32x/setup.c | 22 |
3 files changed, 4 insertions, 24 deletions
diff --git a/arch/arm/mach-iop32x/iq31244-mm.c b/arch/arm/mach-iop32x/iq31244-mm.c index ffc6692c95ad..fba22d5d908f 100644 --- a/arch/arm/mach-iop32x/iq31244-mm.c +++ b/arch/arm/mach-iop32x/iq31244-mm.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <asm/page.h> | 21 | #include <asm/page.h> |
22 | 22 | ||
23 | #include <asm/mach/map.h> | 23 | #include <asm/mach/map.h> |
24 | #include <asm/hardware/iop3xx.h> | ||
24 | 25 | ||
25 | 26 | ||
26 | /* | 27 | /* |
@@ -39,7 +40,7 @@ static struct map_desc iq31244_io_desc[] __initdata = { | |||
39 | 40 | ||
40 | void __init iq31244_map_io(void) | 41 | void __init iq31244_map_io(void) |
41 | { | 42 | { |
42 | iop321_map_io(); | 43 | iop3xx_map_io(); |
43 | 44 | ||
44 | iotable_init(iq31244_io_desc, ARRAY_SIZE(iq31244_io_desc)); | 45 | iotable_init(iq31244_io_desc, ARRAY_SIZE(iq31244_io_desc)); |
45 | } | 46 | } |
diff --git a/arch/arm/mach-iop32x/iq80321-mm.c b/arch/arm/mach-iop32x/iq80321-mm.c index 5f702a7ff622..b6a3079ad29e 100644 --- a/arch/arm/mach-iop32x/iq80321-mm.c +++ b/arch/arm/mach-iop32x/iq80321-mm.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <asm/page.h> | 21 | #include <asm/page.h> |
22 | 22 | ||
23 | #include <asm/mach/map.h> | 23 | #include <asm/mach/map.h> |
24 | #include <asm/hardware/iop3xx.h> | ||
24 | 25 | ||
25 | 26 | ||
26 | /* | 27 | /* |
@@ -39,7 +40,7 @@ static struct map_desc iq80321_io_desc[] __initdata = { | |||
39 | 40 | ||
40 | void __init iq80321_map_io(void) | 41 | void __init iq80321_map_io(void) |
41 | { | 42 | { |
42 | iop321_map_io(); | 43 | iop3xx_map_io(); |
43 | 44 | ||
44 | iotable_init(iq80321_io_desc, ARRAY_SIZE(iq80321_io_desc)); | 45 | iotable_init(iq80321_io_desc, ARRAY_SIZE(iq80321_io_desc)); |
45 | } | 46 | } |
diff --git a/arch/arm/mach-iop32x/setup.c b/arch/arm/mach-iop32x/setup.c index 729678799271..48d806474f40 100644 --- a/arch/arm/mach-iop32x/setup.c +++ b/arch/arm/mach-iop32x/setup.c | |||
@@ -32,23 +32,6 @@ | |||
32 | 32 | ||
33 | #define IOP321_UART_XTAL 1843200 | 33 | #define IOP321_UART_XTAL 1843200 |
34 | 34 | ||
35 | /* | ||
36 | * Standard IO mapping for all IOP321 based systems | ||
37 | */ | ||
38 | static struct map_desc iop321_std_desc[] __initdata = { | ||
39 | { /* mem mapped registers */ | ||
40 | .virtual = IOP321_VIRT_MEM_BASE, | ||
41 | .pfn = __phys_to_pfn(IOP321_PHYS_MEM_BASE), | ||
42 | .length = 0x00002000, | ||
43 | .type = MT_DEVICE | ||
44 | }, { /* PCI IO space */ | ||
45 | .virtual = IOP321_PCI_LOWER_IO_VA, | ||
46 | .pfn = __phys_to_pfn(IOP321_PCI_LOWER_IO_PA), | ||
47 | .length = IOP321_PCI_IO_WINDOW_SIZE, | ||
48 | .type = MT_DEVICE | ||
49 | } | ||
50 | }; | ||
51 | |||
52 | #ifdef CONFIG_ARCH_IQ80321 | 35 | #ifdef CONFIG_ARCH_IQ80321 |
53 | #define UARTBASE IQ80321_UART | 36 | #define UARTBASE IQ80321_UART |
54 | #define IRQ_UART IRQ_IQ80321_UART | 37 | #define IRQ_UART IRQ_IQ80321_UART |
@@ -126,11 +109,6 @@ void __init iop32x_init(void) | |||
126 | platform_add_devices(iop32x_devices, | 109 | platform_add_devices(iop32x_devices, |
127 | ARRAY_SIZE(iop32x_devices)); | 110 | ARRAY_SIZE(iop32x_devices)); |
128 | } | 111 | } |
129 | } | ||
130 | |||
131 | void __init iop321_map_io(void) | ||
132 | { | ||
133 | iotable_init(iop321_std_desc, ARRAY_SIZE(iop321_std_desc)); | ||
134 | early_serial_setup(&iop321_serial_ports[0]); | 112 | early_serial_setup(&iop321_serial_ports[0]); |
135 | } | 113 | } |
136 | 114 | ||