blob: e6b61c4e8fd36b6f38d8f464bcbbe1a6d5f011bd [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Stephen Warren79700d22014-07-25 17:16:54 -06002/*
3 * (C) Copyright 2014
4 * NVIDIA Corporation <www.nvidia.com>
Stephen Warren79700d22014-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 Ziswilerc88198e2016-09-28 11:24:05 +020012#ifndef CONFIG_TEGRA20
Stephen Warren79700d22014-07-25 17:16:54 -060013#define CONFIG_CI_UDC_HAS_HOSTPC
Marcel Ziswilerc88198e2016-09-28 11:24:05 +020014#endif
Stephen Warren79700d22014-07-25 17:16:54 -060015/* DFU protocol */
Stephen Warren8dc8f332015-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 Warren79700d22014-07-25 17:16:54 -060018#endif
19
20#endif /* _TEGRA_COMMON_USB_GADGET_H_ */