Commit e02687bda96cc8ed942e14b558796d3043d24b23

Authored by Maxime Ripard
1 parent 10ac57fda3

sunxi: provide default USB gadget setup

All the Allwinner boards use the same manufacturer, VID and PID for the
gadgets. Make them the defaults to remove some boilerplate from our
defconfigs.

Reviewed-by: Łukasz Majewski <lukma@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Showing 10 changed files with 3 additions and 27 deletions Inline Diff

configs/A13-OLinuXino_defconfig
1 CONFIG_ARM=y 1 CONFIG_ARM=y
2 CONFIG_ARCH_SUNXI=y 2 CONFIG_ARCH_SUNXI=y
3 CONFIG_MACH_SUN5I=y 3 CONFIG_MACH_SUN5I=y
4 CONFIG_DRAM_CLK=408 4 CONFIG_DRAM_CLK=408
5 CONFIG_DRAM_EMR1=0 5 CONFIG_DRAM_EMR1=0
6 CONFIG_MMC0_CD_PIN="PG0" 6 CONFIG_MMC0_CD_PIN="PG0"
7 CONFIG_USB0_VBUS_DET="PG1" 7 CONFIG_USB0_VBUS_DET="PG1"
8 CONFIG_USB1_VBUS_PIN="PG11" 8 CONFIG_USB1_VBUS_PIN="PG11"
9 CONFIG_AXP_GPIO=y 9 CONFIG_AXP_GPIO=y
10 # CONFIG_VIDEO_HDMI is not set 10 # CONFIG_VIDEO_HDMI is not set
11 CONFIG_VIDEO_VGA_VIA_LCD=y 11 CONFIG_VIDEO_VGA_VIA_LCD=y
12 CONFIG_VIDEO_VGA_VIA_LCD_FORCE_SYNC_ACTIVE_HIGH=y 12 CONFIG_VIDEO_VGA_VIA_LCD_FORCE_SYNC_ACTIVE_HIGH=y
13 CONFIG_VIDEO_LCD_POWER="AXP0-0" 13 CONFIG_VIDEO_LCD_POWER="AXP0-0"
14 CONFIG_VIDEO_LCD_BL_PWM="PB2" 14 CONFIG_VIDEO_LCD_BL_PWM="PB2"
15 CONFIG_DEFAULT_DEVICE_TREE="sun5i-a13-olinuxino" 15 CONFIG_DEFAULT_DEVICE_TREE="sun5i-a13-olinuxino"
16 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set 16 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
17 CONFIG_SPL=y 17 CONFIG_SPL=y
18 CONFIG_SPL_I2C_SUPPORT=y 18 CONFIG_SPL_I2C_SUPPORT=y
19 CONFIG_FASTBOOT_FLASH=y 19 CONFIG_FASTBOOT_FLASH=y
20 CONFIG_FASTBOOT_FLASH_MMC_DEV=0 20 CONFIG_FASTBOOT_FLASH_MMC_DEV=0
21 # CONFIG_CMD_IMLS is not set 21 # CONFIG_CMD_IMLS is not set
22 CONFIG_CMD_DFU=y 22 CONFIG_CMD_DFU=y
23 # CONFIG_CMD_FLASH is not set 23 # CONFIG_CMD_FLASH is not set
24 # CONFIG_CMD_FPGA is not set 24 # CONFIG_CMD_FPGA is not set
25 CONFIG_CMD_USB_MASS_STORAGE=y 25 CONFIG_CMD_USB_MASS_STORAGE=y
26 # CONFIG_SPL_DOS_PARTITION is not set 26 # CONFIG_SPL_DOS_PARTITION is not set
27 # CONFIG_SPL_ISO_PARTITION is not set 27 # CONFIG_SPL_ISO_PARTITION is not set
28 # CONFIG_SPL_PARTITION_UUIDS is not set 28 # CONFIG_SPL_PARTITION_UUIDS is not set
29 CONFIG_DFU_RAM=y 29 CONFIG_DFU_RAM=y
30 CONFIG_AXP_ALDO3_VOLT=3300 30 CONFIG_AXP_ALDO3_VOLT=3300
31 CONFIG_USB_EHCI_HCD=y 31 CONFIG_USB_EHCI_HCD=y
32 CONFIG_USB_MUSB_GADGET=y 32 CONFIG_USB_MUSB_GADGET=y
33 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y 33 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
34 CONFIG_USB_GADGET=y 34 CONFIG_USB_GADGET=y
35 CONFIG_USB_GADGET_MANUFACTURER="Allwinner Technology"
36 CONFIG_USB_GADGET_VENDOR_NUM=0x1f3a
37 CONFIG_USB_GADGET_PRODUCT_NUM=0x1010
38 CONFIG_USB_GADGET_DOWNLOAD=y 35 CONFIG_USB_GADGET_DOWNLOAD=y
39 36
configs/A20-OLinuXino-Lime2-eMMC_defconfig
1 CONFIG_ARM=y 1 CONFIG_ARM=y
2 CONFIG_ARCH_SUNXI=y 2 CONFIG_ARCH_SUNXI=y
3 CONFIG_MACH_SUN7I=y 3 CONFIG_MACH_SUN7I=y
4 CONFIG_DRAM_CLK=384 4 CONFIG_DRAM_CLK=384
5 CONFIG_MMC0_CD_PIN="PH1" 5 CONFIG_MMC0_CD_PIN="PH1"
6 CONFIG_MMC_SUNXI_SLOT_EXTRA=2 6 CONFIG_MMC_SUNXI_SLOT_EXTRA=2
7 CONFIG_USB0_VBUS_PIN="PC17" 7 CONFIG_USB0_VBUS_PIN="PC17"
8 CONFIG_USB0_VBUS_DET="PH5" 8 CONFIG_USB0_VBUS_DET="PH5"
9 CONFIG_I2C1_ENABLE=y 9 CONFIG_I2C1_ENABLE=y
10 CONFIG_SATAPWR="PC3" 10 CONFIG_SATAPWR="PC3"
11 CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-olinuxino-lime2-emmc" 11 CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-olinuxino-lime2-emmc"
12 CONFIG_AHCI=y 12 CONFIG_AHCI=y
13 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set 13 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
14 CONFIG_SPL=y 14 CONFIG_SPL=y
15 CONFIG_SPL_I2C_SUPPORT=y 15 CONFIG_SPL_I2C_SUPPORT=y
16 CONFIG_FASTBOOT_FLASH=y 16 CONFIG_FASTBOOT_FLASH=y
17 CONFIG_FASTBOOT_FLASH_MMC_DEV=0 17 CONFIG_FASTBOOT_FLASH_MMC_DEV=0
18 # CONFIG_CMD_IMLS is not set 18 # CONFIG_CMD_IMLS is not set
19 CONFIG_CMD_DFU=y 19 CONFIG_CMD_DFU=y
20 # CONFIG_CMD_FLASH is not set 20 # CONFIG_CMD_FLASH is not set
21 # CONFIG_CMD_FPGA is not set 21 # CONFIG_CMD_FPGA is not set
22 CONFIG_CMD_USB_MASS_STORAGE=y 22 CONFIG_CMD_USB_MASS_STORAGE=y
23 # CONFIG_SPL_DOS_PARTITION is not set 23 # CONFIG_SPL_DOS_PARTITION is not set
24 # CONFIG_SPL_ISO_PARTITION is not set 24 # CONFIG_SPL_ISO_PARTITION is not set
25 # CONFIG_SPL_PARTITION_UUIDS is not set 25 # CONFIG_SPL_PARTITION_UUIDS is not set
26 CONFIG_DFU_RAM=y 26 CONFIG_DFU_RAM=y
27 CONFIG_ETH_DESIGNWARE=y 27 CONFIG_ETH_DESIGNWARE=y
28 CONFIG_RGMII=y 28 CONFIG_RGMII=y
29 CONFIG_SUN7I_GMAC=y 29 CONFIG_SUN7I_GMAC=y
30 CONFIG_AXP_ALDO3_VOLT=2800 30 CONFIG_AXP_ALDO3_VOLT=2800
31 CONFIG_AXP_ALDO4_VOLT=2800 31 CONFIG_AXP_ALDO4_VOLT=2800
32 CONFIG_SCSI=y 32 CONFIG_SCSI=y
33 CONFIG_USB_EHCI_HCD=y 33 CONFIG_USB_EHCI_HCD=y
34 CONFIG_USB_MUSB_GADGET=y 34 CONFIG_USB_MUSB_GADGET=y
35 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y 35 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
36 CONFIG_USB_GADGET=y 36 CONFIG_USB_GADGET=y
37 CONFIG_USB_GADGET_MANUFACTURER="Allwinner Technology"
38 CONFIG_USB_GADGET_VENDOR_NUM=0x1f3a
39 CONFIG_USB_GADGET_PRODUCT_NUM=0x1010
40 CONFIG_USB_GADGET_DOWNLOAD=y 37 CONFIG_USB_GADGET_DOWNLOAD=y
41 38
configs/A20-OLinuXino-Lime2_defconfig
1 CONFIG_ARM=y 1 CONFIG_ARM=y
2 CONFIG_ARCH_SUNXI=y 2 CONFIG_ARCH_SUNXI=y
3 CONFIG_MACH_SUN7I=y 3 CONFIG_MACH_SUN7I=y
4 CONFIG_DRAM_CLK=384 4 CONFIG_DRAM_CLK=384
5 CONFIG_MMC0_CD_PIN="PH1" 5 CONFIG_MMC0_CD_PIN="PH1"
6 CONFIG_USB0_VBUS_PIN="PC17" 6 CONFIG_USB0_VBUS_PIN="PC17"
7 CONFIG_USB0_VBUS_DET="PH5" 7 CONFIG_USB0_VBUS_DET="PH5"
8 CONFIG_I2C1_ENABLE=y 8 CONFIG_I2C1_ENABLE=y
9 CONFIG_SATAPWR="PC3" 9 CONFIG_SATAPWR="PC3"
10 CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-olinuxino-lime2" 10 CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-olinuxino-lime2"
11 CONFIG_AHCI=y 11 CONFIG_AHCI=y
12 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set 12 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
13 CONFIG_SPL=y 13 CONFIG_SPL=y
14 CONFIG_SPL_I2C_SUPPORT=y 14 CONFIG_SPL_I2C_SUPPORT=y
15 CONFIG_FASTBOOT_FLASH=y 15 CONFIG_FASTBOOT_FLASH=y
16 CONFIG_FASTBOOT_FLASH_MMC_DEV=0 16 CONFIG_FASTBOOT_FLASH_MMC_DEV=0
17 # CONFIG_CMD_IMLS is not set 17 # CONFIG_CMD_IMLS is not set
18 CONFIG_CMD_DFU=y 18 CONFIG_CMD_DFU=y
19 # CONFIG_CMD_FLASH is not set 19 # CONFIG_CMD_FLASH is not set
20 # CONFIG_CMD_FPGA is not set 20 # CONFIG_CMD_FPGA is not set
21 CONFIG_CMD_USB_MASS_STORAGE=y 21 CONFIG_CMD_USB_MASS_STORAGE=y
22 # CONFIG_SPL_DOS_PARTITION is not set 22 # CONFIG_SPL_DOS_PARTITION is not set
23 # CONFIG_SPL_ISO_PARTITION is not set 23 # CONFIG_SPL_ISO_PARTITION is not set
24 # CONFIG_SPL_PARTITION_UUIDS is not set 24 # CONFIG_SPL_PARTITION_UUIDS is not set
25 CONFIG_DFU_RAM=y 25 CONFIG_DFU_RAM=y
26 CONFIG_ETH_DESIGNWARE=y 26 CONFIG_ETH_DESIGNWARE=y
27 CONFIG_RGMII=y 27 CONFIG_RGMII=y
28 CONFIG_SUN7I_GMAC=y 28 CONFIG_SUN7I_GMAC=y
29 CONFIG_AXP_ALDO3_VOLT=2800 29 CONFIG_AXP_ALDO3_VOLT=2800
30 CONFIG_AXP_ALDO4_VOLT=2800 30 CONFIG_AXP_ALDO4_VOLT=2800
31 CONFIG_SCSI=y 31 CONFIG_SCSI=y
32 CONFIG_USB_EHCI_HCD=y 32 CONFIG_USB_EHCI_HCD=y
33 CONFIG_USB_MUSB_GADGET=y 33 CONFIG_USB_MUSB_GADGET=y
34 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y 34 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
35 CONFIG_USB_GADGET=y 35 CONFIG_USB_GADGET=y
36 CONFIG_USB_GADGET_MANUFACTURER="Allwinner Technology"
37 CONFIG_USB_GADGET_VENDOR_NUM=0x1f3a
38 CONFIG_USB_GADGET_PRODUCT_NUM=0x1010
39 CONFIG_USB_GADGET_DOWNLOAD=y 36 CONFIG_USB_GADGET_DOWNLOAD=y
40 37
configs/CHIP_defconfig
1 CONFIG_ARM=y 1 CONFIG_ARM=y
2 CONFIG_ARCH_SUNXI=y 2 CONFIG_ARCH_SUNXI=y
3 CONFIG_MACH_SUN5I=y 3 CONFIG_MACH_SUN5I=y
4 CONFIG_DRAM_TIMINGS_DDR3_800E_1066G_1333J=y 4 CONFIG_DRAM_TIMINGS_DDR3_800E_1066G_1333J=y
5 CONFIG_USB0_VBUS_PIN="PB10" 5 CONFIG_USB0_VBUS_PIN="PB10"
6 CONFIG_VIDEO_COMPOSITE=y 6 CONFIG_VIDEO_COMPOSITE=y
7 CONFIG_DEFAULT_DEVICE_TREE="sun5i-r8-chip" 7 CONFIG_DEFAULT_DEVICE_TREE="sun5i-r8-chip"
8 CONFIG_SPL=y 8 CONFIG_SPL=y
9 CONFIG_SPL_I2C_SUPPORT=y 9 CONFIG_SPL_I2C_SUPPORT=y
10 CONFIG_FASTBOOT_FLASH=y 10 CONFIG_FASTBOOT_FLASH=y
11 # CONFIG_CMD_IMLS is not set 11 # CONFIG_CMD_IMLS is not set
12 CONFIG_CMD_DFU=y 12 CONFIG_CMD_DFU=y
13 CONFIG_CMD_USB_MASS_STORAGE=y 13 CONFIG_CMD_USB_MASS_STORAGE=y
14 # CONFIG_SPL_DOS_PARTITION is not set 14 # CONFIG_SPL_DOS_PARTITION is not set
15 # CONFIG_SPL_ISO_PARTITION is not set 15 # CONFIG_SPL_ISO_PARTITION is not set
16 # CONFIG_SPL_EFI_PARTITION is not set 16 # CONFIG_SPL_EFI_PARTITION is not set
17 CONFIG_ENV_IS_NOWHERE=y 17 CONFIG_ENV_IS_NOWHERE=y
18 CONFIG_DFU_RAM=y 18 CONFIG_DFU_RAM=y
19 # CONFIG_MMC is not set 19 # CONFIG_MMC is not set
20 CONFIG_AXP_ALDO3_VOLT=3300 20 CONFIG_AXP_ALDO3_VOLT=3300
21 CONFIG_AXP_ALDO4_VOLT=3300 21 CONFIG_AXP_ALDO4_VOLT=3300
22 CONFIG_USB_EHCI_HCD=y 22 CONFIG_USB_EHCI_HCD=y
23 CONFIG_USB_MUSB_GADGET=y 23 CONFIG_USB_MUSB_GADGET=y
24 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y 24 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
25 CONFIG_USB_GADGET=y 25 CONFIG_USB_GADGET=y
26 CONFIG_USB_GADGET_MANUFACTURER="Allwinner Technology"
27 CONFIG_USB_GADGET_VENDOR_NUM=0x1f3a
28 CONFIG_USB_GADGET_PRODUCT_NUM=0x1010
29 CONFIG_USB_GADGET_DOWNLOAD=y 26 CONFIG_USB_GADGET_DOWNLOAD=y
30 CONFIG_OF_LIBFDT_OVERLAY=y 27 CONFIG_OF_LIBFDT_OVERLAY=y
31 28
configs/CHIP_pro_defconfig
1 CONFIG_ARM=y 1 CONFIG_ARM=y
2 CONFIG_ARCH_SUNXI=y 2 CONFIG_ARCH_SUNXI=y
3 CONFIG_SPL_NAND_SUPPORT=y 3 CONFIG_SPL_NAND_SUPPORT=y
4 CONFIG_MACH_SUN5I=y 4 CONFIG_MACH_SUN5I=y
5 CONFIG_DRAM_TIMINGS_DDR3_800E_1066G_1333J=y 5 CONFIG_DRAM_TIMINGS_DDR3_800E_1066G_1333J=y
6 CONFIG_USB0_VBUS_PIN="PB10" 6 CONFIG_USB0_VBUS_PIN="PB10"
7 CONFIG_DEFAULT_DEVICE_TREE="sun5i-gr8-chip-pro" 7 CONFIG_DEFAULT_DEVICE_TREE="sun5i-gr8-chip-pro"
8 CONFIG_SYS_EXTRA_OPTIONS="SYS_NAND_BLOCK_SIZE=0x40000,SYS_NAND_PAGE_SIZE=4096,SYS_NAND_OOBSIZE=256" 8 CONFIG_SYS_EXTRA_OPTIONS="SYS_NAND_BLOCK_SIZE=0x40000,SYS_NAND_PAGE_SIZE=4096,SYS_NAND_OOBSIZE=256"
9 CONFIG_SPL=y 9 CONFIG_SPL=y
10 CONFIG_SPL_I2C_SUPPORT=y 10 CONFIG_SPL_I2C_SUPPORT=y
11 CONFIG_FASTBOOT_FLASH=y 11 CONFIG_FASTBOOT_FLASH=y
12 # CONFIG_CMD_IMLS is not set 12 # CONFIG_CMD_IMLS is not set
13 # CONFIG_CMD_FLASH is not set 13 # CONFIG_CMD_FLASH is not set
14 # CONFIG_CMD_FPGA is not set 14 # CONFIG_CMD_FPGA is not set
15 # CONFIG_CMD_LOADB is not set 15 # CONFIG_CMD_LOADB is not set
16 # CONFIG_CMD_LOADS is not set 16 # CONFIG_CMD_LOADS is not set
17 CONFIG_MTDIDS_DEFAULT="nand0=sunxi-nand.0" 17 CONFIG_MTDIDS_DEFAULT="nand0=sunxi-nand.0"
18 CONFIG_MTDPARTS_DEFAULT="mtdparts=sunxi-nand.0:256k(spl),256k(spl-backup),2m(uboot),2m(uboot-backup),-(UBI)" 18 CONFIG_MTDPARTS_DEFAULT="mtdparts=sunxi-nand.0:256k(spl),256k(spl-backup),2m(uboot),2m(uboot-backup),-(UBI)"
19 CONFIG_ENV_IS_IN_UBI=y 19 CONFIG_ENV_IS_IN_UBI=y
20 CONFIG_ENV_UBI_PART="UBI" 20 CONFIG_ENV_UBI_PART="UBI"
21 CONFIG_ENV_UBI_VOLUME="uboot-env" 21 CONFIG_ENV_UBI_VOLUME="uboot-env"
22 # CONFIG_MMC is not set 22 # CONFIG_MMC is not set
23 CONFIG_NAND=y 23 CONFIG_NAND=y
24 CONFIG_NAND_SUNXI=y 24 CONFIG_NAND_SUNXI=y
25 CONFIG_AXP_ALDO3_VOLT=3300 25 CONFIG_AXP_ALDO3_VOLT=3300
26 CONFIG_AXP_ALDO4_VOLT=3300 26 CONFIG_AXP_ALDO4_VOLT=3300
27 CONFIG_USB_EHCI_HCD=y 27 CONFIG_USB_EHCI_HCD=y
28 CONFIG_USB_MUSB_GADGET=y 28 CONFIG_USB_MUSB_GADGET=y
29 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y 29 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
30 CONFIG_USB_GADGET=y 30 CONFIG_USB_GADGET=y
31 CONFIG_USB_GADGET_MANUFACTURER="Allwinner Technology"
32 CONFIG_USB_GADGET_VENDOR_NUM=0x1f3a
33 CONFIG_USB_GADGET_PRODUCT_NUM=0x1010
34 CONFIG_USB_GADGET_DOWNLOAD=y 31 CONFIG_USB_GADGET_DOWNLOAD=y
35 CONFIG_OF_LIBFDT_OVERLAY=y 32 CONFIG_OF_LIBFDT_OVERLAY=y
36 33
configs/Cubietruck_defconfig
1 CONFIG_ARM=y 1 CONFIG_ARM=y
2 CONFIG_ARCH_SUNXI=y 2 CONFIG_ARCH_SUNXI=y
3 CONFIG_MACH_SUN7I=y 3 CONFIG_MACH_SUN7I=y
4 CONFIG_DRAM_CLK=432 4 CONFIG_DRAM_CLK=432
5 CONFIG_MMC0_CD_PIN="PH1" 5 CONFIG_MMC0_CD_PIN="PH1"
6 CONFIG_USB0_VBUS_PIN="PH17" 6 CONFIG_USB0_VBUS_PIN="PH17"
7 CONFIG_USB0_VBUS_DET="PH22" 7 CONFIG_USB0_VBUS_DET="PH22"
8 CONFIG_USB0_ID_DET="PH19" 8 CONFIG_USB0_ID_DET="PH19"
9 CONFIG_VIDEO_VGA=y 9 CONFIG_VIDEO_VGA=y
10 CONFIG_SATAPWR="PH12" 10 CONFIG_SATAPWR="PH12"
11 CONFIG_GMAC_TX_DELAY=1 11 CONFIG_GMAC_TX_DELAY=1
12 CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-cubietruck" 12 CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-cubietruck"
13 CONFIG_AHCI=y 13 CONFIG_AHCI=y
14 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set 14 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
15 CONFIG_SPL=y 15 CONFIG_SPL=y
16 CONFIG_SPL_I2C_SUPPORT=y 16 CONFIG_SPL_I2C_SUPPORT=y
17 CONFIG_FASTBOOT_FLASH=y 17 CONFIG_FASTBOOT_FLASH=y
18 CONFIG_FASTBOOT_FLASH_MMC_DEV=0 18 CONFIG_FASTBOOT_FLASH_MMC_DEV=0
19 # CONFIG_CMD_IMLS is not set 19 # CONFIG_CMD_IMLS is not set
20 CONFIG_CMD_DFU=y 20 CONFIG_CMD_DFU=y
21 # CONFIG_CMD_FLASH is not set 21 # CONFIG_CMD_FLASH is not set
22 # CONFIG_CMD_FPGA is not set 22 # CONFIG_CMD_FPGA is not set
23 CONFIG_CMD_USB_MASS_STORAGE=y 23 CONFIG_CMD_USB_MASS_STORAGE=y
24 # CONFIG_SPL_DOS_PARTITION is not set 24 # CONFIG_SPL_DOS_PARTITION is not set
25 # CONFIG_SPL_ISO_PARTITION is not set 25 # CONFIG_SPL_ISO_PARTITION is not set
26 # CONFIG_SPL_PARTITION_UUIDS is not set 26 # CONFIG_SPL_PARTITION_UUIDS is not set
27 CONFIG_DFU_RAM=y 27 CONFIG_DFU_RAM=y
28 CONFIG_ETH_DESIGNWARE=y 28 CONFIG_ETH_DESIGNWARE=y
29 CONFIG_RGMII=y 29 CONFIG_RGMII=y
30 CONFIG_SUN7I_GMAC=y 30 CONFIG_SUN7I_GMAC=y
31 CONFIG_SCSI=y 31 CONFIG_SCSI=y
32 CONFIG_USB_EHCI_HCD=y 32 CONFIG_USB_EHCI_HCD=y
33 CONFIG_USB_MUSB_GADGET=y 33 CONFIG_USB_MUSB_GADGET=y
34 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y 34 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
35 CONFIG_USB_GADGET=y 35 CONFIG_USB_GADGET=y
36 CONFIG_USB_GADGET_MANUFACTURER="Allwinner Technology"
37 CONFIG_USB_GADGET_VENDOR_NUM=0x1f3a
38 CONFIG_USB_GADGET_PRODUCT_NUM=0x1010
39 CONFIG_USB_GADGET_DOWNLOAD=y 36 CONFIG_USB_GADGET_DOWNLOAD=y
40 37
configs/Nintendo_NES_Classic_Edition_defconfig
1 CONFIG_ARM=y 1 CONFIG_ARM=y
2 CONFIG_ARCH_SUNXI=y 2 CONFIG_ARCH_SUNXI=y
3 CONFIG_MACH_SUN8I_A33=y 3 CONFIG_MACH_SUN8I_A33=y
4 CONFIG_DRAM_CLK=600 4 CONFIG_DRAM_CLK=600
5 CONFIG_DRAM_ZQ=15291 5 CONFIG_DRAM_ZQ=15291
6 CONFIG_DRAM_ODT_EN=y 6 CONFIG_DRAM_ODT_EN=y
7 CONFIG_USB0_VBUS_DET="AXP0-VBUS-DETECT" 7 CONFIG_USB0_VBUS_DET="AXP0-VBUS-DETECT"
8 CONFIG_AXP_GPIO=y 8 CONFIG_AXP_GPIO=y
9 CONFIG_DEFAULT_DEVICE_TREE="sun8i-r16-nintendo-nes-classic-edition" 9 CONFIG_DEFAULT_DEVICE_TREE="sun8i-r16-nintendo-nes-classic-edition"
10 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set 10 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
11 CONFIG_SPL=y 11 CONFIG_SPL=y
12 CONFIG_FASTBOOT_FLASH=y 12 CONFIG_FASTBOOT_FLASH=y
13 # CONFIG_CMD_IMLS is not set 13 # CONFIG_CMD_IMLS is not set
14 # CONFIG_CMD_FLASH is not set 14 # CONFIG_CMD_FLASH is not set
15 # CONFIG_CMD_FPGA is not set 15 # CONFIG_CMD_FPGA is not set
16 # CONFIG_SPL_DOS_PARTITION is not set 16 # CONFIG_SPL_DOS_PARTITION is not set
17 # CONFIG_SPL_ISO_PARTITION is not set 17 # CONFIG_SPL_ISO_PARTITION is not set
18 # CONFIG_SPL_EFI_PARTITION is not set 18 # CONFIG_SPL_EFI_PARTITION is not set
19 CONFIG_ENV_IS_NOWHERE=y 19 CONFIG_ENV_IS_NOWHERE=y
20 # CONFIG_MMC is not set 20 # CONFIG_MMC is not set
21 CONFIG_AXP_DLDO1_VOLT=3300 21 CONFIG_AXP_DLDO1_VOLT=3300
22 CONFIG_AXP_ELDO2_VOLT=1800 22 CONFIG_AXP_ELDO2_VOLT=1800
23 CONFIG_USB_MUSB_GADGET=y 23 CONFIG_USB_MUSB_GADGET=y
24 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y 24 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
25 CONFIG_USB_GADGET=y 25 CONFIG_USB_GADGET=y
26 CONFIG_USB_GADGET_MANUFACTURER="Allwinner Technology"
27 CONFIG_USB_GADGET_VENDOR_NUM=0x1f3a
28 CONFIG_USB_GADGET_PRODUCT_NUM=0x1010
29 CONFIG_USB_GADGET_DOWNLOAD=y 26 CONFIG_USB_GADGET_DOWNLOAD=y
30 27
configs/Sinlinx_SinA33_defconfig
1 CONFIG_ARM=y 1 CONFIG_ARM=y
2 CONFIG_ARCH_SUNXI=y 2 CONFIG_ARCH_SUNXI=y
3 CONFIG_CONS_INDEX=1 3 CONFIG_CONS_INDEX=1
4 CONFIG_MACH_SUN8I_A33=y 4 CONFIG_MACH_SUN8I_A33=y
5 CONFIG_DRAM_CLK=552 5 CONFIG_DRAM_CLK=552
6 CONFIG_DRAM_ZQ=15291 6 CONFIG_DRAM_ZQ=15291
7 CONFIG_MMC0_CD_PIN="PB4" 7 CONFIG_MMC0_CD_PIN="PB4"
8 CONFIG_MMC_SUNXI_SLOT_EXTRA=2 8 CONFIG_MMC_SUNXI_SLOT_EXTRA=2
9 CONFIG_USB0_ID_DET="PH8" 9 CONFIG_USB0_ID_DET="PH8"
10 CONFIG_VIDEO_LCD_MODE="x:1024,y:600,depth:18,pclk_khz:66000,le:90,ri:160,up:3,lo:127,hs:70,vs:20,sync:3,vmode:0" 10 CONFIG_VIDEO_LCD_MODE="x:1024,y:600,depth:18,pclk_khz:66000,le:90,ri:160,up:3,lo:127,hs:70,vs:20,sync:3,vmode:0"
11 CONFIG_VIDEO_LCD_DCLK_PHASE=0 11 CONFIG_VIDEO_LCD_DCLK_PHASE=0
12 CONFIG_VIDEO_LCD_BL_EN="PH6" 12 CONFIG_VIDEO_LCD_BL_EN="PH6"
13 CONFIG_VIDEO_LCD_BL_PWM="PH0" 13 CONFIG_VIDEO_LCD_BL_PWM="PH0"
14 CONFIG_DEFAULT_DEVICE_TREE="sun8i-a33-sinlinx-sina33" 14 CONFIG_DEFAULT_DEVICE_TREE="sun8i-a33-sinlinx-sina33"
15 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set 15 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
16 CONFIG_SPL=y 16 CONFIG_SPL=y
17 CONFIG_FASTBOOT_FLASH=y 17 CONFIG_FASTBOOT_FLASH=y
18 CONFIG_FASTBOOT_FLASH_MMC_DEV=0 18 CONFIG_FASTBOOT_FLASH_MMC_DEV=0
19 # CONFIG_CMD_IMLS is not set 19 # CONFIG_CMD_IMLS is not set
20 CONFIG_CMD_DFU=y 20 CONFIG_CMD_DFU=y
21 # CONFIG_CMD_FLASH is not set 21 # CONFIG_CMD_FLASH is not set
22 # CONFIG_CMD_FPGA is not set 22 # CONFIG_CMD_FPGA is not set
23 # CONFIG_SPL_DOS_PARTITION is not set 23 # CONFIG_SPL_DOS_PARTITION is not set
24 # CONFIG_SPL_ISO_PARTITION is not set 24 # CONFIG_SPL_ISO_PARTITION is not set
25 # CONFIG_SPL_PARTITION_UUIDS is not set 25 # CONFIG_SPL_PARTITION_UUIDS is not set
26 CONFIG_DFU_RAM=y 26 CONFIG_DFU_RAM=y
27 CONFIG_USB_EHCI_HCD=y 27 CONFIG_USB_EHCI_HCD=y
28 CONFIG_USB_MUSB_GADGET=y 28 CONFIG_USB_MUSB_GADGET=y
29 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y 29 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
30 CONFIG_USB_GADGET=y 30 CONFIG_USB_GADGET=y
31 CONFIG_USB_GADGET_MANUFACTURER="Allwinner Technology"
32 CONFIG_USB_GADGET_VENDOR_NUM=0x1f3a
33 CONFIG_USB_GADGET_PRODUCT_NUM=0x1010
34 CONFIG_USB_GADGET_DOWNLOAD=y 31 CONFIG_USB_GADGET_DOWNLOAD=y
35 32
configs/parrot_r16_defconfig
1 CONFIG_ARM=y 1 CONFIG_ARM=y
2 CONFIG_ARCH_SUNXI=y 2 CONFIG_ARCH_SUNXI=y
3 CONFIG_MACH_SUN8I_A33=y 3 CONFIG_MACH_SUN8I_A33=y
4 CONFIG_DRAM_CLK=600 4 CONFIG_DRAM_CLK=600
5 CONFIG_DRAM_ZQ=15291 5 CONFIG_DRAM_ZQ=15291
6 CONFIG_MMC0_CD_PIN="PD14" 6 CONFIG_MMC0_CD_PIN="PD14"
7 CONFIG_MMC2_PINS="PC" 7 CONFIG_MMC2_PINS="PC"
8 CONFIG_MMC_SUNXI_SLOT_EXTRA=2 8 CONFIG_MMC_SUNXI_SLOT_EXTRA=2
9 CONFIG_USB0_ID_DET="PD10" 9 CONFIG_USB0_ID_DET="PD10"
10 CONFIG_USB1_VBUS_PIN="PD12" 10 CONFIG_USB1_VBUS_PIN="PD12"
11 CONFIG_AXP_GPIO=y 11 CONFIG_AXP_GPIO=y
12 CONFIG_DEFAULT_DEVICE_TREE="sun8i-r16-parrot" 12 CONFIG_DEFAULT_DEVICE_TREE="sun8i-r16-parrot"
13 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set 13 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
14 CONFIG_SPL=y 14 CONFIG_SPL=y
15 CONFIG_FASTBOOT_FLASH=y 15 CONFIG_FASTBOOT_FLASH=y
16 CONFIG_FASTBOOT_FLASH_MMC_DEV=0 16 CONFIG_FASTBOOT_FLASH_MMC_DEV=0
17 # CONFIG_CMD_IMLS is not set 17 # CONFIG_CMD_IMLS is not set
18 # CONFIG_CMD_FLASH is not set 18 # CONFIG_CMD_FLASH is not set
19 # CONFIG_CMD_FPGA is not set 19 # CONFIG_CMD_FPGA is not set
20 # CONFIG_SPL_DOS_PARTITION is not set 20 # CONFIG_SPL_DOS_PARTITION is not set
21 # CONFIG_SPL_ISO_PARTITION is not set 21 # CONFIG_SPL_ISO_PARTITION is not set
22 # CONFIG_SPL_PARTITION_UUIDS is not set 22 # CONFIG_SPL_PARTITION_UUIDS is not set
23 CONFIG_USB_EHCI_HCD=y 23 CONFIG_USB_EHCI_HCD=y
24 CONFIG_USB_MUSB_GADGET=y 24 CONFIG_USB_MUSB_GADGET=y
25 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y 25 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
26 CONFIG_USB_GADGET=y 26 CONFIG_USB_GADGET=y
27 CONFIG_USB_GADGET_MANUFACTURER="Allwinner Technology"
28 CONFIG_USB_GADGET_VENDOR_NUM=0x1f3a
29 CONFIG_USB_GADGET_PRODUCT_NUM=0x1010
30 CONFIG_USB_GADGET_DOWNLOAD=y 27 CONFIG_USB_GADGET_DOWNLOAD=y
31 28
drivers/usb/gadget/Kconfig
1 # 1 #
2 # USB Gadget support on a system involves 2 # USB Gadget support on a system involves
3 # (a) a peripheral controller, and 3 # (a) a peripheral controller, and
4 # (b) the gadget driver using it. 4 # (b) the gadget driver using it.
5 # 5 #
6 # NOTE: Gadget support ** DOES NOT ** depend on host-side CONFIG_USB !! 6 # NOTE: Gadget support ** DOES NOT ** depend on host-side CONFIG_USB !!
7 # 7 #
8 # - Host systems (like PCs) need CONFIG_USB (with "A" jacks). 8 # - Host systems (like PCs) need CONFIG_USB (with "A" jacks).
9 # - Peripherals (like PDAs) need CONFIG_USB_GADGET (with "B" jacks). 9 # - Peripherals (like PDAs) need CONFIG_USB_GADGET (with "B" jacks).
10 # - Some systems have both kinds of controllers. 10 # - Some systems have both kinds of controllers.
11 # 11 #
12 # With help from a special transceiver and a "Mini-AB" jack, systems with 12 # With help from a special transceiver and a "Mini-AB" jack, systems with
13 # both kinds of controller can also support "USB On-the-Go" (CONFIG_USB_OTG). 13 # both kinds of controller can also support "USB On-the-Go" (CONFIG_USB_OTG).
14 # 14 #
15 15
16 menuconfig USB_GADGET 16 menuconfig USB_GADGET
17 bool "USB Gadget Support" 17 bool "USB Gadget Support"
18 help 18 help
19 USB is a master/slave protocol, organized with one master 19 USB is a master/slave protocol, organized with one master
20 host (such as a PC) controlling up to 127 peripheral devices. 20 host (such as a PC) controlling up to 127 peripheral devices.
21 The USB hardware is asymmetric, which makes it easier to set up: 21 The USB hardware is asymmetric, which makes it easier to set up:
22 you can't connect a "to-the-host" connector to a peripheral. 22 you can't connect a "to-the-host" connector to a peripheral.
23 23
24 U-Boot can run in the host, or in the peripheral. In both cases 24 U-Boot can run in the host, or in the peripheral. In both cases
25 you need a low level bus controller driver, and some software 25 you need a low level bus controller driver, and some software
26 talking to it. Peripheral controllers are often discrete silicon, 26 talking to it. Peripheral controllers are often discrete silicon,
27 or are integrated with the CPU in a microcontroller. The more 27 or are integrated with the CPU in a microcontroller. The more
28 familiar host side controllers have names like "EHCI", "OHCI", 28 familiar host side controllers have names like "EHCI", "OHCI",
29 or "UHCI", and are usually integrated into southbridges on PC 29 or "UHCI", and are usually integrated into southbridges on PC
30 motherboards. 30 motherboards.
31 31
32 Enable this configuration option if you want to run U-Boot inside 32 Enable this configuration option if you want to run U-Boot inside
33 a USB peripheral device. Configure one hardware driver for your 33 a USB peripheral device. Configure one hardware driver for your
34 peripheral/device side bus controller, and a "gadget driver" for 34 peripheral/device side bus controller, and a "gadget driver" for
35 your peripheral protocol. 35 your peripheral protocol.
36 36
37 if USB_GADGET 37 if USB_GADGET
38 38
39 config USB_GADGET_MANUFACTURER 39 config USB_GADGET_MANUFACTURER
40 string "Vendor name of the USB device" 40 string "Vendor name of the USB device"
41 default "Allwinner Technology" if ARCH_SUNXI
41 default "U-Boot" 42 default "U-Boot"
42 help 43 help
43 Vendor name of the USB device emulated, reported to the host device. 44 Vendor name of the USB device emulated, reported to the host device.
44 This is usually either the manufacturer of the device or the SoC. 45 This is usually either the manufacturer of the device or the SoC.
45 46
46 config USB_GADGET_VENDOR_NUM 47 config USB_GADGET_VENDOR_NUM
47 hex "Vendor ID of the USB device" 48 hex "Vendor ID of the USB device"
49 default 0x1f3a if ARCH_SUNXI
48 default 0x0 50 default 0x0
49 help 51 help
50 Vendor ID of the USB device emulated, reported to the host device. 52 Vendor ID of the USB device emulated, reported to the host device.
51 This is usually the board or SoC vendor's, unless you've registered 53 This is usually the board or SoC vendor's, unless you've registered
52 for one. 54 for one.
53 55
54 config USB_GADGET_PRODUCT_NUM 56 config USB_GADGET_PRODUCT_NUM
55 hex "Product ID of the USB device" 57 hex "Product ID of the USB device"
58 default 0x1010 if ARCH_SUNXI
56 default 0x0 59 default 0x0
57 help 60 help
58 Product ID of the USB device emulated, reported to the host device. 61 Product ID of the USB device emulated, reported to the host device.
59 62
60 config USB_GADGET_ATMEL_USBA 63 config USB_GADGET_ATMEL_USBA
61 bool "Atmel USBA" 64 bool "Atmel USBA"
62 select USB_GADGET_DUALSPEED 65 select USB_GADGET_DUALSPEED
63 help 66 help
64 USBA is the integrated high-speed USB Device controller on 67 USBA is the integrated high-speed USB Device controller on
65 the AT32AP700x, some AT91SAM9 and AT91CAP9 processors from Atmel. 68 the AT32AP700x, some AT91SAM9 and AT91CAP9 processors from Atmel.
66 69
67 config USB_GADGET_BCM_UDC_OTG_PHY 70 config USB_GADGET_BCM_UDC_OTG_PHY
68 bool "Broadcom UDC OTG PHY" 71 bool "Broadcom UDC OTG PHY"
69 help 72 help
70 Enable the Broadcom UDC OTG physical device interface. 73 Enable the Broadcom UDC OTG physical device interface.
71 74
72 config USB_GADGET_DWC2_OTG 75 config USB_GADGET_DWC2_OTG
73 bool "DesignWare USB2.0 HS OTG controller (gadget mode)" 76 bool "DesignWare USB2.0 HS OTG controller (gadget mode)"
74 select USB_GADGET_DUALSPEED 77 select USB_GADGET_DUALSPEED
75 help 78 help
76 The Designware USB2.0 high-speed gadget controller 79 The Designware USB2.0 high-speed gadget controller
77 integrated into many SoCs. Select this option if you want the 80 integrated into many SoCs. Select this option if you want the
78 driver to operate in Peripheral mode. This option requires 81 driver to operate in Peripheral mode. This option requires
79 USB_GADGET to be enabled. 82 USB_GADGET to be enabled.
80 83
81 if USB_GADGET_DWC2_OTG 84 if USB_GADGET_DWC2_OTG
82 85
83 config USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8 86 config USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8
84 bool "DesignWare USB2.0 HS OTG controller 8-bit PHY bus width" 87 bool "DesignWare USB2.0 HS OTG controller 8-bit PHY bus width"
85 help 88 help
86 Set the Designware USB2.0 high-speed OTG controller 89 Set the Designware USB2.0 high-speed OTG controller
87 PHY interface width to 8 bits, rather than the default (16 bits). 90 PHY interface width to 8 bits, rather than the default (16 bits).
88 91
89 endif # USB_GADGET_DWC2_OTG 92 endif # USB_GADGET_DWC2_OTG
90 93
91 config CI_UDC 94 config CI_UDC
92 bool "ChipIdea device controller" 95 bool "ChipIdea device controller"
93 select USB_GADGET_DUALSPEED 96 select USB_GADGET_DUALSPEED
94 help 97 help
95 Say Y here to enable device controller functionality of the 98 Say Y here to enable device controller functionality of the
96 ChipIdea driver. 99 ChipIdea driver.
97 100
98 config USB_GADGET_VBUS_DRAW 101 config USB_GADGET_VBUS_DRAW
99 int "Maximum VBUS Power usage (2-500 mA)" 102 int "Maximum VBUS Power usage (2-500 mA)"
100 range 2 500 103 range 2 500
101 default 2 104 default 2
102 help 105 help
103 Some devices need to draw power from USB when they are 106 Some devices need to draw power from USB when they are
104 configured, perhaps to operate circuitry or to recharge 107 configured, perhaps to operate circuitry or to recharge
105 batteries. This is in addition to any local power supply, 108 batteries. This is in addition to any local power supply,
106 such as an AC adapter or batteries. 109 such as an AC adapter or batteries.
107 110
108 Enter the maximum power your device draws through USB, in 111 Enter the maximum power your device draws through USB, in
109 milliAmperes. The permitted range of values is 2 - 500 mA; 112 milliAmperes. The permitted range of values is 2 - 500 mA;
110 0 mA would be legal, but can make some hosts misbehave. 113 0 mA would be legal, but can make some hosts misbehave.
111 114
112 This value will be used except for system-specific gadget 115 This value will be used except for system-specific gadget
113 drivers that have more specific information. 116 drivers that have more specific information.
114 117
115 # Selected by UDC drivers that support high-speed operation. 118 # Selected by UDC drivers that support high-speed operation.
116 config USB_GADGET_DUALSPEED 119 config USB_GADGET_DUALSPEED
117 bool 120 bool
118 121
119 config USB_GADGET_DOWNLOAD 122 config USB_GADGET_DOWNLOAD
120 bool "Enable USB download gadget" 123 bool "Enable USB download gadget"
121 help 124 help
122 Composite USB download gadget support (g_dnl) for download functions. 125 Composite USB download gadget support (g_dnl) for download functions.
123 This code works on top of composite gadget. 126 This code works on top of composite gadget.
124 127
125 if USB_GADGET_DOWNLOAD 128 if USB_GADGET_DOWNLOAD
126 129
127 config USB_FUNCTION_SDP 130 config USB_FUNCTION_SDP
128 bool "Enable USB SDP (Serial Download Protocol)" 131 bool "Enable USB SDP (Serial Download Protocol)"
129 help 132 help
130 Enable Serial Download Protocol (SDP) device support in U-Boot. This 133 Enable Serial Download Protocol (SDP) device support in U-Boot. This
131 allows to download images into memory and execute (jump to) them 134 allows to download images into memory and execute (jump to) them
132 using the same protocol as implemented by the i.MX family's boot ROM. 135 using the same protocol as implemented by the i.MX family's boot ROM.
133 136
134 endif # USB_GADGET_DOWNLOAD 137 endif # USB_GADGET_DOWNLOAD
135 138
136 config USB_ETHER 139 config USB_ETHER
137 bool "USB Ethernet Gadget" 140 bool "USB Ethernet Gadget"
138 help 141 help
139 Creates an Ethernet network device through a USB peripheral 142 Creates an Ethernet network device through a USB peripheral
140 controller. This will create a network interface on both the device 143 controller. This will create a network interface on both the device
141 (U-Boot) and the host (remote device) that can be used just like any 144 (U-Boot) and the host (remote device) that can be used just like any
142 other nework interface. 145 other nework interface.
143 It will bind on the peripheral USB controller, ignoring the USB hosts 146 It will bind on the peripheral USB controller, ignoring the USB hosts
144 controllers in the system. 147 controllers in the system.
145 148
146 if USB_ETHER 149 if USB_ETHER
147 150
148 choice 151 choice
149 prompt "USB Ethernet Gadget Model" 152 prompt "USB Ethernet Gadget Model"
150 default USB_ETH_RNDIS 153 default USB_ETH_RNDIS
151 help 154 help
152 There is several models (protocols) to implement Ethernet over USB 155 There is several models (protocols) to implement Ethernet over USB
153 devices. The main ones are Microsoft's RNDIS and USB's CDC-Ethernet 156 devices. The main ones are Microsoft's RNDIS and USB's CDC-Ethernet
154 (also called CDC-ECM). RNDIS is obviously compatible with Windows, 157 (also called CDC-ECM). RNDIS is obviously compatible with Windows,
155 while CDC-ECM is not. Most other operating systems support both, so 158 while CDC-ECM is not. Most other operating systems support both, so
156 if inter-operability is a concern, RNDIS is to be preferred. 159 if inter-operability is a concern, RNDIS is to be preferred.
157 160
158 config USB_ETH_CDC 161 config USB_ETH_CDC
159 bool "CDC-ECM Protocol" 162 bool "CDC-ECM Protocol"
160 help 163 help
161 CDC (Communications Device Class) is the standard for Ethernet over 164 CDC (Communications Device Class) is the standard for Ethernet over
162 USB devices. While there's several alternatives, the most widely used 165 USB devices. While there's several alternatives, the most widely used
163 protocol is ECM (Ethernet Control Model). However, compatibility with 166 protocol is ECM (Ethernet Control Model). However, compatibility with
164 Windows is not that great. 167 Windows is not that great.
165 168
166 config USB_ETH_RNDIS 169 config USB_ETH_RNDIS
167 bool "RNDIS Protocol" 170 bool "RNDIS Protocol"
168 help 171 help
169 The RNDIS (Remote Network Driver Interface Specification) is a 172 The RNDIS (Remote Network Driver Interface Specification) is a
170 Microsoft proprietary protocol to create an Ethernet device over USB. 173 Microsoft proprietary protocol to create an Ethernet device over USB.
171 Windows obviously supports it, as well as all the major operating 174 Windows obviously supports it, as well as all the major operating
172 systems, so it's the best option for compatibility. 175 systems, so it's the best option for compatibility.
173 176
174 endchoice 177 endchoice
175 178
176 config USBNET_DEVADDR 179 config USBNET_DEVADDR
177 string "USB Gadget Ethernet device mac address" 180 string "USB Gadget Ethernet device mac address"
178 default "de:ad:be:ef:00:01" 181 default "de:ad:be:ef:00:01"
179 help 182 help
180 Ethernet MAC address of the device-side (ie. local board's) MAC 183 Ethernet MAC address of the device-side (ie. local board's) MAC
181 address of the usb_ether interface 184 address of the usb_ether interface
182 185
183 config USBNET_HOST_ADDR 186 config USBNET_HOST_ADDR
184 string "USB Gadget Ethernet host mac address" 187 string "USB Gadget Ethernet host mac address"
185 default "de:ad:be:ef:00:00" 188 default "de:ad:be:ef:00:00"
186 help 189 help
187 Ethernet MAC address of the host-side (ie. remote device's) MAC 190 Ethernet MAC address of the host-side (ie. remote device's) MAC
188 address of the usb_ether interface 191 address of the usb_ether interface
189 192
190 endif # USB_ETHER 193 endif # USB_ETHER
191 194
192 endif # USB_GADGET 195 endif # USB_GADGET
193 196