From patchwork Wed Oct 10 12:37:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 12105 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0400024188 for ; Wed, 10 Oct 2012 12:38:21 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 8F90DA18C2C for ; Wed, 10 Oct 2012 12:38:20 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so720652iej.11 for ; Wed, 10 Oct 2012 05:38:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:mime-version:content-type :x-gm-message-state; bh=q2ykON5iH5nqhXbgo0Yv3ywyarsrf34u8R3EuThERZU=; b=VyLSPWjQFcu33GMeoEfdi8zjHKkoGpfrK50t3ohLBYdLWrgxR9vi/I7P4ju9tUeXn4 O5pjQcRF5Yk5iR1ecKjAc8JXQ8bckJHjeDXlGbp8m87dqARdzRGwmtIwxP8xdY4jyjlH m3we/hvObHG2KfvVnJ4TOec/GTvzLrkVp2X8k0lGmFqoUY2YrCDOsPQYw6KhGHNu4EVX fYEeY66b7OUsxJj4b1ej5cRC34D9wtRaYpl+Rkm6Ubi4qJL/VgXJJvNE7+eL3gCqQsIG d0ePtfBGpfpo1IUKnwIyNL5iw1/N3B07DOimZHFavWO6OTwZlR3acDFlmdJ3b0c+SVpu qXCg== Received: by 10.50.236.72 with SMTP id us8mr4958565igc.70.1349872699961; Wed, 10 Oct 2012 05:38:19 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp216605igt; Wed, 10 Oct 2012 05:38:18 -0700 (PDT) Received: by 10.14.224.135 with SMTP id x7mr32663740eep.34.1349872697822; Wed, 10 Oct 2012 05:38:17 -0700 (PDT) Received: from eu1sys200aog111.obsmtp.com (eu1sys200aog111.obsmtp.com [207.126.144.131]) by mx.google.com with SMTP id a8si717607eep.125.2012.10.10.05.38.10 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Oct 2012 05:38:17 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.131 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.131; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.131 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) smtp.mail=linus.walleij@stericsson.com Received: from beta.dmz-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob111.postini.com ([207.126.147.11]) with SMTP ID DSNKUHVsMsUqJ7PnVtgHFZXfvr49WxC5Md6s@postini.com; Wed, 10 Oct 2012 12:38:17 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.16.71]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id DEB877B; Wed, 10 Oct 2012 12:37:33 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 0497C45; Wed, 10 Oct 2012 08:16:54 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id 76CC4A8093; Wed, 10 Oct 2012 14:37:59 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.83.0; Wed, 10 Oct 2012 14:38:04 +0200 From: Linus Walleij To: , Cc: Stephen Warren , Anmar Oueja , Maxime Coquelin , Linus Walleij Subject: [PATCH 1/5] ARM: plat-nomadik: Introduce new DB8540 GPIO registers Date: Wed, 10 Oct 2012 14:37:59 +0200 Message-ID: <1349872679-31174-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmF+P8iP9mrsCd9hdsN6PUFHXrcSm1fFCrUk2w886DlDRYSWw8SsHLO3oDnckk3d2wiDCnd From: Maxime Coquelin DB8540's GPIO controller introduce level detection support for both interrupts and wakeups. Signed-off-by: Maxime Coquelin Signed-off-by: Linus Walleij --- arch/arm/plat-nomadik/include/plat/gpio-nomadik.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/plat-nomadik/include/plat/gpio-nomadik.h b/arch/arm/plat-nomadik/include/plat/gpio-nomadik.h index c08a54d..cf81111 100644 --- a/arch/arm/plat-nomadik/include/plat/gpio-nomadik.h +++ b/arch/arm/plat-nomadik/include/plat/gpio-nomadik.h @@ -38,6 +38,9 @@ #define NMK_GPIO_RWIMSC 0x50 #define NMK_GPIO_FWIMSC 0x54 #define NMK_GPIO_WKS 0x58 +/* These appear in DB8540 and later ASICs */ +#define NMK_GPIO_EDGELEVEL 0x5C +#define NMK_GPIO_LEVEL 0x60 /* Alternate functions: function C is set in hw by setting both A and B */ #define NMK_GPIO_ALT_GPIO 0