From patchwork Wed Aug 19 14:39:15 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 42712 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7JEhpKv001819 for ; Wed, 19 Aug 2009 14:43:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752005AbZHSOns (ORCPT ); Wed, 19 Aug 2009 10:43:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751915AbZHSOns (ORCPT ); Wed, 19 Aug 2009 10:43:48 -0400 Received: from rv-out-0506.google.com ([209.85.198.234]:37851 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751881AbZHSOnr (ORCPT ); Wed, 19 Aug 2009 10:43:47 -0400 Received: by rv-out-0506.google.com with SMTP id f6so1294119rvb.1 for ; Wed, 19 Aug 2009 07:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=tzHCGyAuWW9wh3qQs3BTlUd+gb8BOgLINGmkBfgxPh4=; b=qLVAEqgJuQe5EveUKEfeVT81w8cuVwMXYf0llJk0xlHCc3VXNDpXDhCa+29bGPG9bO nIMGuBQBaiQ/h7FruPzdIT6GiJ6yG9vY5F1uHsocHuRvsBGGS1LstHuYC0IM/asjLVId 0OvMJwIdFXRPJ7XGkOH/as/BLuJfdM8cmFA+0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=sSEX1q6wmo+EPu2R+5InnGDXIVZW8dzLDtSr6Duuo+Sfh+7xEfHsFj7LTzTxgadZmv q2NJG5Fg/kq1XpEsgoRuTXsBLwSekkNSoxYMJ10VNumZTAnyo9RcSSWPLMAPeL1nW5gy V0iaDhovoob9lKlEMikhg4/dMa72GppxvzELA= Received: by 10.140.144.2 with SMTP id r2mr1768338rvd.44.1250693028697; Wed, 19 Aug 2009 07:43:48 -0700 (PDT) Received: from rx1.opensource.se (210.5.32.202.bf.2iij.net [202.32.5.210]) by mx.google.com with ESMTPS id g31sm6289192rvb.56.2009.08.19.07.43.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 19 Aug 2009 07:43:45 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org, shimoda.yoshihiro@renesas.com, linux-usb@vger.kernel.org, gregkh@suse.de Date: Wed, 19 Aug 2009 23:39:15 +0900 Message-Id: <20090819143915.23285.30577.sendpatchset@rx1.opensource.se> Subject: [PATCH] sh: add r8a66597 usb0 gadget to the kfr2r09 board Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm Add USB gadget support for port YC301 on the KFR2R09 board. The r8a66597-udc driver is hooked up as a platform device, clocks are enabled via I2C and some registers are configured to enable the USB in gadget mode. The hardware driving the USB port is the on-chip USB0 block in the sh7724 processor configured as USB gadget controller. This board is using external hardware to detect USB hotplug events and allows the processor to dynamically start and stop clocks. This well thought out hardware feature is unused at this point and plug and play is unfortunately unsupported. To properly support all hardware features the USB gadget stack may need some adjustment. Signed-off-by: Magnus Damm --- arch/sh/boards/mach-kfr2r09/setup.c | 103 +++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/arch/sh/boards/mach-kfr2r09/setup.c +++ work/arch/sh/boards/mach-kfr2r09/setup.c 2009-08-19 22:34:52.000000000 +0900 @@ -16,6 +16,8 @@ #include #include #include +#include +#include #include