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