From patchwork Mon May 18 14:44:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 6429801 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EF9449F1C1 for ; Mon, 18 May 2015 14:47:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 26FDC205BE for ; Mon, 18 May 2015 14:47:33 +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 EA60B2043C for ; Mon, 18 May 2015 14:47:31 +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 1YuMHW-0001qY-7q; Mon, 18 May 2015 14:44:38 +0000 Received: from mail-pd0-x231.google.com ([2607:f8b0:400e:c02::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YuMHS-0001o6-DQ for linux-arm-kernel@lists.infradead.org; Mon, 18 May 2015 14:44:34 +0000 Received: by pdfh10 with SMTP id h10so152474643pdf.3 for ; Mon, 18 May 2015 07:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=udrFUf0IjkJO7BCeJQZ8n/TQ/ciH95fzgjLvrwqaNAk=; b=Zb5wdRK0jpgA4pE+V2JY1fDt3b9q9mN7V+kzM6901RWsNj6BrpQ4gkJMHAzX1aLM5T ToD3qlbijC7KvhnS6bWSvyqvoxw+pRDfquM9aBaRSypOpfvU0A4XMvuG7xHSYyPWDuxg JNjSjHJLbJafi56zV6W1iRs5tyGMfEfUohfINVUvrTBtrjrV7Q2nEND8kLR1eWf4v1Ks zcj/5/JOpbulRwQpQOkzVbKEOx13Hjgl5I+R7vW+Fv+fKD5VxAU0SrOOS2KYh23mxc6p hWiHeWzBfzI4EYxjS88kIHkyFdAoBZIJ/lJ/VUbQHTums6zTOaDtuDYw6Qbcbx14rUUM AJSg== X-Received: by 10.66.250.166 with SMTP id zd6mr45715100pac.122.1431960253256; Mon, 18 May 2015 07:44:13 -0700 (PDT) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id mq2sm10298211pbb.16.2015.05.18.07.44.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 May 2015 07:44:12 -0700 (PDT) From: Dmitry Eremin-Solenikov To: Russell King , Thomas Gleixner , Jason Cooper Subject: [RESEND][PATCH 1/5] ARM: sa1100: add platform functions to handle PWER settings Date: Mon, 18 May 2015 17:44:03 +0300 Message-Id: <1431960247-32646-1-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150518_074434_490002_36499A4C X-CRM114-Status: GOOD ( 12.46 ) X-Spam-Score: -0.8 (/) Cc: Linus Walleij , 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