tegra: usb gadget: fix ci udc operation if not hostpc capable
authorMarcel Ziswiler <[email protected]>
Wed, 28 Sep 2016 09:24:05 +0000 (11:24 +0200)
committerTom Warren <[email protected]>
Mon, 10 Oct 2016 17:44:37 +0000 (10:44 -0700)
The Tegra 2 aka T20 is not host PC capable. Therefore gate the define
CONFIG_CI_UDC_HAS_HOSTPC in tegra-common-usb-gadget.h in case of
CONFIG_TEGRA20.

Signed-off-by: Marcel Ziswiler <[email protected]>
Acked-by: Stephen Warren <[email protected]>
Signed-off-by: Tom Warren <[email protected]>
include/configs/tegra-common-usb-gadget.h

index 00f854eb71fa303dd420c2f6f315b42c7f1849bb..58a5a300f31cdea00b7869f97d007003be06aebf 100644 (file)
@@ -10,7 +10,9 @@
 
 #ifndef CONFIG_SPL_BUILD
 /* USB gadget mode support*/
+#ifndef CONFIG_TEGRA20
 #define CONFIG_CI_UDC_HAS_HOSTPC
+#endif
 /* USB mass storage protocol */
 #define CONFIG_USB_FUNCTION_MASS_STORAGE
 /* DFU protocol */