diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2005-10-28 10:18:57 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-10-28 10:18:57 -0400 |
commit | 4835e64a5f44366e97dde9b6e26ede2ec16249da (patch) | |
tree | f9bb1db7e27d86b2cb40612468bca9338b6280eb /arch/arm | |
parent | f70cd65658388ca2a06071bdbd8a5a6beac5aa47 (diff) |
[ARM] 2983/1: Replace map_desc.physical with map_desc.pfn: IOP3xx
Patch from Deepak Saxena
IOP3xx map_desc.pfn conversion
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-iop3xx/iop321-setup.c | 18 | ||||
-rw-r--r-- | arch/arm/mach-iop3xx/iop331-setup.c | 18 | ||||
-rw-r--r-- | arch/arm/mach-iop3xx/iq31244-mm.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-iop3xx/iq80321-mm.c | 10 |
4 files changed, 34 insertions, 22 deletions
diff --git a/arch/arm/mach-iop3xx/iop321-setup.c b/arch/arm/mach-iop3xx/iop321-setup.c index 0f921ba2750c..bb5091223b63 100644 --- a/arch/arm/mach-iop3xx/iop321-setup.c +++ b/arch/arm/mach-iop3xx/iop321-setup.c | |||
@@ -38,13 +38,17 @@ | |||
38 | * Standard IO mapping for all IOP321 based systems | 38 | * Standard IO mapping for all IOP321 based systems |
39 | */ | 39 | */ |
40 | static struct map_desc iop321_std_desc[] __initdata = { | 40 | static struct map_desc iop321_std_desc[] __initdata = { |
41 | /* virtual physical length type */ | 41 | { /* mem mapped registers */ |
42 | 42 | .virtual = IOP321_VIRT_MEM_BASE, | |
43 | /* mem mapped registers */ | 43 | .pfn = __phys_to_pfn(IOP321_PHYS_MEM_BASE), |
44 | { IOP321_VIRT_MEM_BASE, IOP321_PHYS_MEM_BASE, 0x00002000, MT_DEVICE }, | 44 | .length = 0x00002000, |
45 | 45 | .type = MT_DEVICE | |
46 | /* PCI IO space */ | 46 | }, { /* PCI IO space */ |
47 | { IOP321_PCI_LOWER_IO_VA, IOP321_PCI_LOWER_IO_PA, IOP321_PCI_IO_WINDOW_SIZE, MT_DEVICE } | 47 | .virtual = IOP321_PCI_LOWER_IO_VA, |
48 | .pfn = __phys_to_pfn(IOP321_PCI_LOWER_IO_PA), | ||
49 | .length = IOP321_PCI_IO_WINDOW_SIZE, | ||
50 | .type = MT_DEVICE | ||
51 | } | ||
48 | }; | 52 | }; |
49 | 53 | ||
50 | #ifdef CONFIG_ARCH_IQ80321 | 54 | #ifdef CONFIG_ARCH_IQ80321 |
diff --git a/arch/arm/mach-iop3xx/iop331-setup.c b/arch/arm/mach-iop3xx/iop331-setup.c index fc74b722f72f..a2533c3ab42f 100644 --- a/arch/arm/mach-iop3xx/iop331-setup.c +++ b/arch/arm/mach-iop3xx/iop331-setup.c | |||
@@ -37,13 +37,17 @@ | |||
37 | * Standard IO mapping for all IOP331 based systems | 37 | * Standard IO mapping for all IOP331 based systems |
38 | */ | 38 | */ |
39 | static struct map_desc iop331_std_desc[] __initdata = { | 39 | static struct map_desc iop331_std_desc[] __initdata = { |
40 | /* virtual physical length type */ | 40 | { /* mem mapped registers */ |
41 | 41 | .virtual = IOP331_VIRT_MEM_BASE, | |
42 | /* mem mapped registers */ | 42 | .pfn = __phys_to_pfn(IOP331_PHYS_MEM_BASE), |
43 | { IOP331_VIRT_MEM_BASE, IOP331_PHYS_MEM_BASE, 0x00002000, MT_DEVICE }, | 43 | .length = 0x00002000, |
44 | 44 | .type = MT_DEVICE | |
45 | /* PCI IO space */ | 45 | }, { /* PCI IO space */ |
46 | { IOP331_PCI_LOWER_IO_VA, IOP331_PCI_LOWER_IO_PA, IOP331_PCI_IO_WINDOW_SIZE, MT_DEVICE } | 46 | .virtual = IOP331_PCI_LOWER_IO_VA, |
47 | .pfn = __phys_to_pfn(IOP331_PCI_LOWER_IO_PA), | ||
48 | .length = IOP331_PCI_IO_WINDOW_SIZE, | ||
49 | .type = MT_DEVICE | ||
50 | } | ||
47 | }; | 51 | }; |
48 | 52 | ||
49 | static struct uart_port iop331_serial_ports[] = { | 53 | static struct uart_port iop331_serial_ports[] = { |
diff --git a/arch/arm/mach-iop3xx/iq31244-mm.c b/arch/arm/mach-iop3xx/iq31244-mm.c index 55992ab586ba..e874b54eefe3 100644 --- a/arch/arm/mach-iop3xx/iq31244-mm.c +++ b/arch/arm/mach-iop3xx/iq31244-mm.c | |||
@@ -29,10 +29,12 @@ | |||
29 | * We use RedBoot's setup for the onboard devices. | 29 | * We use RedBoot's setup for the onboard devices. |
30 | */ | 30 | */ |
31 | static struct map_desc iq31244_io_desc[] __initdata = { | 31 | static struct map_desc iq31244_io_desc[] __initdata = { |
32 | /* virtual physical length type */ | 32 | { /* on-board devices */ |
33 | 33 | .virtual = IQ31244_UART, | |
34 | /* on-board devices */ | 34 | .pfn = __phys_to_pfn(IQ31244_UART), |
35 | { IQ31244_UART, IQ31244_UART, 0x00100000, MT_DEVICE } | 35 | .length = 0x00100000, |
36 | .type = MT_DEVICE | ||
37 | } | ||
36 | }; | 38 | }; |
37 | 39 | ||
38 | void __init iq31244_map_io(void) | 40 | void __init iq31244_map_io(void) |
diff --git a/arch/arm/mach-iop3xx/iq80321-mm.c b/arch/arm/mach-iop3xx/iq80321-mm.c index bb3e9e5a9aff..d9cac5e1fc3d 100644 --- a/arch/arm/mach-iop3xx/iq80321-mm.c +++ b/arch/arm/mach-iop3xx/iq80321-mm.c | |||
@@ -29,10 +29,12 @@ | |||
29 | * We use RedBoot's setup for the onboard devices. | 29 | * We use RedBoot's setup for the onboard devices. |
30 | */ | 30 | */ |
31 | static struct map_desc iq80321_io_desc[] __initdata = { | 31 | static struct map_desc iq80321_io_desc[] __initdata = { |
32 | /* virtual physical length type */ | 32 | { /* on-board devices */ |
33 | 33 | .virtual = IQ80321_UART, | |
34 | /* on-board devices */ | 34 | .pfn = __phys_to_pfn(IQ80321_UART), |
35 | { IQ80321_UART, IQ80321_UART, 0x00100000, MT_DEVICE } | 35 | .length = 0x00100000, |
36 | .type = MT_DEVICE | ||
37 | } | ||
36 | }; | 38 | }; |
37 | 39 | ||
38 | void __init iq80321_map_io(void) | 40 | void __init iq80321_map_io(void) |