]>
Commit | Line | Data |
---|---|---|
e6607cff SW |
1 | /* |
2 | * (C) Copyright 2014 | |
3 | * NVIDIA Corporation <www.nvidia.com> | |
4 | * | |
5 | * SPDX-License-Identifier: GPL-2.0 | |
6 | */ | |
7 | ||
39446bce SW |
8 | #ifndef _TEGRA_COMMON_USB_GADGET_H_ |
9 | #define _TEGRA_COMMON_USB_GADGET_H_ | |
e6607cff SW |
10 | |
11 | #ifndef CONFIG_SPL_BUILD | |
39446bce | 12 | /* USB gadget mode support*/ |
e6607cff SW |
13 | #define CONFIG_USB_GADGET |
14 | #define CONFIG_USB_GADGET_VBUS_DRAW 2 | |
15 | #define CONFIG_CI_UDC | |
16 | #define CONFIG_CI_UDC_HAS_HOSTPC | |
17 | #define CONFIG_USB_GADGET_DUALSPEED | |
98b6d260 | 18 | #ifndef CONFIG_G_DNL_VENDOR_NUM |
e6607cff | 19 | #define CONFIG_G_DNL_VENDOR_NUM 0x0955 |
98b6d260 MZ |
20 | #endif |
21 | #ifndef CONFIG_G_DNL_PRODUCT_NUM | |
e6607cff | 22 | #define CONFIG_G_DNL_PRODUCT_NUM 0x701A |
98b6d260 MZ |
23 | #endif |
24 | #ifndef CONFIG_G_DNL_MANUFACTURER | |
e6607cff | 25 | #define CONFIG_G_DNL_MANUFACTURER "NVIDIA" |
98b6d260 | 26 | #endif |
01acd6ab | 27 | #define CONFIG_USB_GADGET_DOWNLOAD |
39446bce | 28 | /* USB mass storage protocol */ |
01acd6ab | 29 | #define CONFIG_USB_FUNCTION_MASS_STORAGE |
e6607cff | 30 | #define CONFIG_CMD_USB_MASS_STORAGE |
39446bce | 31 | /* DFU protocol */ |
01acd6ab | 32 | #define CONFIG_USB_FUNCTION_DFU |
39446bce SW |
33 | #define CONFIG_SYS_DFU_DATA_BUF_SIZE (1 * 1024 * 1024) |
34 | #define CONFIG_CMD_DFU | |
35 | #ifdef CONFIG_MMC | |
36 | #define CONFIG_DFU_MMC | |
37 | #endif | |
38 | #ifdef CONFIG_SPI_FLASH | |
39 | #define CONFIG_DFU_SF | |
40 | #endif | |
e6607cff SW |
41 | #endif |
42 | ||
39446bce | 43 | #endif /* _TEGRA_COMMON_USB_GADGET_H_ */ |