Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2014 |
| 3 | * NVIDIA Corporation <www.nvidia.com> |
| 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0 |
| 6 | */ |
| 7 | |
| 8 | #ifndef _TEGRA_COMMON_USB_GADGET_H_ |
| 9 | #define _TEGRA_COMMON_USB_GADGET_H_ |
| 10 | |
| 11 | #ifndef CONFIG_SPL_BUILD |
| 12 | /* USB gadget mode support*/ |
Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 13 | #define CONFIG_USB_GADGET_VBUS_DRAW 2 |
| 14 | #define CONFIG_CI_UDC |
| 15 | #define CONFIG_CI_UDC_HAS_HOSTPC |
| 16 | #define CONFIG_USB_GADGET_DUALSPEED |
Marcel Ziswiler | 958d98a | 2015-08-06 00:46:58 +0200 | [diff] [blame] | 17 | #ifndef CONFIG_G_DNL_VENDOR_NUM |
Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 18 | #define CONFIG_G_DNL_VENDOR_NUM 0x0955 |
Marcel Ziswiler | 958d98a | 2015-08-06 00:46:58 +0200 | [diff] [blame] | 19 | #endif |
| 20 | #ifndef CONFIG_G_DNL_PRODUCT_NUM |
Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 21 | #define CONFIG_G_DNL_PRODUCT_NUM 0x701A |
Marcel Ziswiler | 958d98a | 2015-08-06 00:46:58 +0200 | [diff] [blame] | 22 | #endif |
| 23 | #ifndef CONFIG_G_DNL_MANUFACTURER |
Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 24 | #define CONFIG_G_DNL_MANUFACTURER "NVIDIA" |
Marcel Ziswiler | 958d98a | 2015-08-06 00:46:58 +0200 | [diff] [blame] | 25 | #endif |
Paul Kocialkowski | 045d605 | 2015-06-12 19:56:58 +0200 | [diff] [blame] | 26 | #define CONFIG_USB_GADGET_DOWNLOAD |
Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 27 | /* USB mass storage protocol */ |
Paul Kocialkowski | 045d605 | 2015-06-12 19:56:58 +0200 | [diff] [blame] | 28 | #define CONFIG_USB_FUNCTION_MASS_STORAGE |
Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 29 | #define CONFIG_CMD_USB_MASS_STORAGE |
| 30 | /* DFU protocol */ |
Paul Kocialkowski | 045d605 | 2015-06-12 19:56:58 +0200 | [diff] [blame] | 31 | #define CONFIG_USB_FUNCTION_DFU |
Stephen Warren | 8dc8f33 | 2015-09-04 22:03:49 -0600 | [diff] [blame] | 32 | #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M |
| 33 | #define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M |
Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 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 |
Stephen Warren | 7516fdb | 2015-09-04 22:03:51 -0600 | [diff] [blame] | 41 | #define CONFIG_DFU_RAM |
Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 42 | #endif |
| 43 | |
| 44 | #endif /* _TEGRA_COMMON_USB_GADGET_H_ */ |