blob: 58a5a300f31cdea00b7869f97d007003be06aebf [file] [log] [blame]
Stephen Warren39446bc2014-07-25 17:16:54 -06001/*
2 * (C) Copyright 2014
3 * NVIDIA Corporation <www.nvidia.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0
6 */
7
8#ifndef _TEGRA_COMMON_USB_GADGET_H_
9#define _TEGRA_COMMON_USB_GADGET_H_
10
11#ifndef CONFIG_SPL_BUILD
12/* USB gadget mode support*/
Marcel Ziswiler7e178462016-09-28 11:24:05 +020013#ifndef CONFIG_TEGRA20
Stephen Warren39446bc2014-07-25 17:16:54 -060014#define CONFIG_CI_UDC_HAS_HOSTPC
Marcel Ziswiler7e178462016-09-28 11:24:05 +020015#endif
Stephen Warren39446bc2014-07-25 17:16:54 -060016/* USB mass storage protocol */
Paul Kocialkowski01acd6a2015-06-12 19:56:58 +020017#define CONFIG_USB_FUNCTION_MASS_STORAGE
Stephen Warren39446bc2014-07-25 17:16:54 -060018/* DFU protocol */
Stephen Warrenf69d72e2015-09-04 22:03:49 -060019#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M
20#define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M
Stephen Warren39446bc2014-07-25 17:16:54 -060021#endif
22
23#endif /* _TEGRA_COMMON_USB_GADGET_H_ */