From patchwork Thu Sep 8 15:22:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 1130062 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p88FMb3C002601 for ; Thu, 8 Sep 2011 15:22:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753969Ab1IHPWm (ORCPT ); Thu, 8 Sep 2011 11:22:42 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:37213 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754023Ab1IHPWl convert rfc822-to-8bit (ORCPT ); Thu, 8 Sep 2011 11:22:41 -0400 Received: from dlep34.itg.ti.com ([157.170.170.115]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id p88FMc85012159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 Sep 2011 10:22:38 -0500 Received: from dlep26.itg.ti.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep34.itg.ti.com (8.13.7/8.13.8) with ESMTP id p88FMc0L009739; Thu, 8 Sep 2011 10:22:38 -0500 (CDT) Received: from dnce72.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id p88FMba0022610; Thu, 8 Sep 2011 10:22:37 -0500 (CDT) thread-index: AcxuOyQjf2DRL8h0RsGdJ5X7d+NHZA== Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4657 Received: from localhost.localdomain (172.24.88.2) by dnce72.ent.ti.com (137.167.131.87) with Microsoft SMTP Server (TLS) id 8.3.106.1; Thu, 8 Sep 2011 17:22:37 +0200 From: Tero Kristo To: CC: , , Subject: [PATCHv7 6/9] TEMP: power: omap-prm: added omap3 static init Date: Thu, 8 Sep 2011 18:22:21 +0300 Message-ID: <1315495344-23133-7-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1315495344-23133-1-git-send-email-t-kristo@ti.com> References: <1315495344-23133-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 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 (demeter2.kernel.org [140.211.167.43]); Thu, 08 Sep 2011 15:22:44 +0000 (UTC) This is a temporary hack until PRM hwmod data is available. Signed-off-by: Tero Kristo --- drivers/power/omap_prm.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/power/omap_prm.c b/drivers/power/omap_prm.c index ce0a872..7d59d92 100644 --- a/drivers/power/omap_prm.c +++ b/drivers/power/omap_prm.c @@ -264,14 +264,16 @@ static int __devexit omap_prm_complete(struct platform_device *pdev) static int __init omap_prm_probe(struct platform_device *pdev) { - /* XXX: prm_dev.irq_setup should be populated here */ + prm_dev.irq_setup.ack = 0xb2000000 + 0x48306818; + prm_dev.irq_setup.mask = 0xb2000000 + 0x4830681c; + prm_dev.irq_setup.irq = INT_34XX_PRCM_MPU_IRQ; + prm_dev.irq_setup.nr_regs = 1; + prm_dev.irq_setup.nr_irqs = 32; - /* XXX: following calls should be enabled once irq_setup is done */ -#if 0 omap_prcm_irq_init(); prm_dev.irq_setup.io_irq = omap_prcm_event_to_irq("io"); -#endif + return 0; }