diff options
author | Marc Zyngier <Marc.Zyngier@arm.com> | 2011-05-18 05:51:52 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-05-20 17:27:08 -0400 |
commit | f07e762e4f18d484645f2c18d24c5d3b7e3a377a (patch) | |
tree | 864370ffadaea0f0beadf2925b312e61fb1986ad /arch/arm/mach-integrator | |
parent | 0f71fd492d99a005db7d0050a5ce8a733ffc2a1e (diff) |
ARM: 6908/1: Integrator/AP: Use physmap driver instead of integrator-flash
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-integrator')
-rw-r--r-- | arch/arm/mach-integrator/integrator_ap.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index 980803ff348c..11bd49e8b663 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> |
@@ -230,7 +230,7 @@ device_initcall(irq_init_sysfs); | |||
230 | #define EBI_CSR1 (VA_EBI_BASE + INTEGRATOR_EBI_CSR1_OFFSET) | 230 | #define EBI_CSR1 (VA_EBI_BASE + INTEGRATOR_EBI_CSR1_OFFSET) |
231 | #define EBI_LOCK (VA_EBI_BASE + INTEGRATOR_EBI_LOCK_OFFSET) | 231 | #define EBI_LOCK (VA_EBI_BASE + INTEGRATOR_EBI_LOCK_OFFSET) |
232 | 232 | ||
233 | static int ap_flash_init(void) | 233 | static int ap_flash_init(struct platform_device *dev) |
234 | { | 234 | { |
235 | u32 tmp; | 235 | u32 tmp; |
236 | 236 | ||
@@ -247,7 +247,7 @@ static int ap_flash_init(void) | |||
247 | return 0; | 247 | return 0; |
248 | } | 248 | } |
249 | 249 | ||
250 | static void ap_flash_exit(void) | 250 | static void ap_flash_exit(struct platform_device *dev) |
251 | { | 251 | { |
252 | u32 tmp; | 252 | u32 tmp; |
253 | 253 | ||
@@ -263,15 +263,14 @@ static void ap_flash_exit(void) | |||
263 | } | 263 | } |
264 | } | 264 | } |
265 | 265 | ||
266 | static void ap_flash_set_vpp(int on) | 266 | static void ap_flash_set_vpp(struct map_info *map, int on) |
267 | { | 267 | { |
268 | void __iomem *reg = on ? SC_CTRLS : SC_CTRLC; | 268 | void __iomem *reg = on ? SC_CTRLS : SC_CTRLC; |
269 | 269 | ||
270 | writel(INTEGRATOR_SC_CTRL_nFLVPPEN, reg); | 270 | writel(INTEGRATOR_SC_CTRL_nFLVPPEN, reg); |
271 | } | 271 | } |
272 | 272 | ||
273 | static struct flash_platform_data ap_flash_data = { | 273 | static struct physmap_flash_data ap_flash_data = { |
274 | .map_name = "cfi_probe", | ||
275 | .width = 4, | 274 | .width = 4, |
276 | .init = ap_flash_init, | 275 | .init = ap_flash_init, |
277 | .exit = ap_flash_exit, | 276 | .exit = ap_flash_exit, |
@@ -285,7 +284,7 @@ static struct resource cfi_flash_resource = { | |||
285 | }; | 284 | }; |
286 | 285 | ||
287 | static struct platform_device cfi_flash_device = { | 286 | static struct platform_device cfi_flash_device = { |
288 | .name = "armflash", | 287 | .name = "physmap-flash", |
289 | .id = 0, | 288 | .id = 0, |
290 | .dev = { | 289 | .dev = { |
291 | .platform_data = &ap_flash_data, | 290 | .platform_data = &ap_flash_data, |