From patchwork Fri Jan 30 20:01:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 5752681 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 00983BF440 for ; Fri, 30 Jan 2015 20:03:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 314C620265 for ; Fri, 30 Jan 2015 20:03:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5DEE120263 for ; Fri, 30 Jan 2015 20:03:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YHHlQ-0003qG-Fu; Fri, 30 Jan 2015 20:02:00 +0000 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YHHlE-0003is-Sp for linux-arm-kernel@lists.infradead.org; Fri, 30 Jan 2015 20:01:49 +0000 Received: by mail-pa0-f49.google.com with SMTP id fa1so56195303pad.8 for ; Fri, 30 Jan 2015 12:01:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=udrFUf0IjkJO7BCeJQZ8n/TQ/ciH95fzgjLvrwqaNAk=; b=lR0QTBZG2tNnhYKiJp0KTG0j4BxNhQMOl+FQSpNpNr8iX9wTveSa+OxH/LFFEp53ot gasB6UbABBix7u5LeK+8CW11qMftUdVeAm8thGzj5Hs6MZdF3z0VbNwJpalacYXuagru DcRXD3WeXazn/904aX9XHIUgc73H1A2db2Sqd8NNTJf7Qls0MbBbIf6QVbA3O6qbuWJ0 bEItpfv9Uo6lEXJ2ElS51iHsEPHxmUkDI0l9aAn23XW8flpVp4sKAGuU9/Eqpz4INmxA SKdaEjWUj6sDMinPHiMNgszxOOWQUdm++TICrQKDbtJNDB3Kc2O8Y/SnQSWNUgLTBirU 2k7A== X-Received: by 10.66.141.71 with SMTP id rm7mr11387300pab.20.1422648088087; Fri, 30 Jan 2015 12:01:28 -0800 (PST) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id b15sm11585829pdl.60.2015.01.30.12.01.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jan 2015 12:01:27 -0800 (PST) From: Dmitry Eremin-Solenikov To: Russell King , Thomas Gleixner , Jason Cooper Subject: [PATCH v2 1/5] ARM: sa1100: add platform functions to handle PWER settings Date: Fri, 30 Jan 2015 23:01:02 +0300 Message-Id: <1422648066-7897-2-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1422648066-7897-1-git-send-email-dbaryshkov@gmail.com> References: <1422648066-7897-1-git-send-email-dbaryshkov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150130_120148_981490_380BB48E X-CRM114-Status: GOOD ( 13.04 ) X-Spam-Score: -0.8 (/) Cc: Linus Walleij , Andrea Adami , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP PWER settings logically belongs neither to GPIO nor to system IRQ code. Add special functions to handle PWER (for GPIO and for system IRQs) from platform code. Signed-off-by: Dmitry Eremin-Solenikov --- arch/arm/mach-sa1100/generic.c | 24 ++++++++++++++++++++++++ include/soc/sa1100/pwer.h | 15 +++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 include/soc/sa1100/pwer.h diff --git a/arch/arm/mach-sa1100/generic.c b/arch/arm/mach-sa1100/generic.c index 40e0d86..c651f6e 100644 --- a/arch/arm/mach-sa1100/generic.c +++ b/arch/arm/mach-sa1100/generic.c @@ -23,6 +23,8 @@ #include