diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap1/board-innovator.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-perseus2.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap1/io.c | 46 | ||||
-rw-r--r-- | arch/arm/plat-omap/sram.c | 6 |
4 files changed, 56 insertions, 12 deletions
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index df0312b596e4..fd9183ff2ed5 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
@@ -103,8 +103,12 @@ static struct platform_device innovator_flash_device = { | |||
103 | 103 | ||
104 | /* Only FPGA needs to be mapped here. All others are done with ioremap */ | 104 | /* Only FPGA needs to be mapped here. All others are done with ioremap */ |
105 | static struct map_desc innovator1510_io_desc[] __initdata = { | 105 | static struct map_desc innovator1510_io_desc[] __initdata = { |
106 | { OMAP1510_FPGA_BASE, OMAP1510_FPGA_START, OMAP1510_FPGA_SIZE, | 106 | { |
107 | MT_DEVICE }, | 107 | .virtual = OMAP1510_FPGA_BASE, |
108 | .pfn = __phys_to_pfn(OMAP1510_FPGA_START), | ||
109 | .length = OMAP1510_FPGA_SIZE, | ||
110 | .type = MT_DEVICE | ||
111 | } | ||
108 | }; | 112 | }; |
109 | 113 | ||
110 | static struct resource innovator1510_smc91x_resources[] = { | 114 | static struct resource innovator1510_smc91x_resources[] = { |
diff --git a/arch/arm/mach-omap1/board-perseus2.c b/arch/arm/mach-omap1/board-perseus2.c index 107c68c8ab54..2ba26e239108 100644 --- a/arch/arm/mach-omap1/board-perseus2.c +++ b/arch/arm/mach-omap1/board-perseus2.c | |||
@@ -134,8 +134,12 @@ void omap_perseus2_init_irq(void) | |||
134 | 134 | ||
135 | /* Only FPGA needs to be mapped here. All others are done with ioremap */ | 135 | /* Only FPGA needs to be mapped here. All others are done with ioremap */ |
136 | static struct map_desc omap_perseus2_io_desc[] __initdata = { | 136 | static struct map_desc omap_perseus2_io_desc[] __initdata = { |
137 | {H2P2_DBG_FPGA_BASE, H2P2_DBG_FPGA_START, H2P2_DBG_FPGA_SIZE, | 137 | { |
138 | MT_DEVICE}, | 138 | .virtual = H2P2_DBG_FPGA_BASE, |
139 | .pfn = __phys_to_pfn(H2P2_DBG_FPGA_START), | ||
140 | .length = H2P2_DBG_FPGA_SIZE, | ||
141 | .type = MT_DEVICE | ||
142 | } | ||
139 | }; | 143 | }; |
140 | 144 | ||
141 | static void __init omap_perseus2_map_io(void) | 145 | static void __init omap_perseus2_map_io(void) |
diff --git a/arch/arm/mach-omap1/io.c b/arch/arm/mach-omap1/io.c index eb8261d7dead..79fb86535ebc 100644 --- a/arch/arm/mach-omap1/io.c +++ b/arch/arm/mach-omap1/io.c | |||
@@ -26,27 +26,59 @@ extern void omap_sram_init(void); | |||
26 | * default mapping provided here. | 26 | * default mapping provided here. |
27 | */ | 27 | */ |
28 | static struct map_desc omap_io_desc[] __initdata = { | 28 | static struct map_desc omap_io_desc[] __initdata = { |
29 | { IO_VIRT, IO_PHYS, IO_SIZE, MT_DEVICE }, | 29 | { |
30 | .virtual = IO_VIRT, | ||
31 | .pfn = __phys_to_pfn(IO_PHYS), | ||
32 | .length = IO_SIZE, | ||
33 | .type = MT_DEVICE | ||
34 | } | ||
30 | }; | 35 | }; |
31 | 36 | ||
32 | #ifdef CONFIG_ARCH_OMAP730 | 37 | #ifdef CONFIG_ARCH_OMAP730 |
33 | static struct map_desc omap730_io_desc[] __initdata = { | 38 | static struct map_desc omap730_io_desc[] __initdata = { |
34 | { OMAP730_DSP_BASE, OMAP730_DSP_START, OMAP730_DSP_SIZE, MT_DEVICE }, | 39 | { |
35 | { OMAP730_DSPREG_BASE, OMAP730_DSPREG_START, OMAP730_DSPREG_SIZE, MT_DEVICE }, | 40 | .virtual = OMAP730_DSP_BASE, |
41 | .pfn = __phys_to_pfn(OMAP730_DSP_START), | ||
42 | .length = OMAP730_DSP_SIZE, | ||
43 | .type = MT_DEVICE | ||
44 | }, { | ||
45 | .virtual = OMAP730_DSPREG_BASE, | ||
46 | .pfn = __phys_to_pfn(OMAP730_DSPREG_START), | ||
47 | .length = OMAP730_DSPREG_SIZE, | ||
48 | .type = MT_DEVICE | ||
49 | } | ||
36 | }; | 50 | }; |
37 | #endif | 51 | #endif |
38 | 52 | ||
39 | #ifdef CONFIG_ARCH_OMAP1510 | 53 | #ifdef CONFIG_ARCH_OMAP1510 |
40 | static struct map_desc omap1510_io_desc[] __initdata = { | 54 | static struct map_desc omap1510_io_desc[] __initdata = { |
41 | { OMAP1510_DSP_BASE, OMAP1510_DSP_START, OMAP1510_DSP_SIZE, MT_DEVICE }, | 55 | { |
42 | { OMAP1510_DSPREG_BASE, OMAP1510_DSPREG_START, OMAP1510_DSPREG_SIZE, MT_DEVICE }, | 56 | .virtual = OMAP1510_DSP_BASE, |
57 | .pfn = __phys_to_pfn(OMAP1510_DSP_START), | ||
58 | .length = OMAP1510_DSP_SIZE, | ||
59 | .type = MT_DEVICE | ||
60 | }, { | ||
61 | .virtual = OMAP1510_DSPREG_BASE, | ||
62 | .pfn = __phys_to_pfn(OMAP1510_DSPREG_START), | ||
63 | .length = OMAP1510_DSPREG_SIZE, | ||
64 | .type = MT_DEVICE | ||
65 | } | ||
43 | }; | 66 | }; |
44 | #endif | 67 | #endif |
45 | 68 | ||
46 | #if defined(CONFIG_ARCH_OMAP16XX) | 69 | #if defined(CONFIG_ARCH_OMAP16XX) |
47 | static struct map_desc omap16xx_io_desc[] __initdata = { | 70 | static struct map_desc omap16xx_io_desc[] __initdata = { |
48 | { OMAP16XX_DSP_BASE, OMAP16XX_DSP_START, OMAP16XX_DSP_SIZE, MT_DEVICE }, | 71 | { |
49 | { OMAP16XX_DSPREG_BASE, OMAP16XX_DSPREG_START, OMAP16XX_DSPREG_SIZE, MT_DEVICE }, | 72 | .virtual = OMAP16XX_DSP_BASE, |
73 | .pfn = __phys_to_pfn(OMAP16XX_DSP_START), | ||
74 | .length = OMAP16XX_DSP_SIZE, | ||
75 | .type = MT_DEVICE | ||
76 | }, { | ||
77 | .virtual = OMAP16XX_DSPREG_BASE, | ||
78 | .pfn = __phys_to_pfn(OMAP16XX_DSPREG_START), | ||
79 | .length = OMAP16XX_DSPREG_SIZE, | ||
80 | .type = MT_DEVICE | ||
81 | } | ||
50 | }; | 82 | }; |
51 | #endif | 83 | #endif |
52 | 84 | ||
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c index 7719a4062e3a..7ad69f14a3e7 100644 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c | |||
@@ -59,7 +59,11 @@ void __init omap_detect_sram(void) | |||
59 | } | 59 | } |
60 | 60 | ||
61 | static struct map_desc omap_sram_io_desc[] __initdata = { | 61 | static struct map_desc omap_sram_io_desc[] __initdata = { |
62 | { OMAP1_SRAM_BASE, OMAP1_SRAM_START, 0, MT_DEVICE } | 62 | { /* .length gets filled in at runtime */ |
63 | .virtual = OMAP1_SRAM_BASE, | ||
64 | .pfn = __phys_to_pfn(OMAP1_SRAM_START), | ||
65 | .type = MT_DEVICE | ||
66 | } | ||
63 | }; | 67 | }; |
64 | 68 | ||
65 | /* | 69 | /* |