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_CI_UDC_HAS_HOSTPC
|
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-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
|
|
|
#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_ */
|