Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191728
b: refs/heads/master
c: 8716011
h: refs/heads/master
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed Apr 29, 2010
1 parent 462a619 commit fe82881
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 28d7f4ec98a8edb029ef24c1ee4af6a1ccbc9633
refs/heads/master: 8716011315a5b2fa932fa1e7570c34975ed2cb14
16 changes: 16 additions & 0 deletions trunk/arch/arm/mach-bcmring/arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <asm/setup.h>
#include <asm/mach-types.h>
#include <asm/mach/time.h>
#include <asm/pmu.h>

#include <asm/mach/arch.h>
#include <mach/dma.h>
Expand Down Expand Up @@ -85,8 +86,23 @@ static struct platform_device nand_device = {
.num_resources = ARRAY_SIZE(nand_resource),
};

static struct resource pmu_resource = {
.start = IRQ_PMUIRQ,
.end = IRQ_PMUIRQ,
.flags = IORESOURCE_IRQ,
};

static struct platform_device pmu_device = {
.name = "arm-pmu",
.id = ARM_PMU_DEVICE_CPU,
.resource = &pmu_resource,
.num_resources = 1,
};


static struct platform_device *devices[] __initdata = {
&nand_device,
&pmu_device,
};

/****************************************************************************
Expand Down

0 comments on commit fe82881

Please sign in to comment.