Skip to content

Commit f1407d5

Browse files
morimotogregkh
authored andcommitted
usb: renesas_usbhs: Add Renesas USBHS common code
Renesas SuperH has USBHS IP which can switch Host / Function. This driver is designed so that Host / Function may dynamically change. This patch add usb/renesas_usbhs and common code for SuperH USBHS. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent a6360dd commit f1407d5

File tree

11 files changed

+2145
-0
lines changed

11 files changed

+2145
-0
lines changed

drivers/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ obj-$(CONFIG_UWB) += uwb/
6767
obj-$(CONFIG_USB_OTG_UTILS) += usb/otg/
6868
obj-$(CONFIG_USB) += usb/
6969
obj-$(CONFIG_USB_MUSB_HDRC) += usb/musb/
70+
obj-$(CONFIG_USB_RENESAS_USBHS) += usb/renesas_usbhs/
7071
obj-$(CONFIG_PCI) += usb/
7172
obj-$(CONFIG_USB_GADGET) += usb/gadget/
7273
obj-$(CONFIG_SERIO) += input/serio/

drivers/usb/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ source "drivers/usb/host/Kconfig"
115115

116116
source "drivers/usb/musb/Kconfig"
117117

118+
source "drivers/usb/renesas_usbhs/Kconfig"
119+
118120
source "drivers/usb/class/Kconfig"
119121

120122
source "drivers/usb/storage/Kconfig"

drivers/usb/renesas_usbhs/Kconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#
2+
# Renesas USB Controller Drivers
3+
#
4+
5+
config USB_RENESAS_USBHS
6+
tristate 'Renesas USBHS controller'
7+
default n
8+
help
9+
Renesas USBHS is a discrete USB host and peripheral controller chip
10+
that supports both full and high speed USB 2.0 data transfers.
11+
It has nine or more configurable endpoints, and endpoint zero.
12+
13+
Say "y" to link the driver statically, or "m" to build a
14+
dynamically linked module called "renesas_usbhs" and force all
15+
gadget drivers to also be dynamically linked.

drivers/usb/renesas_usbhs/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# for Renesas USB
3+
#
4+
5+
obj-$(CONFIG_USB_RENESAS_USBHS) += renesas_usbhs.o
6+
7+
renesas_usbhs-y := common.o mod.o pipe.o

0 commit comments

Comments
 (0)