sh: add r8a66597 usb0 gadget to the kfr2r09 board
authorMagnus Damm <damm@igel.co.jp>
Wed, 19 Aug 2009 14:39:15 +0000 (14:39 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 20 Aug 2009 01:32:17 +0000 (10:32 +0900)
commit5a1c4cb5bc228662bfb116f1e07ad658915a5742
tree37a92460734f2c2f2409ada265f4578d524ced35
parent0bb886d2a9c2d4e069ca364e36c52c7ae6d1ca8c
sh: add r8a66597 usb0 gadget to the kfr2r09 board

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 <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/mach-kfr2r09/setup.c