mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 07:57:21 +00:00
6828e602b7
Introduce a hidden USB_FUNCTION_DFU Kconfig option and select it for CMD_DFU (as we must have the DFU command enabled to do anything DFU). Make all of the entries in drivers/dfu/Kconfig depend on CMD_DFU and add options for all of the back end choices that DFU can make use of. Cc: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Tom Rini <trini@konsulko.com> Acked-by: Lukasz Majewski <l.majewski@samsung.com>
21 lines
500 B
C
21 lines
500 B
C
/*
|
|
* (C) Copyright 2014
|
|
* NVIDIA Corporation <www.nvidia.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0
|
|
*/
|
|
|
|
#ifndef _TEGRA_COMMON_USB_GADGET_H_
|
|
#define _TEGRA_COMMON_USB_GADGET_H_
|
|
|
|
#ifndef CONFIG_SPL_BUILD
|
|
/* USB gadget mode support*/
|
|
#define CONFIG_CI_UDC_HAS_HOSTPC
|
|
/* USB mass storage protocol */
|
|
#define CONFIG_USB_FUNCTION_MASS_STORAGE
|
|
/* DFU protocol */
|
|
#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M
|
|
#define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M
|
|
#endif
|
|
|
|
#endif /* _TEGRA_COMMON_USB_GADGET_H_ */
|