blob: 3e3eeea066c8a77b48e810fba8a8c05e380cafc0 [file] [log] [blame]
Stephen Warren79700d22014-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*/
Stephen Warren79700d22014-07-25 17:16:54 -060013#define CONFIG_CI_UDC_HAS_HOSTPC
Stephen Warren79700d22014-07-25 17:16:54 -060014/* USB mass storage protocol */
Paul Kocialkowski045d6052015-06-12 19:56:58 +020015#define CONFIG_USB_FUNCTION_MASS_STORAGE
Stephen Warren79700d22014-07-25 17:16:54 -060016/* DFU protocol */
Paul Kocialkowski045d6052015-06-12 19:56:58 +020017#define CONFIG_USB_FUNCTION_DFU
Stephen Warren8dc8f332015-09-04 22:03:49 -060018#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M
19#define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M
Stephen Warren79700d22014-07-25 17:16:54 -060020#ifdef CONFIG_MMC
21#define CONFIG_DFU_MMC
22#endif
23#ifdef CONFIG_SPI_FLASH
24#define CONFIG_DFU_SF
25#endif
Stephen Warren7516fdb2015-09-04 22:03:51 -060026#define CONFIG_DFU_RAM
Stephen Warren79700d22014-07-25 17:16:54 -060027#endif
28
29#endif /* _TEGRA_COMMON_USB_GADGET_H_ */