blob: e6b61c4e8fd36b6f38d8f464bcbbe1a6d5f011bd [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Stephen Warren39446bc2014-07-25 17:16:54 -06002/*
3 * (C) Copyright 2014
4 * NVIDIA Corporation <www.nvidia.com>
Stephen Warren39446bc2014-07-25 17:16:54 -06005 */
6
7#ifndef _TEGRA_COMMON_USB_GADGET_H_
8#define _TEGRA_COMMON_USB_GADGET_H_
9
10#ifndef CONFIG_SPL_BUILD
11/* USB gadget mode support*/
Marcel Ziswiler7e178462016-09-28 11:24:05 +020012#ifndef CONFIG_TEGRA20
Stephen Warren39446bc2014-07-25 17:16:54 -060013#define CONFIG_CI_UDC_HAS_HOSTPC
Marcel Ziswiler7e178462016-09-28 11:24:05 +020014#endif
Stephen Warren39446bc2014-07-25 17:16:54 -060015/* DFU protocol */
Stephen Warrenf69d72e2015-09-04 22:03:49 -060016#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M
17#define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M
Stephen Warren39446bc2014-07-25 17:16:54 -060018#endif
19
20#endif /* _TEGRA_COMMON_USB_GADGET_H_ */