diff options
Diffstat (limited to 'arch/arm/mach-integrator')
-rw-r--r-- | arch/arm/mach-integrator/integrator_ap.c | 13 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 13 |
2 files changed, 12 insertions, 14 deletions
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index 6b151288f66c..2fbbdd5eac35 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <linux/clockchips.h> | 31 | #include <linux/clockchips.h> |
32 | #include <linux/interrupt.h> | 32 | #include <linux/interrupt.h> |
33 | #include <linux/io.h> | 33 | #include <linux/io.h> |
34 | #include <linux/mtd/physmap.h> | ||
34 | 35 | ||
35 | #include <mach/hardware.h> | 36 | #include <mach/hardware.h> |
36 | #include <mach/platform.h> | 37 | #include <mach/platform.h> |
@@ -43,7 +44,6 @@ | |||
43 | #include <mach/lm.h> | 44 | #include <mach/lm.h> |
44 | 45 | ||
45 | #include <asm/mach/arch.h> | 46 | #include <asm/mach/arch.h> |
46 | #include <asm/mach/flash.h> | ||
47 | #include <asm/mach/irq.h> | 47 | #include <asm/mach/irq.h> |
48 | #include <asm/mach/map.h> | 48 | #include <asm/mach/map.h> |
49 | #include <asm/mach/time.h> | 49 | #include <asm/mach/time.h> |
@@ -222,7 +222,7 @@ device_initcall(irq_syscore_init); | |||
222 | #define EBI_CSR1 (VA_EBI_BASE + INTEGRATOR_EBI_CSR1_OFFSET) | 222 | #define EBI_CSR1 (VA_EBI_BASE + INTEGRATOR_EBI_CSR1_OFFSET) |
223 | #define EBI_LOCK (VA_EBI_BASE + INTEGRATOR_EBI_LOCK_OFFSET) | 223 | #define EBI_LOCK (VA_EBI_BASE + INTEGRATOR_EBI_LOCK_OFFSET) |
224 | 224 | ||
225 | static int ap_flash_init(void) | 225 | static int ap_flash_init(struct platform_device *dev) |
226 | { | 226 | { |
227 | u32 tmp; | 227 | u32 tmp; |
228 | 228 | ||
@@ -239,7 +239,7 @@ static int ap_flash_init(void) | |||
239 | return 0; | 239 | return 0; |
240 | } | 240 | } |
241 | 241 | ||
242 | static void ap_flash_exit(void) | 242 | static void ap_flash_exit(struct platform_device *dev) |
243 | { | 243 | { |
244 | u32 tmp; | 244 | u32 tmp; |
245 | 245 | ||
@@ -255,15 +255,14 @@ static void ap_flash_exit(void) | |||
255 | } | 255 | } |
256 | } | 256 | } |
257 | 257 | ||
258 | static void ap_flash_set_vpp(int on) | 258 | static void ap_flash_set_vpp(struct platform_device *pdev, int on) |
259 | { | 259 | { |
260 | void __iomem *reg = on ? SC_CTRLS : SC_CTRLC; | 260 | void __iomem *reg = on ? SC_CTRLS : SC_CTRLC; |
261 | 261 | ||
262 | writel(INTEGRATOR_SC_CTRL_nFLVPPEN, reg); | 262 | writel(INTEGRATOR_SC_CTRL_nFLVPPEN, reg); |
263 | } | 263 | } |
264 | 264 | ||
265 | static struct flash_platform_data ap_flash_data = { | 265 | static struct physmap_flash_data ap_flash_data = { |
266 | .map_name = "cfi_probe", | ||
267 | .width = 4, | 266 | .width = 4, |
268 | .init = ap_flash_init, | 267 | .init = ap_flash_init, |
269 | .exit = ap_flash_exit, | 268 | .exit = ap_flash_exit, |
@@ -277,7 +276,7 @@ static struct resource cfi_flash_resource = { | |||
277 | }; | 276 | }; |
278 | 277 | ||
279 | static struct platform_device cfi_flash_device = { | 278 | static struct platform_device cfi_flash_device = { |
280 | .name = "armflash", | 279 | .name = "physmap-flash", |
281 | .id = 0, | 280 | .id = 0, |
282 | .dev = { | 281 | .dev = { |
283 | .platform_data = &ap_flash_data, | 282 | .platform_data = &ap_flash_data, |
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index c4914c69462b..4eb03ab5cb46 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/io.h> | 22 | #include <linux/io.h> |
23 | #include <linux/gfp.h> | 23 | #include <linux/gfp.h> |
24 | #include <linux/clkdev.h> | 24 | #include <linux/clkdev.h> |
25 | #include <linux/mtd/physmap.h> | ||
25 | 26 | ||
26 | #include <mach/hardware.h> | 27 | #include <mach/hardware.h> |
27 | #include <mach/platform.h> | 28 | #include <mach/platform.h> |
@@ -35,7 +36,6 @@ | |||
35 | #include <mach/lm.h> | 36 | #include <mach/lm.h> |
36 | 37 | ||
37 | #include <asm/mach/arch.h> | 38 | #include <asm/mach/arch.h> |
38 | #include <asm/mach/flash.h> | ||
39 | #include <asm/mach/irq.h> | 39 | #include <asm/mach/irq.h> |
40 | #include <asm/mach/map.h> | 40 | #include <asm/mach/map.h> |
41 | #include <asm/mach/time.h> | 41 | #include <asm/mach/time.h> |
@@ -246,7 +246,7 @@ static struct clk_lookup cp_lookups[] = { | |||
246 | /* | 246 | /* |
247 | * Flash handling. | 247 | * Flash handling. |
248 | */ | 248 | */ |
249 | static int intcp_flash_init(void) | 249 | static int intcp_flash_init(struct platform_device *dev) |
250 | { | 250 | { |
251 | u32 val; | 251 | u32 val; |
252 | 252 | ||
@@ -257,7 +257,7 @@ static int intcp_flash_init(void) | |||
257 | return 0; | 257 | return 0; |
258 | } | 258 | } |
259 | 259 | ||
260 | static void intcp_flash_exit(void) | 260 | static void intcp_flash_exit(struct platform_device *dev) |
261 | { | 261 | { |
262 | u32 val; | 262 | u32 val; |
263 | 263 | ||
@@ -266,7 +266,7 @@ static void intcp_flash_exit(void) | |||
266 | writel(val, INTCP_VA_CTRL_BASE + INTCP_FLASHPROG); | 266 | writel(val, INTCP_VA_CTRL_BASE + INTCP_FLASHPROG); |
267 | } | 267 | } |
268 | 268 | ||
269 | static void intcp_flash_set_vpp(int on) | 269 | static void intcp_flash_set_vpp(struct platform_device *pdev, int on) |
270 | { | 270 | { |
271 | u32 val; | 271 | u32 val; |
272 | 272 | ||
@@ -278,8 +278,7 @@ static void intcp_flash_set_vpp(int on) | |||
278 | writel(val, INTCP_VA_CTRL_BASE + INTCP_FLASHPROG); | 278 | writel(val, INTCP_VA_CTRL_BASE + INTCP_FLASHPROG); |
279 | } | 279 | } |
280 | 280 | ||
281 | static struct flash_platform_data intcp_flash_data = { | 281 | static struct physmap_flash_data intcp_flash_data = { |
282 | .map_name = "cfi_probe", | ||
283 | .width = 4, | 282 | .width = 4, |
284 | .init = intcp_flash_init, | 283 | .init = intcp_flash_init, |
285 | .exit = intcp_flash_exit, | 284 | .exit = intcp_flash_exit, |
@@ -293,7 +292,7 @@ static struct resource intcp_flash_resource = { | |||
293 | }; | 292 | }; |
294 | 293 | ||
295 | static struct platform_device intcp_flash_device = { | 294 | static struct platform_device intcp_flash_device = { |
296 | .name = "armflash", | 295 | .name = "physmap-flash", |
297 | .id = 0, | 296 | .id = 0, |
298 | .dev = { | 297 | .dev = { |
299 | .platform_data = &intcp_flash_data, | 298 | .platform_data = &intcp_flash_data, |