diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2005-10-28 10:19:05 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-10-28 10:19:05 -0400 |
commit | f10083f5a6f4a2735cca3a8c762457272ea66bf0 (patch) | |
tree | fcfe67bcb1b14305ffdad376a2b0ee10377a1916 /arch/arm | |
parent | 92519d82828a93743adc31202927f411601c0d04 (diff) |
[ARM] 2993/1: Replace map_desc.physical with map_desc.pfn: CLPS711x
Patch from Deepak Saxena
CLSP711x 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-clps711x/autcpu12.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/cdb89712.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/ceiva.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/edb7211-mm.c | 30 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/mm.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/p720t.c | 14 |
6 files changed, 61 insertions, 22 deletions
diff --git a/arch/arm/mach-clps711x/autcpu12.c b/arch/arm/mach-clps711x/autcpu12.c index dc73feb1ffb0..43b9423d1440 100644 --- a/arch/arm/mach-clps711x/autcpu12.c +++ b/arch/arm/mach-clps711x/autcpu12.c | |||
@@ -46,10 +46,14 @@ | |||
46 | */ | 46 | */ |
47 | 47 | ||
48 | static struct map_desc autcpu12_io_desc[] __initdata = { | 48 | static struct map_desc autcpu12_io_desc[] __initdata = { |
49 | /* virtual, physical, length, type */ | 49 | /* memory-mapped extra io and CS8900A Ethernet chip */ |
50 | /* memory-mapped extra io and CS8900A Ethernet chip */ | 50 | /* ethernet chip */ |
51 | /* ethernet chip */ | 51 | { |
52 | { AUTCPU12_VIRT_CS8900A, AUTCPU12_PHYS_CS8900A, SZ_1M, MT_DEVICE } | 52 | .virtual = AUTCPU12_VIRT_CS8900A, |
53 | .pfn = __phys_to_pfn(AUTCPU12_PHYS_CS8900A), | ||
54 | .length = SZ_1M, | ||
55 | .type = MT_DEVICE | ||
56 | } | ||
53 | }; | 57 | }; |
54 | 58 | ||
55 | void __init autcpu12_map_io(void) | 59 | void __init autcpu12_map_io(void) |
diff --git a/arch/arm/mach-clps711x/cdb89712.c b/arch/arm/mach-clps711x/cdb89712.c index a46c82cd2711..cba7be5a06c3 100644 --- a/arch/arm/mach-clps711x/cdb89712.c +++ b/arch/arm/mach-clps711x/cdb89712.c | |||
@@ -39,7 +39,12 @@ | |||
39 | * ethernet driver, perhaps. | 39 | * ethernet driver, perhaps. |
40 | */ | 40 | */ |
41 | static struct map_desc cdb89712_io_desc[] __initdata = { | 41 | static struct map_desc cdb89712_io_desc[] __initdata = { |
42 | { ETHER_BASE, ETHER_START, ETHER_SIZE, MT_DEVICE } | 42 | { |
43 | .virtual = ETHER_BASE, | ||
44 | .pfn =__phys_to_pfn(ETHER_START), | ||
45 | .length = ETHER_SIZE, | ||
46 | .type = MT_DEVICE | ||
47 | } | ||
43 | }; | 48 | }; |
44 | 49 | ||
45 | static void __init cdb89712_map_io(void) | 50 | static void __init cdb89712_map_io(void) |
diff --git a/arch/arm/mach-clps711x/ceiva.c b/arch/arm/mach-clps711x/ceiva.c index 780d91805984..35d51a759b59 100644 --- a/arch/arm/mach-clps711x/ceiva.c +++ b/arch/arm/mach-clps711x/ceiva.c | |||
@@ -37,11 +37,13 @@ | |||
37 | #include "common.h" | 37 | #include "common.h" |
38 | 38 | ||
39 | static struct map_desc ceiva_io_desc[] __initdata = { | 39 | static struct map_desc ceiva_io_desc[] __initdata = { |
40 | /* virtual, physical, length, type */ | 40 | /* SED1355 controlled video RAM & registers */ |
41 | 41 | { | |
42 | /* SED1355 controlled video RAM & registers */ | 42 | .virtual = CEIVA_VIRT_SED1355, |
43 | { CEIVA_VIRT_SED1355, CEIVA_PHYS_SED1355, SZ_2M, MT_DEVICE } | 43 | .pfn = __phys_to_pfn(CEIVA_PHYS_SED1355), |
44 | 44 | .length = SZ_2M, | |
45 | .type = MT_DEVICE | ||
46 | } | ||
45 | }; | 47 | }; |
46 | 48 | ||
47 | 49 | ||
diff --git a/arch/arm/mach-clps711x/edb7211-mm.c b/arch/arm/mach-clps711x/edb7211-mm.c index 7fd7b01822d0..72f8bb05d55e 100644 --- a/arch/arm/mach-clps711x/edb7211-mm.c +++ b/arch/arm/mach-clps711x/edb7211-mm.c | |||
@@ -51,15 +51,27 @@ extern void clps711x_map_io(void); | |||
51 | * happens). | 51 | * happens). |
52 | */ | 52 | */ |
53 | static struct map_desc edb7211_io_desc[] __initdata = { | 53 | static struct map_desc edb7211_io_desc[] __initdata = { |
54 | /* virtual, physical, length, type */ | 54 | { /* memory-mapped extra keyboard row */ |
55 | 55 | .virtual = EP7211_VIRT_EXTKBD, | |
56 | /* memory-mapped extra keyboard row and CS8900A Ethernet chip */ | 56 | .pfn = __phys_to_pfn(EP7211_PHYS_EXTKBD), |
57 | { EP7211_VIRT_EXTKBD, EP7211_PHYS_EXTKBD, SZ_1M, MT_DEVICE }, | 57 | .length = SZ_1M, |
58 | { EP7211_VIRT_CS8900A, EP7211_PHYS_CS8900A, SZ_1M, MT_DEVICE }, | 58 | .type - MT_DEVICE |
59 | 59 | }, { /* and CS8900A Ethernet chip */ | |
60 | /* flash banks */ | 60 | .virtual = EP7211_VIRT_CS8900A, |
61 | { EP7211_VIRT_FLASH1, EP7211_PHYS_FLASH1, SZ_8M, MT_DEVICE }, | 61 | .pfn = __phys_to_pfn(EP7211_PHYS_CS8900A), |
62 | { EP7211_VIRT_FLASH2, EP7211_PHYS_FLASH2, SZ_8M, MT_DEVICE } | 62 | .length = SZ_1M, |
63 | .type = MT_DEVICE | ||
64 | }, { /* flash banks */ | ||
65 | .virtual = EP7211_VIRT_FLASH1, | ||
66 | .pfn = __phys_to_pfn(EP7211_PHYS_FLASH1), | ||
67 | .length = SZ_8M, | ||
68 | .type = MT_DEVICE | ||
69 | }, { | ||
70 | .virtual = EP7211_VIRT_FLASH2, | ||
71 | .pfn = __phys_to_pfn(EP7211_PHYS_FLASH2), | ||
72 | .length = SZ_8M, | ||
73 | .type = MT_DEVICE | ||
74 | } | ||
63 | }; | 75 | }; |
64 | 76 | ||
65 | void __init edb7211_map_io(void) | 77 | void __init edb7211_map_io(void) |
diff --git a/arch/arm/mach-clps711x/mm.c b/arch/arm/mach-clps711x/mm.c index 120b7cac84b5..a00f77ef8df8 100644 --- a/arch/arm/mach-clps711x/mm.c +++ b/arch/arm/mach-clps711x/mm.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/init.h> | 24 | #include <linux/init.h> |
25 | #include <linux/bootmem.h> | 25 | #include <linux/bootmem.h> |
26 | 26 | ||
27 | #include <asm/sizes.h> | ||
27 | #include <asm/hardware.h> | 28 | #include <asm/hardware.h> |
28 | #include <asm/pgtable.h> | 29 | #include <asm/pgtable.h> |
29 | #include <asm/page.h> | 30 | #include <asm/page.h> |
@@ -34,7 +35,12 @@ | |||
34 | * This maps the generic CLPS711x registers | 35 | * This maps the generic CLPS711x registers |
35 | */ | 36 | */ |
36 | static struct map_desc clps711x_io_desc[] __initdata = { | 37 | static struct map_desc clps711x_io_desc[] __initdata = { |
37 | { CLPS7111_VIRT_BASE, CLPS7111_PHYS_BASE, 1048576, MT_DEVICE } | 38 | { |
39 | .virtual = CLPS7111_VIRT_BASE, | ||
40 | .pfn = __phys_to_pfn(CLPS7111_PHYS_BASE), | ||
41 | .length = SZ_1M, | ||
42 | .type = MT_DEVICE | ||
43 | } | ||
38 | }; | 44 | }; |
39 | 45 | ||
40 | void __init clps711x_map_io(void) | 46 | void __init clps711x_map_io(void) |
diff --git a/arch/arm/mach-clps711x/p720t.c b/arch/arm/mach-clps711x/p720t.c index 5bdb90edf992..a1acb945fb51 100644 --- a/arch/arm/mach-clps711x/p720t.c +++ b/arch/arm/mach-clps711x/p720t.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <asm/pgtable.h> | 29 | #include <asm/pgtable.h> |
30 | #include <asm/page.h> | 30 | #include <asm/page.h> |
31 | #include <asm/setup.h> | 31 | #include <asm/setup.h> |
32 | #include <asm/sizes.h> | ||
32 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
33 | #include <asm/mach/arch.h> | 34 | #include <asm/mach/arch.h> |
34 | #include <asm/mach/map.h> | 35 | #include <asm/mach/map.h> |
@@ -42,8 +43,17 @@ | |||
42 | * We map both here. | 43 | * We map both here. |
43 | */ | 44 | */ |
44 | static struct map_desc p720t_io_desc[] __initdata = { | 45 | static struct map_desc p720t_io_desc[] __initdata = { |
45 | { SYSPLD_VIRT_BASE, SYSPLD_PHYS_BASE, 1048576, MT_DEVICE }, | 46 | { |
46 | { 0xfe400000, 0x10400000, 1048576, MT_DEVICE } | 47 | .virtual = SYSPLD_VIRT_BASE, |
48 | .pfn = __phys_to_pfn(SYSPLD_PHYS_BASE), | ||
49 | .length = SZ_1M, | ||
50 | .type = MT_DEVICE | ||
51 | }, { | ||
52 | .virtual = 0xfe400000, | ||
53 | .pfn = __phys_to_pfn(0x10400000), | ||
54 | .length = SZ_1M, | ||
55 | .type = MT_DEVICE | ||
56 | } | ||
47 | }; | 57 | }; |
48 | 58 | ||
49 | static void __init | 59 | static void __init |