mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
[ARM] tegra: Add pmu to common devices
Originally fixed by Will Deacon. Change-Id: I504f8109bedd1eea4bf637395913726a98eb6bb8 Signed-off-by: Colin Cross <ccross@google.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* arch/arm/mach-tegra/devices.c
|
||||
*
|
||||
* Copyright (C) 2010 Google, Inc.
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/fsl_devices.h>
|
||||
#include <asm/pmu.h>
|
||||
#include <mach/irqs.h>
|
||||
#include <mach/iomap.h>
|
||||
#include <mach/dma.h>
|
||||
@@ -492,3 +493,23 @@ struct platform_device tegra_gart_device = {
|
||||
.num_resources = ARRAY_SIZE(tegra_gart_resources),
|
||||
.resource = tegra_gart_resources
|
||||
};
|
||||
|
||||
static struct resource pmu_resources[] = {
|
||||
[0] = {
|
||||
.start = INT_CPU0_PMU_INTR,
|
||||
.end = INT_CPU0_PMU_INTR,
|
||||
.flags = IORESOURCE_IRQ,
|
||||
},
|
||||
[1] = {
|
||||
.start = INT_CPU1_PMU_INTR,
|
||||
.end = INT_CPU1_PMU_INTR,
|
||||
.flags = IORESOURCE_IRQ,
|
||||
},
|
||||
};
|
||||
|
||||
struct platform_device pmu_device = {
|
||||
.name = "arm-pmu",
|
||||
.id = ARM_PMU_DEVICE_CPU,
|
||||
.num_resources = ARRAY_SIZE(pmu_resources),
|
||||
.resource = pmu_resources,
|
||||
};
|
||||
|
||||
@@ -43,5 +43,5 @@ extern struct platform_device tegra_ehci3_device;
|
||||
extern struct platform_device tegra_i2s_device1;
|
||||
extern struct platform_device tegra_i2s_device2;
|
||||
extern struct platform_device tegra_gart_device;
|
||||
|
||||
extern struct platform_device pmu_device;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user