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*/
|
2016-09-28 09:24:05 +00:00
|
|
|
#ifndef CONFIG_TEGRA20
|
2014-05-29 21:29:40 +00:00
|
|
|
#define CONFIG_CI_UDC_HAS_HOSTPC
|
2016-09-28 09:24:05 +00:00
|
|
|
#endif
|
2014-07-25 23:16:54 +00:00
|
|
|
/* DFU protocol */
|
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-05-29 21:29:40 +00:00
|
|
|
#endif
|
|
|
|
|
2014-07-25 23:16:54 +00:00
|
|
|
#endif /* _TEGRA_COMMON_USB_GADGET_H_ */
|