Stephen Warren | 39446bc | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 1 | /* |
| 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*/ |
Stephen Warren | 39446bc | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 13 | #define CONFIG_CI_UDC_HAS_HOSTPC |
Stephen Warren | 39446bc | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 14 | /* USB mass storage protocol */ |
Paul Kocialkowski | 01acd6a | 2015-06-12 19:56:58 +0200 | [diff] [blame] | 15 | #define CONFIG_USB_FUNCTION_MASS_STORAGE |
Stephen Warren | 39446bc | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 16 | /* DFU protocol */ |
Stephen Warren | f69d72e | 2015-09-04 22:03:49 -0600 | [diff] [blame] | 17 | #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M |
| 18 | #define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M |
Stephen Warren | 39446bc | 2014-07-25 17:16:54 -0600 | [diff] [blame] | 19 | #endif |
| 20 | |
| 21 | #endif /* _TEGRA_COMMON_USB_GADGET_H_ */ |