3 * NVIDIA Corporation <www.nvidia.com>
5 * SPDX-License-Identifier: GPL-2.0
8 #ifndef _TEGRA_COMMON_USB_GADGET_H_
9 #define _TEGRA_COMMON_USB_GADGET_H_
11 #ifndef CONFIG_SPL_BUILD
12 /* USB gadget mode support*/
13 #define CONFIG_CI_UDC_HAS_HOSTPC
14 /* USB mass storage protocol */
15 #define CONFIG_USB_FUNCTION_MASS_STORAGE
17 #define CONFIG_USB_FUNCTION_DFU
18 #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M
19 #define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M
21 #define CONFIG_DFU_MMC
23 #ifdef CONFIG_SPI_FLASH
26 #define CONFIG_DFU_RAM
29 #endif /* _TEGRA_COMMON_USB_GADGET_H_ */