mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 00:18:51 +09:00
![Marcel Ziswiler](/assets/img/avatar_default.png)
The Tegra 2 aka T20 is not host PC capable. Therefore gate the define CONFIG_CI_UDC_HAS_HOSTPC in tegra-common-usb-gadget.h in case of CONFIG_TEGRA20. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
24 lines
530 B
C
24 lines
530 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*/
|
|
#ifndef CONFIG_TEGRA20
|
|
#define CONFIG_CI_UDC_HAS_HOSTPC
|
|
#endif
|
|
/* 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_ */
|