summaryrefslogtreecommitdiff
path: root/include/configs/tegra-common-usb-gadget.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/tegra-common-usb-gadget.h')
-rw-r--r--include/configs/tegra-common-usb-gadget.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/configs/tegra-common-usb-gadget.h b/include/configs/tegra-common-usb-gadget.h
new file mode 100644
index 0000000..e6b61c4
--- /dev/null
+++ b/include/configs/tegra-common-usb-gadget.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * (C) Copyright 2014
+ * NVIDIA Corporation <www.nvidia.com>
+ */
+
+#ifndef _TEGRA_COMMON_USB_GADGET_H_
+#define _TEGRA_COMMON_USB_GADGET_H_
+
+#ifndef CONFIG_SPL_BUILD
+/* USB gadget mode support*/
+#ifndef CONFIG_TEGRA20
+#define CONFIG_CI_UDC_HAS_HOSTPC
+#endif
+/* DFU protocol */
+#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M
+#define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M
+#endif
+
+#endif /* _TEGRA_COMMON_USB_GADGET_H_ */