blob: c3a01514cab5a95bbda9dcf74edc99d86e7f11bc [file] [log] [blame]
Stephen Warren79700d22014-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*/
Stephen Warren79700d22014-07-25 17:16:54 -060013#define CONFIG_USB_GADGET_VBUS_DRAW 2
14#define CONFIG_CI_UDC
15#define CONFIG_CI_UDC_HAS_HOSTPC
16#define CONFIG_USB_GADGET_DUALSPEED
Marcel Ziswiler958d98a2015-08-06 00:46:58 +020017#ifndef CONFIG_G_DNL_VENDOR_NUM
Stephen Warren79700d22014-07-25 17:16:54 -060018#define CONFIG_G_DNL_VENDOR_NUM 0x0955
Marcel Ziswiler958d98a2015-08-06 00:46:58 +020019#endif
20#ifndef CONFIG_G_DNL_PRODUCT_NUM
Stephen Warren79700d22014-07-25 17:16:54 -060021#define CONFIG_G_DNL_PRODUCT_NUM 0x701A
Marcel Ziswiler958d98a2015-08-06 00:46:58 +020022#endif
23#ifndef CONFIG_G_DNL_MANUFACTURER
Stephen Warren79700d22014-07-25 17:16:54 -060024#define CONFIG_G_DNL_MANUFACTURER "NVIDIA"
Marcel Ziswiler958d98a2015-08-06 00:46:58 +020025#endif
Paul Kocialkowski045d6052015-06-12 19:56:58 +020026#define CONFIG_USB_GADGET_DOWNLOAD
Stephen Warren79700d22014-07-25 17:16:54 -060027/* USB mass storage protocol */
Paul Kocialkowski045d6052015-06-12 19:56:58 +020028#define CONFIG_USB_FUNCTION_MASS_STORAGE
Stephen Warren79700d22014-07-25 17:16:54 -060029#define CONFIG_CMD_USB_MASS_STORAGE
30/* DFU protocol */
Paul Kocialkowski045d6052015-06-12 19:56:58 +020031#define CONFIG_USB_FUNCTION_DFU
Stephen Warren8dc8f332015-09-04 22:03:49 -060032#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M
33#define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M
Stephen Warren79700d22014-07-25 17:16:54 -060034#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
Stephen Warren7516fdb2015-09-04 22:03:51 -060041#define CONFIG_DFU_RAM
Stephen Warren79700d22014-07-25 17:16:54 -060042#endif
43
44#endif /* _TEGRA_COMMON_USB_GADGET_H_ */