From patchwork Mon Sep 15 21:15:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 37425 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 693E120970 for ; Mon, 15 Sep 2014 21:16:05 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id x12sf2516201wgg.10 for ; Mon, 15 Sep 2014 14:16:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=hiQfVLR4V8SVjniKRi+I93Fe44wLi5NIeIJV1Xr8sH4=; b=UGjy08jmsF2yQOpzIIntMav6iBIWWoAS988aCjfeE5+6au03zxYwbGCsraGgDYXrhs cIyrtN/vr4/+eXy9/Ztd/2ZFq7U0sXjlqNwVPgS633amiZK80LlmXLJnFZbX+x7fz22o 9iJlg7E7wUJTnxNV0AELrXE0xIOsorhAuz/WZRsXY6XSFOPSd7vMrs9A8/Azi5toeu21 0k+wjYIqPK6V25N8AC8kWt/Z2zSUra2DaPl9B7ocCPMYFb1NTcek2lzoAw8LwWFGhkmM rWZ9C38trIwev5z5yjNGu9lIBIkGbR+P9O8nO4UNGUF/fVU8zsYpqIXz7zEKyUXfusWM ca+g== X-Gm-Message-State: ALoCoQne0DbA/89bmVAHLNbTVBK8oa5txRccfkq3JljsYlVz2eUc/kZ8+qlIWYJ8O2WcpNhHURIr X-Received: by 10.180.73.79 with SMTP id j15mr5863041wiv.4.1410815764647; Mon, 15 Sep 2014 14:16:04 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.197 with SMTP id di5ls415066lac.13.gmail; Mon, 15 Sep 2014 14:16:04 -0700 (PDT) X-Received: by 10.112.198.228 with SMTP id jf4mr29756627lbc.35.1410815764365; Mon, 15 Sep 2014 14:16:04 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by mx.google.com with ESMTPS id wo3si19193203lbb.66.2014.09.15.14.16.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Sep 2014 14:16:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id pv20so5472283lab.36 for ; Mon, 15 Sep 2014 14:16:04 -0700 (PDT) X-Received: by 10.112.75.233 with SMTP id f9mr5988725lbw.102.1410815764276; Mon, 15 Sep 2014 14:16:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp289770lbb; Mon, 15 Sep 2014 14:16:03 -0700 (PDT) X-Received: by 10.70.135.137 with SMTP id ps9mr50992645pdb.13.1410815762209; Mon, 15 Sep 2014 14:16:02 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fk2si25356202pdb.228.2014.09.15.14.16.01 for ; Mon, 15 Sep 2014 14:16:02 -0700 (PDT) Received-SPF: none (google.com: linux-omap-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754389AbaIOVP6 (ORCPT + 5 others); Mon, 15 Sep 2014 17:15:58 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:34833 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754096AbaIOVP4 (ORCPT ); Mon, 15 Sep 2014 17:15:56 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s8FLFVZi006806; Mon, 15 Sep 2014 16:15:31 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s8FLFVGI030565; Mon, 15 Sep 2014 16:15:31 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Mon, 15 Sep 2014 16:15:31 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s8FLFU42031185; Mon, 15 Sep 2014 16:15:31 -0500 From: Felipe Balbi To: Tony Lindgren CC: Jason Cooper , Linux OMAP Mailing List , Linux ARM Kernel Mailing List , Felipe Balbi Subject: [PATCH 1/9] irqchip: add irq-omap-intc.h header Date: Mon, 15 Sep 2014 16:15:01 -0500 Message-ID: <1410815709-462-2-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.0.1.563.g66f467c In-Reply-To: <1410815709-462-1-git-send-email-balbi@ti.com> References: <1410815709-462-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , OMAP INTC irqchip driver will be moved under drivers/irqchip/ soon but we still have a dependency with mach-omap2 when it comes to idle functions. In order to make it easy to share those function prototypes with OMAP PM code, we introduce this new header. To avoid modifying several board-files and some of the PM-related code, we just include the new header from common.h which was already included by all users of IRQ-related PM code. Signed-off-by: Felipe Balbi --- arch/arm/mach-omap2/common.h | 10 +--------- include/linux/irqchip/irq-omap-intc.h | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 include/linux/irqchip/irq-omap-intc.h diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index 1800093..377eea8 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h @@ -32,6 +32,7 @@ #include #include #include +#include #include @@ -210,15 +211,6 @@ extern struct device *omap2_get_iva_device(void); extern struct device *omap2_get_l3_device(void); extern struct device *omap4_get_dsp_device(void); -void omap2_init_irq(void); -void omap3_init_irq(void); -void ti81xx_init_irq(void); -extern int omap_irq_pending(void); -void omap_intc_save_context(void); -void omap_intc_restore_context(void); -void omap3_intc_suspend(void); -void omap3_intc_prepare_idle(void); -void omap3_intc_resume_idle(void); void omap_gic_of_init(void); #ifdef CONFIG_CACHE_L2X0 diff --git a/include/linux/irqchip/irq-omap-intc.h b/include/linux/irqchip/irq-omap-intc.h new file mode 100644 index 0000000..e06b370 --- /dev/null +++ b/include/linux/irqchip/irq-omap-intc.h @@ -0,0 +1,32 @@ +/** + * irq-omap-intc.h - INTC Idle Functions + * + * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com + * + * Author: Felipe Balbi + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 of + * the License as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __INCLUDE_LINUX_IRQCHIP_IRQ_OMAP_INTC_H +#define __INCLUDE_LINUX_IRQCHIP_IRQ_OMAP_INTC_H + +void omap2_init_irq(void); +void omap3_init_irq(void); +void ti81xx_init_irq(void); + +int omap_irq_pending(void); +void omap_intc_save_context(void); +void omap_intc_restore_context(void); +void omap3_intc_suspend(void); +void omap3_intc_prepare_idle(void); +void omap3_intc_resume_idle(void); + +#endif /* __INCLUDE_LINUX_IRQCHIP_IRQ_OMAP_INTC_H */