mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-28 07:03:31 +08:00
usb: gadget: Move USBNET_HOST_ADDR to Kconfig
While the USB Ethernet device address is already defined in Kconfig, the host address isn't. Convert it. Reviewed-by: Łukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
parent
74e7997c70
commit
c163668a4a
@ -61,5 +61,6 @@ CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
|
||||
CONFIG_G_DNL_VENDOR_NUM=0x0403
|
||||
CONFIG_G_DNL_PRODUCT_NUM=0xbd00
|
||||
CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00"
|
||||
CONFIG_FAT_WRITE=y
|
||||
CONFIG_OF_LIBFDT=y
|
||||
|
@ -40,6 +40,7 @@ CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
|
||||
CONFIG_G_DNL_VENDOR_NUM=0x0451
|
||||
CONFIG_G_DNL_PRODUCT_NUM=0xd022
|
||||
CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00"
|
||||
CONFIG_LZO=y
|
||||
CONFIG_OF_LIBFDT=y
|
||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||
|
@ -35,6 +35,7 @@ CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
|
||||
CONFIG_G_DNL_VENDOR_NUM=0x0451
|
||||
CONFIG_G_DNL_PRODUCT_NUM=0xd022
|
||||
CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00"
|
||||
CONFIG_LZO=y
|
||||
CONFIG_OF_LIBFDT=y
|
||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||
|
@ -74,6 +74,7 @@ CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_G_DNL_MANUFACTURER="Siemens AG"
|
||||
CONFIG_G_DNL_VENDOR_NUM=0x0908
|
||||
CONFIG_G_DNL_PRODUCT_NUM=0x02d2
|
||||
CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00"
|
||||
# CONFIG_VIDEO_SW_CURSOR is not set
|
||||
CONFIG_SYS_CONSOLE_BG_COL=0xff
|
||||
CONFIG_SYS_CONSOLE_FG_COL=0x00
|
||||
|
@ -70,3 +70,4 @@ CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_G_DNL_MANUFACTURER="Siemens AG"
|
||||
CONFIG_G_DNL_VENDOR_NUM=0x0908
|
||||
CONFIG_G_DNL_PRODUCT_NUM=0x02d2
|
||||
CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00"
|
||||
|
@ -38,4 +38,5 @@ CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_G_DNL_MANUFACTURER="FSL"
|
||||
CONFIG_G_DNL_VENDOR_NUM=0x0525
|
||||
CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00"
|
||||
CONFIG_OF_LIBFDT=y
|
||||
|
@ -36,4 +36,5 @@ CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_G_DNL_MANUFACTURER="FSL"
|
||||
CONFIG_G_DNL_VENDOR_NUM=0x0525
|
||||
CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00"
|
||||
CONFIG_OF_LIBFDT=y
|
||||
|
@ -128,4 +128,11 @@ config USBNET_DEVADDR
|
||||
Ethernet MAC address of the device-side (ie. local board's) MAC
|
||||
address of the usb_ether interface
|
||||
|
||||
config USBNET_HOST_ADDR
|
||||
string "USB Gadget Ethernet host mac address"
|
||||
default "de:ad:be:ef:00:00"
|
||||
help
|
||||
Ethernet MAC address of the host-side (ie. remote device's) MAC
|
||||
address of the usb_ether interface
|
||||
|
||||
endif # USB_GADGET
|
||||
|
@ -266,7 +266,6 @@
|
||||
#ifdef CONFIG_USB_MUSB_GADGET
|
||||
#define CONFIG_USB_ETHER
|
||||
#define CONFIG_USB_ETH_RNDIS
|
||||
#define CONFIG_USBNET_HOST_ADDR "de:ad:be:af:00:00"
|
||||
#endif /* CONFIG_USB_MUSB_GADGET */
|
||||
|
||||
/*
|
||||
|
@ -286,7 +286,6 @@
|
||||
#ifdef CONFIG_USB_MUSB_GADGET
|
||||
#define CONFIG_USB_ETHER
|
||||
#define CONFIG_USB_ETH_RNDIS
|
||||
#define CONFIG_USBNET_HOST_ADDR "de:ad:be:af:00:00"
|
||||
#endif /* CONFIG_USB_MUSB_GADGET */
|
||||
|
||||
#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USBETH_SUPPORT)
|
||||
|
@ -127,7 +127,6 @@
|
||||
#define CONFIG_USB_ETH_SUBSET
|
||||
|
||||
#define CONFIG_USBNET_DEV_ADDR "de:ad:be:ef:00:01"
|
||||
#define CONFIG_USBNET_HOST_ADDR "de:ad:be:ef:00:02"
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
"stdin=serial\0" \
|
||||
"stdout=serial\0" \
|
||||
|
@ -181,7 +181,6 @@
|
||||
#ifdef CONFIG_USB_MUSB_GADGET
|
||||
#define CONFIG_USB_ETHER
|
||||
#define CONFIG_USB_ETH_RNDIS
|
||||
#define CONFIG_USBNET_HOST_ADDR "de:ad:be:af:00:00"
|
||||
#endif /* CONFIG_USB_MUSB_GADGET */
|
||||
|
||||
/* USB DRACO ID as default */
|
||||
|
@ -139,7 +139,6 @@
|
||||
#define CONFIG_USB_ETHER
|
||||
#define CONFIG_USB_ETH_CDC
|
||||
#define CONFIG_USB_ETH_RNDIS
|
||||
#define CONFIG_USBNET_HOST_ADDR "de:ad:be:af:00:00"
|
||||
#define CONFIG_USBNET_DEV_ADDR "de:ad:be:af:00:01"
|
||||
|
||||
#endif
|
||||
|
@ -4973,7 +4973,6 @@ CONFIG_USBD_SERIAL_OUT_PKTSIZE
|
||||
CONFIG_USBD_VENDORID
|
||||
CONFIG_USBID_ADDR
|
||||
CONFIG_USBNET_DEV_ADDR
|
||||
CONFIG_USBNET_HOST_ADDR
|
||||
CONFIG_USBNET_MANUFACTURER
|
||||
CONFIG_USBTTY
|
||||
CONFIG_USB_AM35X
|
||||
|
Loading…
Reference in New Issue
Block a user