blob: 287460c132bc5068199447dfb0d8e039d8f52ca0 [file] [log] [blame]
Stephen Warren39446bc2014-07-25 17:16:54 -06001/*
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*/
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
18#define CONFIG_G_DNL_VENDOR_NUM 0x0955
19#define CONFIG_G_DNL_PRODUCT_NUM 0x701A
20#define CONFIG_G_DNL_MANUFACTURER "NVIDIA"
21#define CONFIG_USBDOWNLOAD_GADGET
22/* USB mass storage protocol */
23#define CONFIG_USB_GADGET_MASS_STORAGE
24#define CONFIG_CMD_USB_MASS_STORAGE
25/* DFU protocol */
26#define CONFIG_DFU_FUNCTION
27#define CONFIG_SYS_DFU_DATA_BUF_SIZE (1 * 1024 * 1024)
28#define CONFIG_CMD_DFU
29#ifdef CONFIG_MMC
30#define CONFIG_DFU_MMC
31#endif
32#ifdef CONFIG_SPI_FLASH
33#define CONFIG_DFU_SF
34#endif
35#endif
36
37#endif /* _TEGRA_COMMON_USB_GADGET_H_ */