]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/tegra-common-usb-gadget.h
usb: gadget: Move CONFIG_USB_GADGET_VBUS_DRAW to Kconfig
[people/ms/u-boot.git] / include / configs / tegra-common-usb-gadget.h
CommitLineData
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_CI_UDC
14#define CONFIG_CI_UDC_HAS_HOSTPC
15#define CONFIG_USB_GADGET_DUALSPEED
98b6d260 16#ifndef CONFIG_G_DNL_VENDOR_NUM
e6607cff 17#define CONFIG_G_DNL_VENDOR_NUM 0x0955
98b6d260
MZ
18#endif
19#ifndef CONFIG_G_DNL_PRODUCT_NUM
e6607cff 20#define CONFIG_G_DNL_PRODUCT_NUM 0x701A
98b6d260
MZ
21#endif
22#ifndef CONFIG_G_DNL_MANUFACTURER
e6607cff 23#define CONFIG_G_DNL_MANUFACTURER "NVIDIA"
98b6d260 24#endif
01acd6ab 25#define CONFIG_USB_GADGET_DOWNLOAD
39446bce 26/* USB mass storage protocol */
01acd6ab 27#define CONFIG_USB_FUNCTION_MASS_STORAGE
e6607cff 28#define CONFIG_CMD_USB_MASS_STORAGE
39446bce 29/* DFU protocol */
01acd6ab 30#define CONFIG_USB_FUNCTION_DFU
f69d72ee
SW
31#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M
32#define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M
39446bce
SW
33#define CONFIG_CMD_DFU
34#ifdef CONFIG_MMC
35#define CONFIG_DFU_MMC
36#endif
37#ifdef CONFIG_SPI_FLASH
38#define CONFIG_DFU_SF
39#endif
aa46b408 40#define CONFIG_DFU_RAM
e6607cff
SW
41#endif
42
39446bce 43#endif /* _TEGRA_COMMON_USB_GADGET_H_ */