2018-05-07 05:58:06 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2014-05-30 05:29:40 +08:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2014
|
|
|
|
* NVIDIA Corporation <www.nvidia.com>
|
|
|
|
*/
|
|
|
|
|
2014-07-26 07:16:54 +08:00
|
|
|
#ifndef _TEGRA_COMMON_USB_GADGET_H_
|
|
|
|
#define _TEGRA_COMMON_USB_GADGET_H_
|
2014-05-30 05:29:40 +08:00
|
|
|
|
|
|
|
#ifndef CONFIG_SPL_BUILD
|
2014-07-26 07:16:54 +08:00
|
|
|
/* USB gadget mode support*/
|
2016-09-28 17:24:05 +08:00
|
|
|
#ifndef CONFIG_TEGRA20
|
2014-05-30 05:29:40 +08:00
|
|
|
#define CONFIG_CI_UDC_HAS_HOSTPC
|
2016-09-28 17:24:05 +08:00
|
|
|
#endif
|
2014-07-26 07:16:54 +08:00
|
|
|
/* DFU protocol */
|
2015-09-05 12:03:49 +08:00
|
|
|
#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M
|
|
|
|
#define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M
|
2014-05-30 05:29:40 +08:00
|
|
|
#endif
|
|
|
|
|
2014-07-26 07:16:54 +08:00
|
|
|
#endif /* _TEGRA_COMMON_USB_GADGET_H_ */
|