2014-05-29 21:29:40 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2014
|
|
|
|
* NVIDIA Corporation <www.nvidia.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0
|
|
|
|
*/
|
|
|
|
|
2014-07-25 23:16:54 +00:00
|
|
|
#ifndef _TEGRA_COMMON_USB_GADGET_H_
|
|
|
|
#define _TEGRA_COMMON_USB_GADGET_H_
|
2014-05-29 21:29:40 +00:00
|
|
|
|
|
|
|
#ifndef CONFIG_SPL_BUILD
|
2014-07-25 23:16:54 +00:00
|
|
|
/* USB gadget mode support*/
|
2014-05-29 21:29:40 +00:00
|
|
|
#define CONFIG_USB_GADGET_VBUS_DRAW 2
|
|
|
|
#define CONFIG_CI_UDC
|
|
|
|
#define CONFIG_CI_UDC_HAS_HOSTPC
|
|
|
|
#define CONFIG_USB_GADGET_DUALSPEED
|
2015-08-05 22:46:58 +00:00
|
|
|
#ifndef CONFIG_G_DNL_VENDOR_NUM
|
2014-05-29 21:29:40 +00:00
|
|
|
#define CONFIG_G_DNL_VENDOR_NUM 0x0955
|
2015-08-05 22:46:58 +00:00
|
|
|
#endif
|
|
|
|
#ifndef CONFIG_G_DNL_PRODUCT_NUM
|
2014-05-29 21:29:40 +00:00
|
|
|
#define CONFIG_G_DNL_PRODUCT_NUM 0x701A
|
2015-08-05 22:46:58 +00:00
|
|
|
#endif
|
|
|
|
#ifndef CONFIG_G_DNL_MANUFACTURER
|
2014-05-29 21:29:40 +00:00
|
|
|
#define CONFIG_G_DNL_MANUFACTURER "NVIDIA"
|
2015-08-05 22:46:58 +00:00
|
|
|
#endif
|
2015-06-12 17:56:58 +00:00
|
|
|
#define CONFIG_USB_GADGET_DOWNLOAD
|
2014-07-25 23:16:54 +00:00
|
|
|
/* USB mass storage protocol */
|
2015-06-12 17:56:58 +00:00
|
|
|
#define CONFIG_USB_FUNCTION_MASS_STORAGE
|
2014-05-29 21:29:40 +00:00
|
|
|
#define CONFIG_CMD_USB_MASS_STORAGE
|
2014-07-25 23:16:54 +00:00
|
|
|
/* DFU protocol */
|
2015-06-12 17:56:58 +00:00
|
|
|
#define CONFIG_USB_FUNCTION_DFU
|
2015-09-05 04:03:49 +00:00
|
|
|
#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M
|
|
|
|
#define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M
|
2014-07-25 23:16:54 +00:00
|
|
|
#define CONFIG_CMD_DFU
|
|
|
|
#ifdef CONFIG_MMC
|
|
|
|
#define CONFIG_DFU_MMC
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_SPI_FLASH
|
|
|
|
#define CONFIG_DFU_SF
|
|
|
|
#endif
|
2015-09-05 04:03:51 +00:00
|
|
|
#define CONFIG_DFU_RAM
|
2014-05-29 21:29:40 +00:00
|
|
|
#endif
|
|
|
|
|
2014-07-25 23:16:54 +00:00
|
|
|
#endif /* _TEGRA_COMMON_USB_GADGET_H_ */
|