From patchwork Wed May 25 02:49: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: 814772 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4P2nSBg016361 for ; Wed, 25 May 2011 02:49:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754775Ab1EYCt1 (ORCPT ); Tue, 24 May 2011 22:49:27 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:57969 "EHLO relmlor1.renesas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753111Ab1EYCt1 (ORCPT ); Tue, 24 May 2011 22:49:27 -0400 Received: from relmlir2.idc.renesas.com ([10.200.68.152]) by relmlor1.idc.renesas.com ( SJSMS) with ESMTP id <0LLQ00F22D6E6Y30@relmlor1.idc.renesas.com> for linux-sh@vger.kernel.org; Wed, 25 May 2011 11:49:26 +0900 (JST) Received: from relmlac3.idc.renesas.com ([10.200.69.23]) by relmlir2.idc.renesas.com ( SJSMS) with ESMTP id <0LLQ00K24D6EQ650@relmlir2.idc.renesas.com> for linux-sh@vger.kernel.org; Wed, 25 May 2011 11:49:26 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 0D2B21807C; Wed, 25 May 2011 11:49:26 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 02F1318071; Wed, 25 May 2011 11:49:26 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac3.idc.renesas.com with ESMTP id MAA00922; Wed, 25 May 2011 11:49:25 +0900 Date: Wed, 25 May 2011 11:49:25 +0900 X-IronPort-AV: E=Sophos; i="4.65,264,1304262000"; d="scan'208"; a="28534038" Received: from unknown (HELO PG10870.renesas.com) ([172.30.8.159]) by relmlii1.idc.renesas.com with ESMTP; Wed, 25 May 2011 11:49:25 +0900 Message-id: To: Paul Mundt , Magnus Cc: Linux-SH In-reply-to: References: 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") From: Kuninori Morimoto Subject: [PATCH 2/2] ARM: mach-shmobile: mackerel: add renesas_usbhs support for USB1 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 (demeter2.kernel.org [140.211.167.43]); Wed, 25 May 2011 02:49:28 +0000 (UTC) CN31 USB1 can be Host/Function, and it can use IRQ8 as USB-phy. This mean we can power off it if... - while USB1 is disconnected. - USB-Function is selected. - driver is supporting it. OTOH, CN22 USB0 which is only USB Function can not use USB-phy interrupt (IRQ7) on mackerel board. Because IRQ7 is already used by Touchscreen, and it is impossible to use cascaded IRQ7. renesas_usbhs driver which is supporting USB-Function is supporting USB power off when disconnect. mackerel board will use renesas_usbhs driver as USB-Function on CN31 if it have CONFIG_USB_RENESAS_USBHS. And r8a66597_hcd will be used as USB Host if it have CONFIG_USB_R8A66597_HCD. But you can not select both CONFIG_USB_R8A66597_HCD and CONFIG_USB_RENESAS_USBHS in same time for now. Because IRQ8 will be requested in different driver. Signed-off-by: Kuninori Morimoto --- arch/arm/mach-shmobile/board-mackerel.c | 175 ++++++++++++++++++++++++++++++- 1 files changed, 174 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index efceb1d..512dc4c 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