blob: f6e1d5c4db2dc9b7ccd6f87e90b6c8fe30ab9b04 [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
Marcel Ziswiler98b6d262015-08-06 00:46:58 +020018#ifndef CONFIG_G_DNL_VENDOR_NUM
Stephen Warren39446bc2014-07-25 17:16:54 -060019#define CONFIG_G_DNL_VENDOR_NUM 0x0955
Marcel Ziswiler98b6d262015-08-06 00:46:58 +020020#endif
21#ifndef CONFIG_G_DNL_PRODUCT_NUM
Stephen Warren39446bc2014-07-25 17:16:54 -060022#define CONFIG_G_DNL_PRODUCT_NUM 0x701A
Marcel Ziswiler98b6d262015-08-06 00:46:58 +020023#endif
24#ifndef CONFIG_G_DNL_MANUFACTURER
Stephen Warren39446bc2014-07-25 17:16:54 -060025#define CONFIG_G_DNL_MANUFACTURER "NVIDIA"
Marcel Ziswiler98b6d262015-08-06 00:46:58 +020026#endif
Paul Kocialkowski01acd6a2015-06-12 19:56:58 +020027#define CONFIG_USB_GADGET_DOWNLOAD
Stephen Warren39446bc2014-07-25 17:16:54 -060028/* USB mass storage protocol */
Paul Kocialkowski01acd6a2015-06-12 19:56:58 +020029#define CONFIG_USB_FUNCTION_MASS_STORAGE
Stephen Warren39446bc2014-07-25 17:16:54 -060030#define CONFIG_CMD_USB_MASS_STORAGE
31/* DFU protocol */
Paul Kocialkowski01acd6a2015-06-12 19:56:58 +020032#define CONFIG_USB_FUNCTION_DFU
Stephen Warrenf69d72e2015-09-04 22:03:49 -060033#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M
34#define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M
Stephen Warren39446bc2014-07-25 17:16:54 -060035#define CONFIG_CMD_DFU
36#ifdef CONFIG_MMC
37#define CONFIG_DFU_MMC
38#endif
39#ifdef CONFIG_SPI_FLASH
40#define CONFIG_DFU_SF
41#endif
Stephen Warrenaa46b402015-09-04 22:03:51 -060042#define CONFIG_DFU_RAM
Stephen Warren39446bc2014-07-25 17:16:54 -060043#endif
44
45#endif /* _TEGRA_COMMON_USB_GADGET_H_ */