]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[ARM] 2993/1: Replace map_desc.physical with map_desc.pfn: CLPS711x
authorDeepak Saxena <dsaxena@plexity.net>
Fri, 28 Oct 2005 14:19:05 +0000 (15:19 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 28 Oct 2005 14:19:05 +0000 (15:19 +0100)
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>
arch/arm/mach-clps711x/autcpu12.c
arch/arm/mach-clps711x/cdb89712.c
arch/arm/mach-clps711x/ceiva.c
arch/arm/mach-clps711x/edb7211-mm.c
arch/arm/mach-clps711x/mm.c
arch/arm/mach-clps711x/p720t.c

index dc73feb1ffb0d9ed58b90a64a1518525cb63b17d..43b9423d1440147e0d70d661142ad0c3e63da2c2 100644 (file)
 */
 
 static struct map_desc autcpu12_io_desc[] __initdata = {
- /* virtual, physical, length, type */
- /* memory-mapped extra io and CS8900A Ethernet chip */
- /* ethernet chip */
-       { AUTCPU12_VIRT_CS8900A, AUTCPU12_PHYS_CS8900A, SZ_1M, MT_DEVICE }
+       /* memory-mapped extra io and CS8900A Ethernet chip */
+       /* ethernet chip */
+       {
+               .virtual        = AUTCPU12_VIRT_CS8900A,
+               .pfn            = __phys_to_pfn(AUTCPU12_PHYS_CS8900A),
+               .length         = SZ_1M,
+               .type           = MT_DEVICE
+       }
 };
 
 void __init autcpu12_map_io(void)
index a46c82cd2711d5a6c150a58a628acd499416d5c9..cba7be5a06c34423fa311ceef465267ddc7aa1d7 100644 (file)
  * ethernet driver, perhaps.
  */
 static struct map_desc cdb89712_io_desc[] __initdata = {
-       { ETHER_BASE, ETHER_START, ETHER_SIZE, MT_DEVICE }
+       {
+               .virtual        = ETHER_BASE,
+               .pfn            =__phys_to_pfn(ETHER_START),
+               .length         = ETHER_SIZE,
+               .type           = MT_DEVICE
+       }
 };
 
 static void __init cdb89712_map_io(void)
index 780d918059848c1d6f9d6caff8f27026d10df11f..35d51a759b592c359e86aa7277a3444bce512279 100644 (file)
 #include "common.h"
 
 static struct map_desc ceiva_io_desc[] __initdata = {
- /* virtual, physical, length, type */
-
- /* SED1355 controlled video RAM & registers */
- { CEIVA_VIRT_SED1355, CEIVA_PHYS_SED1355, SZ_2M, MT_DEVICE }
-
+       /* SED1355 controlled video RAM & registers */
+       {
+               .virtual        = CEIVA_VIRT_SED1355,
+               .pfn            = __phys_to_pfn(CEIVA_PHYS_SED1355),
+               .length         = SZ_2M,
+               .type           = MT_DEVICE
+       }
 };
 
 
index 7fd7b01822d0806d910948dd532ce002db2f719d..72f8bb05d55e896c9ccbacc7cec82c3a2d2142a8 100644 (file)
@@ -51,15 +51,27 @@ extern void clps711x_map_io(void);
  *     happens).
  */
 static struct map_desc edb7211_io_desc[] __initdata = {
- /* virtual, physical, length, type */
-
- /* memory-mapped extra keyboard row and CS8900A Ethernet chip */
- { EP7211_VIRT_EXTKBD,  EP7211_PHYS_EXTKBD,  SZ_1M, MT_DEVICE }, 
- { EP7211_VIRT_CS8900A, EP7211_PHYS_CS8900A, SZ_1M, MT_DEVICE },
-
- /* flash banks */
- { EP7211_VIRT_FLASH1,  EP7211_PHYS_FLASH1,  SZ_8M, MT_DEVICE },
- { EP7211_VIRT_FLASH2,  EP7211_PHYS_FLASH2,  SZ_8M, MT_DEVICE }
+       {       /* memory-mapped extra keyboard row */
+               .virtual        = EP7211_VIRT_EXTKBD,
+               .pfn            = __phys_to_pfn(EP7211_PHYS_EXTKBD),
+               .length         = SZ_1M,
+               .type           - MT_DEVICE
+       }, {    /* and CS8900A Ethernet chip */
+               .virtual        = EP7211_VIRT_CS8900A,
+               .pfn            = __phys_to_pfn(EP7211_PHYS_CS8900A),
+               .length         = SZ_1M,
+               .type           = MT_DEVICE
+       }, {    /* flash banks */
+               .virtual        = EP7211_VIRT_FLASH1,
+               .pfn            = __phys_to_pfn(EP7211_PHYS_FLASH1),
+               .length         = SZ_8M,
+               .type           = MT_DEVICE
+       }, {
+               .virtual        = EP7211_VIRT_FLASH2,
+               .pfn            = __phys_to_pfn(EP7211_PHYS_FLASH2),
+               .length         = SZ_8M,
+               .type           = MT_DEVICE
+       }
 };
 
 void __init edb7211_map_io(void)
index 120b7cac84b5bf8975a0b985a9ec7879066ba363..a00f77ef8df83cdd3a6d530b7e1414eb0dfe0b75 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/init.h>
 #include <linux/bootmem.h>
 
+#include <asm/sizes.h>
 #include <asm/hardware.h>
 #include <asm/pgtable.h>
 #include <asm/page.h>
  * This maps the generic CLPS711x registers
  */
 static struct map_desc clps711x_io_desc[] __initdata = {
- { CLPS7111_VIRT_BASE, CLPS7111_PHYS_BASE,     1048576, MT_DEVICE }
+       {
+               .virtual        = CLPS7111_VIRT_BASE,
+               .pfn            = __phys_to_pfn(CLPS7111_PHYS_BASE),
+               .length         = SZ_1M,
+               .type           = MT_DEVICE
+       }
 };
 
 void __init clps711x_map_io(void)
index 5bdb90edf9922956fe8bc194215559ed2dc8322d..a1acb945fb5199305acc14951349038ef5ce1968 100644 (file)
@@ -29,6 +29,7 @@
 #include <asm/pgtable.h>
 #include <asm/page.h>
 #include <asm/setup.h>
+#include <asm/sizes.h>
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
  * We map both here.
  */
 static struct map_desc p720t_io_desc[] __initdata = {
-       { SYSPLD_VIRT_BASE,     SYSPLD_PHYS_BASE, 1048576, MT_DEVICE },
-       { 0xfe400000,           0x10400000,       1048576, MT_DEVICE }
+       {
+               .virtual        = SYSPLD_VIRT_BASE,
+               .pfn            = __phys_to_pfn(SYSPLD_PHYS_BASE),
+               .length         = SZ_1M,
+               .type           = MT_DEVICE
+       }, {
+               .virtual        = 0xfe400000,
+               .pfn            = __phys_to_pfn(0x10400000),
+               .length         = SZ_1M,
+               .type           = MT_DEVICE
+       }
 };
 
 static void __init