aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <Marc.Zyngier@arm.com>2011-05-18 05:51:51 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-05-20 17:27:08 -0400
commit0f71fd492d99a005db7d0050a5ce8a733ffc2a1e (patch)
tree4b02bc6c614293d662c63317f6324745d94365c7
parent68c0e38cafa0f24866ec8605431f7f666cae1304 (diff)
ARM: 6909/1: VExpress: 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>
-rw-r--r--arch/arm/mach-vexpress/v2m.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/arch/arm/mach-vexpress/v2m.c b/arch/arm/mach-vexpress/v2m.c
index ba46e8e07437..e3268152c834 100644
--- a/arch/arm/mach-vexpress/v2m.c
+++ b/arch/arm/mach-vexpress/v2m.c
@@ -13,11 +13,11 @@
13#include <linux/sysdev.h> 13#include <linux/sysdev.h>
14#include <linux/usb/isp1760.h> 14#include <linux/usb/isp1760.h>
15#include <linux/clkdev.h> 15#include <linux/clkdev.h>
16#include <linux/mtd/physmap.h>
16 17
17#include <asm/mach-types.h> 18#include <asm/mach-types.h>
18#include <asm/sizes.h> 19#include <asm/sizes.h>
19#include <asm/mach/arch.h> 20#include <asm/mach/arch.h>
20#include <asm/mach/flash.h>
21#include <asm/mach/map.h> 21#include <asm/mach/map.h>
22#include <asm/mach/time.h> 22#include <asm/mach/time.h>
23#include <asm/hardware/arm_timer.h> 23#include <asm/hardware/arm_timer.h>
@@ -206,27 +206,13 @@ static struct platform_device v2m_usb_device = {
206 .dev.platform_data = &v2m_usb_config, 206 .dev.platform_data = &v2m_usb_config,
207}; 207};
208 208
209static int v2m_flash_init(void) 209static void v2m_flash_set_vpp(struct map_info *map, int on)
210{
211 writel(0, MMIO_P2V(V2M_SYS_FLASH));
212 return 0;
213}
214
215static void v2m_flash_exit(void)
216{
217 writel(0, MMIO_P2V(V2M_SYS_FLASH));
218}
219
220static void v2m_flash_set_vpp(int on)
221{ 210{
222 writel(on != 0, MMIO_P2V(V2M_SYS_FLASH)); 211 writel(on != 0, MMIO_P2V(V2M_SYS_FLASH));
223} 212}
224 213
225static struct flash_platform_data v2m_flash_data = { 214static struct physmap_flash_data v2m_flash_data = {
226 .map_name = "cfi_probe",
227 .width = 4, 215 .width = 4,
228 .init = v2m_flash_init,
229 .exit = v2m_flash_exit,
230 .set_vpp = v2m_flash_set_vpp, 216 .set_vpp = v2m_flash_set_vpp,
231}; 217};
232 218
@@ -243,7 +229,7 @@ static struct resource v2m_flash_resources[] = {
243}; 229};
244 230
245static struct platform_device v2m_flash_device = { 231static struct platform_device v2m_flash_device = {
246 .name = "armflash", 232 .name = "physmap-flash",
247 .id = -1, 233 .id = -1,
248 .resource = v2m_flash_resources, 234 .resource = v2m_flash_resources,
249 .num_resources = ARRAY_SIZE(v2m_flash_resources), 235 .num_resources = ARRAY_SIZE(v2m_flash_resources),