From: leochen@broadcom•com (Leo (Hao) Chen)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH 4/6] ARM: BCMRING: register PMU IRQ during board initialisation
Date: Thu, 25 Mar 2010 10:35:51 -0700 [thread overview]
Message-ID: <20100325173551.GA1114@broadcom.com> (raw)
In-Reply-To: <1269530198-19572-5-git-send-email-will.deacon@arm.com>
Thanks Will.
I like this version using the platform device.
Acked-by: Leo Chen <leochen@broadcom•com>
On Thu, Mar 25, 2010 at 08:16:36AM -0700, Will Deacon wrote:
> This patch updates the initialisation routine for the BCMRING platform
> so that it registers its PMU IRQ with the PMU framework in the Kernel.
>
> Cc: Leo Chen <leochen@broadcom•com>
> Signed-off-by: Will Deacon <will.deacon@arm•com>
> ---
> arch/arm/mach-bcmring/arch.c | 16 ++++++++++++++++
> 1 files changed, 16 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-bcmring/arch.c b/arch/arm/mach-bcmring/arch.c
> index 53dd2a9..2f13919 100644
> --- a/arch/arm/mach-bcmring/arch.c
> +++ b/arch/arm/mach-bcmring/arch.c
> @@ -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>
> @@ -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,
> };
>
> /****************************************************************************
> --
> 1.6.3.3
>
>
--
Leo Hao Chen
------------------------
Life is short, run long.
next prev parent reply other threads:[~2010-03-25 17:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-25 15:16 [PATCH 0/6] ARM: pmu: provide a registration mechanism for IRQs [v3] Will Deacon
2010-03-25 15:16 ` [PATCH 1/6] ARM: pmu: register IRQs at runtime Will Deacon
2010-03-25 15:16 ` [PATCH 2/6] ARM: Realview: register PMU IRQs during board initialisation Will Deacon
2010-03-25 15:16 ` [PATCH 3/6] ARM: OMAP: " Will Deacon
2010-03-25 15:16 ` [PATCH 4/6] ARM: BCMRING: register PMU IRQ " Will Deacon
2010-03-25 15:16 ` [PATCH 5/6] ARM: iop3xx: register PMU IRQs " Will Deacon
2010-03-25 15:16 ` [PATCH 6/6] ARM: pxa: " Will Deacon
2010-03-25 17:35 ` Leo (Hao) Chen [this message]
2010-03-25 15:36 ` [PATCH 1/6] ARM: pmu: register IRQs at runtime Jamie Iles
2010-04-28 21:36 ` [PATCH 0/6] ARM: pmu: provide a registration mechanism for IRQs [v3] Russell King - ARM Linux
2010-04-29 16:04 ` Will Deacon
2010-04-29 16:05 ` Russell King - ARM Linux
2010-04-29 16:15 ` Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100325173551.GA1114@broadcom.com \
--to=leochen@broadcom$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox