Commit 7e1784651b057136847259358a3383c148d6f374

Authored by Marcel Ziswiler
Committed by Tom Warren
1 parent f5fd45ff64

tegra: usb gadget: fix ci udc operation if not hostpc capable

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 <marcel.ziswiler@toradex.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

include/configs/tegra-common-usb-gadget.h
... ... @@ -10,7 +10,9 @@
10 10  
11 11 #ifndef CONFIG_SPL_BUILD
12 12 /* USB gadget mode support*/
  13 +#ifndef CONFIG_TEGRA20
13 14 #define CONFIG_CI_UDC_HAS_HOSTPC
  15 +#endif
14 16 /* USB mass storage protocol */
15 17 #define CONFIG_USB_FUNCTION_MASS_STORAGE
16 18 /* DFU protocol */