From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Pandita, Vikram" Subject: Re: [PATCH V2 03/10] ARM: OMAP4: Re-map the CTIs IRQs from MPU to DEBUGSS Date: Tue, 12 Jun 2012 23:07:08 -0700 Message-ID: References: <1339104132-26885-1-git-send-email-jon-hunter@ti.com> <1339104132-26885-4-git-send-email-jon-hunter@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from na3sys009aog120.obsmtp.com ([74.125.149.140]:40550 "EHLO na3sys009aog120.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751373Ab2FMGHa convert rfc822-to-8bit (ORCPT ); Wed, 13 Jun 2012 02:07:30 -0400 Received: by yhoo21 with SMTP id o21so263354yho.4 for ; Tue, 12 Jun 2012 23:07:29 -0700 (PDT) In-Reply-To: <1339104132-26885-4-git-send-email-jon-hunter@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Jon Hunter Cc: linux-omap , linux-arm , Kevin Hilman , Paul Walmsley , Benoit Cousson , Ming Lei , Will Deacon On Thu, Jun 7, 2012 at 2:22 PM, Jon Hunter wrote: > In order to use the CTI interrupts inconjunction with the DEBUGSS we = need to > re-map the CTI IRQs to the DEBUGSS HWMOD. The purpose for doing this = is so we > can create a PMU device based upon the DEBUGSS HWMOD and use the CTI = interrupts > for routing ARM PMU events for OMAP4430 devices. > > This is based upon Benoit Cousson's patch [1]. > > [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2011-Novemb= er/073319.html > > Cc: Ming Lei > Cc: Will Deacon > Cc: Benoit Cousson > Cc: Paul Walmsley > Cc: Kevin Hilman > > Reviewed-by: Santosh Shilimkar > Signed-off-by: Jon Hunter > --- > =A0arch/arm/mach-omap2/omap_hwmod_44xx_data.c | =A0 =A09 +++++++-- > =A01 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/ma= ch-omap2/omap_hwmod_44xx_data.c > index 950454a..faf5a6d 100644 > --- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c > +++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c > @@ -482,10 +482,17 @@ static struct omap_hwmod_class omap44xx_debugss= _hwmod_class =3D { > =A0}; > > =A0/* debugss */ > +static struct omap_hwmod_irq_info omap44xx_debugss_irqs[] =3D { > + =A0 =A0 =A0 { .name =3D "cti0", .irq =3D 1 + OMAP44XX_IRQ_GIC_START= }, > + =A0 =A0 =A0 { .name =3D "cti1", .irq =3D 2 + OMAP44XX_IRQ_GIC_START= }, Data manual assigns cit0 =3D=3D MA_IRQ_1 and cti1 =3D=3D MA_IRQ_2 Why do you add 32 base GIC_START ? > + =A0 =A0 =A0 { .irq =3D -1 } > +}; > + > =A0static struct omap_hwmod omap44xx_debugss_hwmod =3D { > =A0 =A0 =A0 =A0.name =A0 =A0 =A0 =A0 =A0 =3D "debugss", > =A0 =A0 =A0 =A0.class =A0 =A0 =A0 =A0 =A0=3D &omap44xx_debugss_hwmod_= class, > =A0 =A0 =A0 =A0.clkdm_name =A0 =A0 =3D "emu_sys_clkdm", > + =A0 =A0 =A0 .mpu_irqs =A0 =A0 =A0 =3D omap44xx_debugss_irqs, > =A0 =A0 =A0 =A0.main_clk =A0 =A0 =A0 =3D "trace_clk_div_ck", > =A0 =A0 =A0 =A0.prcm =3D { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.omap4 =3D { > @@ -2447,8 +2454,6 @@ static struct omap_hwmod_class omap44xx_mpu_hwm= od_class =3D { > =A0/* mpu */ > =A0static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] =3D { > =A0 =A0 =A0 =A0{ .name =3D "pl310", .irq =3D 0 + OMAP44XX_IRQ_GIC_STA= RT }, > - =A0 =A0 =A0 { .name =3D "cti0", .irq =3D 1 + OMAP44XX_IRQ_GIC_START= }, > - =A0 =A0 =A0 { .name =3D "cti1", .irq =3D 2 + OMAP44XX_IRQ_GIC_START= }, > =A0 =A0 =A0 =A0{ .irq =3D -1 } > =A0}; > > -- > 1.7.9.5 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- To unsubscribe from this list: send the line "unsubscribe linux-omap" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html