From patchwork Wed Feb 23 08:14:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: R Sricharan X-Patchwork-Id: 583681 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1N8ExTJ020398 for ; Wed, 23 Feb 2011 08:14:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754634Ab1BWIO6 (ORCPT ); Wed, 23 Feb 2011 03:14:58 -0500 Received: from na3sys009aog104.obsmtp.com ([74.125.149.73]:48284 "EHLO na3sys009aog104.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754619Ab1BWIO6 (ORCPT ); Wed, 23 Feb 2011 03:14:58 -0500 Received: from source ([209.85.215.172]) (using TLSv1) by na3sys009aob104.postini.com ([74.125.148.12]) with SMTP ID DSNKTWTCAdmdI5eA+Xlebas8X8odyr3q+zWB@postini.com; Wed, 23 Feb 2011 00:14:57 PST Received: by eye13 with SMTP id 13so979686eye.31 for ; Wed, 23 Feb 2011 00:14:55 -0800 (PST) Received: by 10.213.28.199 with SMTP id n7mr4012002ebc.36.1298448895783; Wed, 23 Feb 2011 00:14:55 -0800 (PST) From: Sricharan R References: <1298295990-1070-1-git-send-email-santosh.shilimkar@ti.com> <1298295990-1070-2-git-send-email-santosh.shilimkar@ti.com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcvRzcX3lQ96pk7BTOm9894+1C9QEABY7JRg In-Reply-To: <1298295990-1070-2-git-send-email-santosh.shilimkar@ti.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Date: Wed, 23 Feb 2011 13:44:50 +0530 Message-ID: Subject: RE: [PATCH 1/6] omap3: hwmod_data: Add l3 error log data to hwmod database. To: Santosh Shilimkar , linux-omap@vger.kernel.org Cc: Felipe Balbi , Benoit Cousson Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 23 Feb 2011 08:14:59 +0000 (UTC) diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c index 8d81813..9a8f799 100644 --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c @@ -72,10 +72,26 @@ static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; +/* L3 taret configuration and error log registers */ +static struct omap_hwmod_irq_info omap3xxx_l3_targ_irqs[] = { + { .irq = INT_34XX_L3_DBG_IRQ }, + { .irq = INT_34XX_L3_APP_IRQ }, +}; + +static struct omap_hwmod_addr_space omap3xxx_l3_targ_addrs[] = { + { + .pa_start = 0x68000000, + .pa_end = 0x68100000, + .flags = ADDR_TYPE_RT, + }, +}; + /* MPU -> L3 interface */ static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main = { - .master = &omap3xxx_mpu_hwmod, - .slave = &omap3xxx_l3_main_hwmod, + .master = &omap3xxx_mpu_hwmod, + .slave = &omap3xxx_l3_main_hwmod, + .addr = omap3xxx_l3_targ_addrs, + .addr_cnt = ARRAY_SIZE(omap3xxx_l3_targ_addrs), .user = OCP_USER_MPU, }; @@ -94,6 +110,8 @@ static struct omap_hwmod_ocp_if *omap3xxx_l3_main_masters[] = { static struct omap_hwmod omap3xxx_l3_main_hwmod = { .name = "l3_main", .class = &l3_hwmod_class, + .mpu_irqs = omap3xxx_l3_targ_irqs, + .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_l3_targ_irqs), .masters = omap3xxx_l3_main_masters, .masters_cnt = ARRAY_SIZE(omap3xxx_l3_main_masters), .slaves = omap3xxx_l3_main_slaves, diff --git a/arch/arm/plat-omap/include/plat/irqs.h b/arch/arm/plat-omap/include/plat/irqs.h index 2910de9..e614de1 100644 --- a/arch/arm/plat-omap/include/plat/irqs.h +++ b/arch/arm/plat-omap/include/plat/irqs.h @@ -315,6 +315,8 @@ #define INT_34XX_SSM_ABORT_IRQ 6 #define INT_34XX_SYS_NIRQ 7 #define INT_34XX_D2D_FW_IRQ 8 +#define INT_34XX_L3_DBG_IRQ 9 +#define INT_34XX_L3_APP_IRQ 10 #define INT_34XX_PRCM_MPU_IRQ 11 #define INT_34XX_MCBSP1_IRQ 16 #define INT_34XX_MCBSP2_IRQ 17