usb: gadget: Move USBNET_HOST_ADDR to Kconfig
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 6 Sep 2017 20:53:43 +0000 (22:53 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 3 Oct 2017 17:12:04 +0000 (19:12 +0200)
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>
14 files changed:
configs/am335x_baltos_defconfig
configs/am335x_boneblack_defconfig
configs/am335x_evm_norboot_defconfig
configs/pxm2_defconfig
configs/rastaban_defconfig
configs/warp7_defconfig
configs/warp7_secure_defconfig
drivers/usb/gadget/Kconfig
include/configs/am335x_evm.h
include/configs/baltos.h
include/configs/h2200.h
include/configs/siemens-am33x-common.h
include/configs/warp7.h
scripts/config_whitelist.txt

index 2842694dbc80702e2e089167f679b8c532d3d70d..9d8e9ccc70f5727d879b96da3f153dd29cc78b3f 100644 (file)
@@ -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
index 2fc25fbaaba111b635643c4fd5bd5f554dcd7907..eea2410c94c59ac184a6f6d1b34fae578bc10643 100644 (file)
@@ -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
index c5e7425a7797e5d0adcf335ff94bd6e1b7ac50e3..c9eab68c82991db027e92af8c7586821dcff0733 100644 (file)
@@ -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
index 38370ee8d8f58dd728c92c66b559959617875f9e..b1da71d4c7ed421c97b5e970bd7018ff9f33e940 100644 (file)
@@ -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
index 5acfe22b0a6d4509e68783262fc332ff57e826ed..940c4144d406fa44a99848fc419e1a0396843d63 100644 (file)
@@ -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"
index 99fe800317c26a7e4b0d307fbe884e0f8957cf43..f430f30bbbe56335cf1ffed8c129726f55abd755 100644 (file)
@@ -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
index 8beda72cd88229ffffe6477d55b6896c92dbe839..96e2c9e5cfde5d4c5207f5974deb9a79dd88a4b4 100644 (file)
@@ -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
index 6dc9d177f5ad37f27bf4c546c2d7f9b97bfc6d74..510efd67b9a4b37ccce5b9dbc88f239b198727cf 100644 (file)
@@ -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
index 415ce46e0d8dce1040d9b9e126863ff5651d0361..7c025c7e46c86f5c54a67cd867adf5b1d8919ec5 100644 (file)
 #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 */
 
 /*
index 185c749d78681542dc5d34a581428479fba78d20..535fdd4373b0091e64f79075c357da5b3c75f778 100644 (file)
 #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)
index 870014ddf4750d13bd999b27278bf789c5174c72..e956e89a89d5aee8b354996136ba1cb6a3fece46 100644 (file)
 #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" \
index 2314a2d2ef35473626ee7995874f3ad34ccad0b8..2bcd77e9efc8a32c00a5236395388b3edeb4a9e5 100644 (file)
 #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 */
index 75ae8a3e3338be93cdaf6b851fdf9587a1cc8627..9ce425156677e7c62247d5144af72ffea1ea6922 100644 (file)
 #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
index db5d88b4b560cb3b5538217e55b34b3bb763b353..1221204304740b5208fba0cf2aa253fbe6b0278d 100644 (file)
@@ -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