Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2014 |
| 4 | * NVIDIA Corporation <www.nvidia.com> |
Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 5 | */ |
| 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 Ziswiler | c88198e | 2016-09-28 11:24:05 +0200 | [diff] [blame] | 12 | #ifndef CONFIG_TEGRA20 |
Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 13 | #define CONFIG_CI_UDC_HAS_HOSTPC |
Marcel Ziswiler | c88198e | 2016-09-28 11:24:05 +0200 | [diff] [blame] | 14 | #endif |
Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 15 | /* DFU protocol */ |
Stephen Warren | 8dc8f33 | 2015-09-04 22:03:49 -0600 | [diff] [blame] | 16 | #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M |
| 17 | #define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M |
Stephen Warren | 79700d2 | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 18 | #endif |
| 19 | |
| 20 | #endif /* _TEGRA_COMMON_USB_GADGET_H_ */ |