diff options
| author | Marc Zyngier <Marc.Zyngier@arm.com> | 2011-05-18 05:51:53 -0400 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-05-20 17:27:08 -0400 |
| commit | 046dfa0abd29ef2315c154754a22f4546d9d1e9c (patch) | |
| tree | ae68a022d59215cfe28e93133e8f3eb48041aade | |
| parent | f07e762e4f18d484645f2c18d24c5d3b7e3a377a (diff) | |
ARM: 6905/1: Integrator/CP: Use physmap driver instead of integrator-flash
Tested with an ARM-1136 core tile.
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>
| -rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index 9e3ce26023e8..ec9628fe7109 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> |
| @@ -239,7 +239,7 @@ static struct clk_lookup cp_lookups[] = { | |||
| 239 | /* | 239 | /* |
| 240 | * Flash handling. | 240 | * Flash handling. |
| 241 | */ | 241 | */ |
| 242 | static int intcp_flash_init(void) | 242 | static int intcp_flash_init(struct platform_device *dev) |
| 243 | { | 243 | { |
| 244 | u32 val; | 244 | u32 val; |
| 245 | 245 | ||
| @@ -250,7 +250,7 @@ static int intcp_flash_init(void) | |||
| 250 | return 0; | 250 | return 0; |
| 251 | } | 251 | } |
| 252 | 252 | ||
| 253 | static void intcp_flash_exit(void) | 253 | static void intcp_flash_exit(struct platform_device *dev) |
| 254 | { | 254 | { |
| 255 | u32 val; | 255 | u32 val; |
| 256 | 256 | ||
| @@ -259,7 +259,7 @@ static void intcp_flash_exit(void) | |||
| 259 | writel(val, INTCP_VA_CTRL_BASE + INTCP_FLASHPROG); | 259 | writel(val, INTCP_VA_CTRL_BASE + INTCP_FLASHPROG); |
| 260 | } | 260 | } |
| 261 | 261 | ||
| 262 | static void intcp_flash_set_vpp(int on) | 262 | static void intcp_flash_set_vpp(struct map_info *map, int on) |
| 263 | { | 263 | { |
| 264 | u32 val; | 264 | u32 val; |
| 265 | 265 | ||
| @@ -271,8 +271,7 @@ static void intcp_flash_set_vpp(int on) | |||
| 271 | writel(val, INTCP_VA_CTRL_BASE + INTCP_FLASHPROG); | 271 | writel(val, INTCP_VA_CTRL_BASE + INTCP_FLASHPROG); |
| 272 | } | 272 | } |
| 273 | 273 | ||
| 274 | static struct flash_platform_data intcp_flash_data = { | 274 | static struct physmap_flash_data intcp_flash_data = { |
| 275 | .map_name = "cfi_probe", | ||
| 276 | .width = 4, | 275 | .width = 4, |
| 277 | .init = intcp_flash_init, | 276 | .init = intcp_flash_init, |
| 278 | .exit = intcp_flash_exit, | 277 | .exit = intcp_flash_exit, |
| @@ -286,7 +285,7 @@ static struct resource intcp_flash_resource = { | |||
| 286 | }; | 285 | }; |
| 287 | 286 | ||
| 288 | static struct platform_device intcp_flash_device = { | 287 | static struct platform_device intcp_flash_device = { |
| 289 | .name = "armflash", | 288 | .name = "physmap-flash", |
| 290 | .id = 0, | 289 | .id = 0, |
| 291 | .dev = { | 290 | .dev = { |
| 292 | .platform_data = &intcp_flash_data, | 291 | .platform_data = &intcp_flash_data, |
