-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support dual-role mode; there are two ways to switch between host and device modes, one is by idpin, another is by debugfs which depends on user input. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
- Loading branch information
Chunfeng Yun
authored and
Greg Kroah-Hartman
committed
Oct 27, 2016
1 parent
b3f4e72
commit d0ed062
Showing
9 changed files
with
557 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
|
||
ccflags-$(CONFIG_USB_MTU3_DEBUG) += -DDEBUG | ||
|
||
obj-$(CONFIG_USB_MTU3) += mtu3.o | ||
|
||
mtu3-y := mtu3_plat.o | ||
|
||
ifneq ($(filter y,$(CONFIG_USB_MTU3_HOST)),) | ||
ifneq ($(filter y,$(CONFIG_USB_MTU3_HOST) $(CONFIG_USB_MTU3_DUAL_ROLE)),) | ||
mtu3-y += mtu3_host.o | ||
endif | ||
|
||
ifneq ($(filter y,$(CONFIG_USB_MTU3_GADGET)),) | ||
ifneq ($(filter y,$(CONFIG_USB_MTU3_GADGET) $(CONFIG_USB_MTU3_DUAL_ROLE)),) | ||
mtu3-y += mtu3_core.o mtu3_gadget_ep0.o mtu3_gadget.o mtu3_qmu.o | ||
endif | ||
|
||
ifneq ($(CONFIG_USB_MTU3_DUAL_ROLE),) | ||
mtu3-y += mtu3_dr.o | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.