From patchwork Wed May 25 07:56:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 815212 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4P7uSZU029524 for ; Wed, 25 May 2011 07:56:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754645Ab1EYH42 (ORCPT ); Wed, 25 May 2011 03:56:28 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:62350 "EHLO relmlor1.renesas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752985Ab1EYH41 (ORCPT ); Wed, 25 May 2011 03:56:27 -0400 Received: from relmlir2.idc.renesas.com ([10.200.68.152]) by relmlor1.idc.renesas.com ( SJSMS) with ESMTP id <0LLQ00IYRRE2QD30@relmlor1.idc.renesas.com> for linux-sh@vger.kernel.org; Wed, 25 May 2011 16:56:26 +0900 (JST) Received: from relmlac2.idc.renesas.com ([10.200.69.22]) by relmlir2.idc.renesas.com ( SJSMS) with ESMTP id <0LLQ002I9RE1V850@relmlir2.idc.renesas.com> for linux-sh@vger.kernel.org; Wed, 25 May 2011 16:56:25 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id C068F28076; Wed, 25 May 2011 16:56:25 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id B850128070; Wed, 25 May 2011 16:56:25 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id SAM00643; Wed, 25 May 2011 16:56:25 +0900 Date: Wed, 25 May 2011 16:56:25 +0900 X-IronPort-AV: E=Sophos; i="4.65,266,1304262000"; d="scan'208"; a="28700674" Received: from unknown (HELO PG10870.renesas.com) ([172.30.8.159]) by relmlii2.idc.renesas.com with ESMTP; Wed, 25 May 2011 16:56:25 +0900 Message-id: To: Paul Mundt , Magnus Cc: Linux-SH In-reply-to: <20110525054017.GA7317@linux-sh.org> References: <20110525025701.GI14329@linux-sh.org> <20110525054017.GA7317@linux-sh.org> From: Kuninori Morimoto Subject: [PATCH 2/2 v2] ARM: mach-shmobile: mackerel: add renesas_usbhs support for USB1 User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-2022-JP-2?B?U2Fuag==?= =?ISO-2022-JP-2?B?GyQoRCtXGyhC?=) APEL/10.6 Emacs/23.2 (i386-mingw-nt5.1.2600) MULE/6.0 (HANACHIRUSATO) MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@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]); Wed, 25 May 2011 07:56:28 +0000 (UTC) renesas_usbhs driver can use external interrupt mode (which come from USB-PHY) or autonomy mode (it use own interrupt) for detecting connection/disconnection when Function. And it will be power OFF while it has been disconnecting if external interrupt mode is selected. mackerel board has 2 USB ports. But we can not use external interrupt mode on CN22 USB0 port which is only for USB Function. IRQ7-PORT40 is already used by Touchscreen, and USB-PHY needs IRQ7-PORT167. It is impossible to use IRQ7 demux on mackerel. We can use external interrupt mode USB-Function on "USB1". USB1 can become Host by r8a66597, and become Function by renesas_usbhs. But don't select both drivers in same time. These 2 drivers are not supporting IRQ SHARD. Signed-off-by: Kuninori Morimoto --- v1 -> v2 - modify documente for git - add documente to comment out - remove #ifdef/#error arch/arm/mach-shmobile/board-mackerel.c | 191 ++++++++++++++++++++++++++++++- 1 files changed, 190 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index efceb1d..55312a9 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@ -43,6 +43,7 @@ #include #include #include +#include #include