From patchwork Fri Jul 15 10:58:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 977792 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6FAwkKO024737 for ; Fri, 15 Jul 2011 10:58:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964852Ab1GOK66 (ORCPT ); Fri, 15 Jul 2011 06:58:58 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:56406 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964787Ab1GOK65 (ORCPT ); Fri, 15 Jul 2011 06:58:57 -0400 Received: from axis700.grange (dslb-178-001-145-049.pools.arcor-ip.net [178.1.145.49]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0LnpfA-1RNaUy0vyi-00fwcy; Fri, 15 Jul 2011 12:58:56 +0200 Received: by axis700.grange (Postfix, from userid 1000) id D49F2189B6E; Fri, 15 Jul 2011 12:58:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id CF1FA189B6D; Fri, 15 Jul 2011 12:58:55 +0200 (CEST) Date: Fri, 15 Jul 2011 12:58:55 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: linux-mmc@vger.kernel.org cc: linux-sh@vger.kernel.org, Magnus Damm Subject: [PATCH 1/2] sh-mobile: enable both edges GPIO interrupts on sh7372 In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Provags-ID: V02:K0:AFpldDHBcSbRUy26ZlmWTujAjnJNswLHzKNW69uXy4q xxKLitMOhyUGJXcqfk+9mr+9f/SMQ3ATl7DBOJhSOLuvJ5XYsw SCNYTmMRvdjC7IxPM7IIIHDerKjkyPKc4HJUuHwmGlLMq8nJBs GFUmSx/SG4HEh8RRPDeH5vyelO96WMi9bxv5Dn3Po/adOvKCEF rhQY/vKuGepuE3LcCowX21xMa0EodoJD1MKE3aTHJ4= Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 15 Jul 2011 10:58:59 +0000 (UTC) From: Magnus Damm IRQ-capable GPIOs on sh7372 can be configured to produce interrupts on both edges. Signed-off-by: Guennadi Liakhovetski Cc: Magnus Damm Acked-by: Magnus Damm --- drivers/sh/intc/chip.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/sh/intc/chip.c b/drivers/sh/intc/chip.c index f33e2dd..33b2ed4 100644 --- a/drivers/sh/intc/chip.c +++ b/drivers/sh/intc/chip.c @@ -186,6 +186,9 @@ static unsigned char intc_irq_sense_table[IRQ_TYPE_SENSE_MASK + 1] = { !defined(CONFIG_CPU_SUBTYPE_SH7709) [IRQ_TYPE_LEVEL_HIGH] = VALID(3), #endif +#if defined(CONFIG_ARCH_SH7372) + [IRQ_TYPE_EDGE_BOTH] = VALID(4), +#endif }; static int intc_set_type(struct irq_data *data, unsigned int type)