Skip to content

Commit

Permalink
Enabling USB ports in FEX script and building Ethernet/Audio/MIDI "US…
Browse files Browse the repository at this point in the history
…B Gadget" kernel modules.
  • Loading branch information
felipesanches committed Feb 25, 2015
1 parent 54408a8 commit 61fdb39
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 9 additions & 5 deletions .config
Expand Up @@ -319,6 +319,10 @@ CONFIG_ARCH_SUN7I=y
CONFIG_SW_DEBUG_UART=0
CONFIG_SUNXI_MULTIPLATFORM=y
CONFIG_SUNXI_SCALING_MIN=720

#
# Allwinner's sun7i options
#
CONFIG_MACH_MODDUO=y
CONFIG_PLAT_SUNXI=y

Expand Down Expand Up @@ -1614,19 +1618,19 @@ CONFIG_USB_SW_SUNXI_UDC0_SELECT=y
CONFIG_USB_SW_SUNXI_UDC0=y
CONFIG_USB_GADGET_DUALSPEED=y
# CONFIG_USB_ZERO is not set
# CONFIG_USB_AUDIO is not set
CONFIG_USB_ETH=y
CONFIG_USB_AUDIO=m
# CONFIG_GADGET_UAC1 is not set
CONFIG_USB_ETH=m
CONFIG_USB_ETH_RNDIS=y
# CONFIG_USB_ETH_EEM is not set
CONFIG_USB_ETH_EEM=y
# CONFIG_USB_G_NCM is not set
# CONFIG_USB_GADGETFS is not set
# CONFIG_USB_FUNCTIONFS is not set
# CONFIG_USB_FILE_STORAGE is not set
# CONFIG_USB_MASS_STORAGE is not set
# CONFIG_USB_G_SERIAL is not set
# CONFIG_USB_MIDI_GADGET is not set
CONFIG_USB_MIDI_GADGET=m
# CONFIG_USB_G_PRINTER is not set
# CONFIG_USB_G_ANDROID is not set
# CONFIG_USB_CDC_COMPOSITE is not set
# CONFIG_USB_G_ACM_MS is not set
# CONFIG_USB_G_MULTI is not set
Expand Down
14 changes: 5 additions & 9 deletions script.fex
Expand Up @@ -174,7 +174,7 @@ uart_rts = port:PH02<4><1><default><default>
uart_cts = port:PH03<4><1><default><default>

[uart_para4]
uart_used = 1
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PH04<4><1><default><default>
Expand Down Expand Up @@ -736,20 +736,16 @@ kp_out6 = port:PH26<4><1><default><default>
kp_out7 = port:PH27<4><1><default><default>

[usbc0]
usb_used = 0
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PH04<0><1><default><default>
usb_det_vbus_gpio = port:PH05<0><0><default><default>
usb_drv_vbus_gpio = port:PB09<1><0><default><0>
usb_restrict_gpio = port:PH00<1><0><default><0>
usb_host_init_state = 1
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity = 5
usb_host_init_state = 0

[usbc1]
usb_used = 0
usb_used = 1
usb_port_type = 1
usb_detect_type = 0
usb_drv_vbus_gpio = port:PH06<1><0><default><0>
Expand All @@ -758,7 +754,7 @@ usb_host_init_state = 1
usb_restric_flag = 0

[usbc2]
usb_used = 0
usb_used = 1
usb_port_type = 1
usb_detect_type = 0
usb_drv_vbus_gpio = port:PH03<1><0><default><0>
Expand Down

0 comments on commit 61fdb39

Please sign in to comment.