From patchwork Wed Feb 23 08:04:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: R Sricharan X-Patchwork-Id: 583651 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 p1N845j7013720 for ; Wed, 23 Feb 2011 08:04:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753386Ab1BWIEH (ORCPT ); Wed, 23 Feb 2011 03:04:07 -0500 Received: from na3sys009aog109.obsmtp.com ([74.125.149.201]:51880 "EHLO na3sys009aog109.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750736Ab1BWIEG (ORCPT ); Wed, 23 Feb 2011 03:04:06 -0500 Received: from source ([209.85.215.46]) (using TLSv1) by na3sys009aob109.postini.com ([74.125.148.12]) with SMTP ID DSNKTWS/da6Uvn89dY1l83wSrQxmdltxnpAq@postini.com; Wed, 23 Feb 2011 00:04:06 PST Received: by mail-ew0-f46.google.com with SMTP id 6so1374575ewy.19 for ; Wed, 23 Feb 2011 00:04:05 -0800 (PST) Received: by 10.213.10.147 with SMTP id p19mr139163ebp.23.1298448245292; Wed, 23 Feb 2011 00:04:05 -0800 (PST) From: Sricharan R References: <1298295990-1070-1-git-send-email-santosh.shilimkar@ti.com> <1298295990-1070-5-git-send-email-santosh.shilimkar@ti.com> <4D627937.8030309@ti.com> 43067ab756e2e48efb745dee3ecc67eb@mail.gmail.com MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcvR1TW846A2C/uoTt+sDJvpA7MucABRgbMgAAUGWYA= In-Reply-To: 43067ab756e2e48efb745dee3ecc67eb@mail.gmail.com X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Date: Wed, 23 Feb 2011 13:34:01 +0530 Message-ID: <29f3552dea661223dcb96d51aa38fbb5@mail.gmail.com> Subject: RE: [PATCH 4/6] omap4: hwmod_data: Add l3 errorlog data to hwmod database. To: Sricharan R , Benoit Cousson , Santosh Shilimkar Cc: linux-omap@vger.kernel.org, Felipe Balbi 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:04:08 +0000 (UTC) diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index c2806bd..95001d4 100644 --- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c @@ -229,11 +229,37 @@ static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; +/* L3 target configuration and error log registers */ static struct +omap_hwmod_irq_info omap44xx_l3_targ_irqs[] = { + { .irq = 9 + OMAP44XX_IRQ_GIC_START }, + { .irq = 10 + OMAP44XX_IRQ_GIC_START }, }; + +static struct omap_hwmod_addr_space omap44xx_l3_targ_addrs[] = { + { + .pa_start = 0x44000000, + .pa_end = 0x44100000, + .flags = ADDR_TYPE_RT, + }, + { + .pa_start = 0x44800000, + .pa_end = 0x44900000, + .flags = ADDR_TYPE_RT, + }, + { + .pa_start = 0x45000000, + .pa_end = 0x45100000, + .flags = ADDR_TYPE_RT, + }, +}; + /* mpu -> l3_main_1 */ static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = { .master = &omap44xx_mpu_hwmod, .slave = &omap44xx_l3_main_1_hwmod, .clk = "l3_div_ck", + .addr = omap44xx_l3_targ_addrs, + .addr_cnt = ARRAY_SIZE(omap44xx_l3_targ_addrs), .user = OCP_USER_MPU | OCP_USER_SDMA, }; @@ -248,6 +274,8 @@ static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = { static struct omap_hwmod omap44xx_l3_main_1_hwmod = { .name = "l3_main_1", .class = &omap44xx_l3_hwmod_class, + .mpu_irqs = omap44xx_l3_targ_irqs, + .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_l3_targ_irqs), .slaves = omap44xx_l3_main_1_slaves, .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),