From patchwork Wed Feb 23 08:14:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: R Sricharan X-Patchwork-Id: 583671 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 p1N8F1U3020438 for ; Wed, 23 Feb 2011 08:15:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754758Ab1BWIPB (ORCPT ); Wed, 23 Feb 2011 03:15:01 -0500 Received: from na3sys009aog108.obsmtp.com ([74.125.149.199]:32938 "EHLO na3sys009aog108.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754619Ab1BWIPA (ORCPT ); Wed, 23 Feb 2011 03:15:00 -0500 Received: from source ([209.85.215.170]) (using TLSv1) by na3sys009aob108.postini.com ([74.125.148.12]) with SMTP ID DSNKTWTCA6sUCWC1Ysgg7VzJZAl/8zplAms4@postini.com; Wed, 23 Feb 2011 00:15:00 PST Received: by eyf5 with SMTP id 5so1376946eyf.29 for ; Wed, 23 Feb 2011 00:14:52 -0800 (PST) Received: by 10.213.114.142 with SMTP id e14mr1942328ebq.23.1298448891798; Wed, 23 Feb 2011 00:14:51 -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+sDJvpA7MucABRgbMgAAV7BmA= In-Reply-To: 43067ab756e2e48efb745dee3ecc67eb@mail.gmail.com X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Date: Wed, 23 Feb 2011 13:44:49 +0530 Message-ID: <1c7b14958aa88b52095ab07456f96318@mail.gmail.com> Subject: RE: [PATCH 4/6] omap4: hwmod_data: Add l3 errorlog data to hwmod database. To: 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:15:02 +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, };