]> git.ipfire.org Git - people/ms/u-boot.git/blame_incremental - include/configs/tegra-common-usb-gadget.h
Merge git://git.denx.de/u-boot-socfpga
[people/ms/u-boot.git] / include / configs / tegra-common-usb-gadget.h
... / ...
CommitLineData
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*/
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#ifndef CONFIG_G_DNL_VENDOR_NUM
19#define CONFIG_G_DNL_VENDOR_NUM 0x0955
20#endif
21#ifndef CONFIG_G_DNL_PRODUCT_NUM
22#define CONFIG_G_DNL_PRODUCT_NUM 0x701A
23#endif
24#ifndef CONFIG_G_DNL_MANUFACTURER
25#define CONFIG_G_DNL_MANUFACTURER "NVIDIA"
26#endif
27#define CONFIG_USB_GADGET_DOWNLOAD
28/* USB mass storage protocol */
29#define CONFIG_USB_FUNCTION_MASS_STORAGE
30#define CONFIG_CMD_USB_MASS_STORAGE
31/* DFU protocol */
32#define CONFIG_USB_FUNCTION_DFU
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
41#endif
42
43#endif /* _TEGRA_COMMON_USB_GADGET_H_ */