Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249929
b: refs/heads/master
c: 0f71fd4
h: refs/heads/master
i:
  249927: ed41fbc
v: v3
  • Loading branch information
Marc Zyngier authored and Russell King committed May 20, 2011
1 parent 1defe10 commit 8d32830
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 68c0e38cafa0f24866ec8605431f7f666cae1304
refs/heads/master: 0f71fd492d99a005db7d0050a5ce8a733ffc2a1e
22 changes: 4 additions & 18 deletions trunk/arch/arm/mach-vexpress/v2m.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
#include <linux/sysdev.h>
#include <linux/usb/isp1760.h>
#include <linux/clkdev.h>
#include <linux/mtd/physmap.h>

#include <asm/mach-types.h>
#include <asm/sizes.h>
#include <asm/mach/arch.h>
#include <asm/mach/flash.h>
#include <asm/mach/map.h>
#include <asm/mach/time.h>
#include <asm/hardware/arm_timer.h>
Expand Down Expand Up @@ -206,27 +206,13 @@ static struct platform_device v2m_usb_device = {
.dev.platform_data = &v2m_usb_config,
};

static int v2m_flash_init(void)
{
writel(0, MMIO_P2V(V2M_SYS_FLASH));
return 0;
}

static void v2m_flash_exit(void)
{
writel(0, MMIO_P2V(V2M_SYS_FLASH));
}

static void v2m_flash_set_vpp(int on)
static void v2m_flash_set_vpp(struct map_info *map, int on)
{
writel(on != 0, MMIO_P2V(V2M_SYS_FLASH));
}

static struct flash_platform_data v2m_flash_data = {
.map_name = "cfi_probe",
static struct physmap_flash_data v2m_flash_data = {
.width = 4,
.init = v2m_flash_init,
.exit = v2m_flash_exit,
.set_vpp = v2m_flash_set_vpp,
};

Expand All @@ -243,7 +229,7 @@ static struct resource v2m_flash_resources[] = {
};

static struct platform_device v2m_flash_device = {
.name = "armflash",
.name = "physmap-flash",
.id = -1,
.resource = v2m_flash_resources,
.num_resources = ARRAY_SIZE(v2m_flash_resources),
Expand Down

0 comments on commit 8d32830

Please sign in to comment.