mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 00:48:52 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
The meaning of CONFIG_USB in U-Boot is different from that in Linux. As you see in drivers/usb/Kconfig of Linux, CONFIG_USB enables the USB host controller support, while CONFIG_USB_SUPPORT is used to enable the whole of the USB sub-system. When I added CONFIG_USB into Kconfig by commit6e7e9294d3
("usb: add basic USB configs in Kconfig"), I planned to follow the Linux's convention, i.e. CONFIG_USB to enable/disable the USB host support. Then, commit68f7c5db2d
("usb: Generic USB Kconfig option, that fits both host and gadget and comments") changed the logic of the CONFIG_USB to point to the whole of the USB sub-system. As a result, currently we do not have an option for USB host. This commit adds CONFIG_USB_HOST, which will be useful to compile in the USB host support code. CONFIG_USB_HOST is not referenced at all, but strangely some boards define it in board headers. I removed them because USB_HOST will be selected in Kconfig going forward. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
48 lines
1.1 KiB
C
48 lines
1.1 KiB
C
/*
|
|
* (C) Copyright 2010
|
|
* Texas Instruments Incorporated.
|
|
* Steve Sakoman <steve@sakoman.com>
|
|
*
|
|
* Configuration settings for the TI OMAP4 Panda board.
|
|
* See ti_omap4_common.h for OMAP4 common part
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __CONFIG_PANDA_H
|
|
#define __CONFIG_PANDA_H
|
|
|
|
/*
|
|
* High Level Configuration Options
|
|
*/
|
|
|
|
/* USB UHH support options */
|
|
#define CONFIG_USB_EHCI
|
|
#define CONFIG_USB_EHCI_OMAP
|
|
#define CONFIG_USB_STORAGE
|
|
#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3
|
|
|
|
#define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO 1
|
|
#define CONFIG_OMAP_EHCI_PHY2_RESET_GPIO 62
|
|
|
|
/* USB Networking options */
|
|
#define CONFIG_USB_HOST_ETHER
|
|
#define CONFIG_USB_ETHER_SMSC95XX
|
|
|
|
#define CONFIG_UBOOT_ENABLE_PADS_ALL
|
|
|
|
#include <configs/ti_omap4_common.h>
|
|
|
|
/* GPIO */
|
|
|
|
/* ENV related config options */
|
|
|
|
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
|
#define CONFIG_ENV_IS_IN_FAT
|
|
#define FAT_ENV_INTERFACE "mmc"
|
|
#define FAT_ENV_DEVICE_AND_PART "0:1"
|
|
#define FAT_ENV_FILE "uboot.env"
|
|
#define CONFIG_ENV_OVERWRITE
|
|
|
|
#endif /* __CONFIG_PANDA_H */
|