- 22 10月, 2013 1 次提交
-
-
- 21 10月, 2013 39 次提交
-
-
-
由 Troy Kisky 提交于
Move common definitions to udc.h This allows musb_udc.h to be removed as well. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
Move defines only needed by mv_udc.c to a file in the same directory. This allows usbtty to compile for mv_udc, but it still doesn't link. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
Only get head if not ep0. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
Only perform one copy, either in the bounce routine for IN transfers, or the debounce rtn for OUT transfer. On out transfers, only copy the number of bytes received from the bounce buffer Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
Set maximum packet length in queue header to wMaxPacketSize of endpoint. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
Previously, only host1 was supported using an index of 0. Now, otg has index 0, host1 is 1, host2 is 2, host3 is 3. Since OTG requires usbmode to be set after reset, I added CONFIG_EHCI_HCD_INIT_AFTER_RESET to nitrogen6x.h and mx6qsabreauto.h. I also added a weak function board_ehci_power to handle turning power on/off for otg. Type is type of device connected (USB stick vs Host.) Init is type of device desired. Only power up port if type == init == USB_INIT_HOST. Only return error if type != init. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
i.mx6 has 1 otg controller, and 3 host ports. So, CONFIG_USB_MAX_CONTROLLER_COUNT can be greater than 1 even though only 1 device mode controller is supported. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
This paramter will later be used to initialize OTG ports in host or device mode. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
This parameter will later be used to verify OTG ports. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
This will be used by usb_lowlevel_init so it will no longer be used by only board specific functions. Move definition of enum usb_init_type higher in file so that it will be available for usb_low_level_init. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Dan Murphy 提交于
Move the MAC creation from the USB init to an function that is called on every boot. This will then populate the usbethaddr mac that kernel driver can pick up from the device tree blob. Signed-off-by: NDan Murphy <dmurphy@ti.com>
-
由 Dan Murphy 提交于
Add the support for the am437x xhci usb host. The xHCI host on AM437 is connected to a usb2 phy so need to add support to enable those clocks. Signed-off-by: NDan Murphy <dmurphy@ti.com>
-
由 Dan Murphy 提交于
Add the support for the dra7xx xhci usb host. dra7xx does not contain an EHCI controller so the headers can be removed from the board file. The xHCI host on dra7xx is connected to a usb2 phy so need to add support to enable those clocks. Signed-off-by: NDan Murphy <dmurphy@ti.com>
-
由 Dan Murphy 提交于
Moving the usb/phy code from xhci-omap to the usb/phy directory and moving the associated phy code over to the new file. Newer TI processors adding xHCI support will have different PHY configurations so therefore abstracting this code away will prevent messing around with the xhci-omap file itself. Signed-off-by: NDan Murphy <dmurphy@ti.com>
-
由 Dan Murphy 提交于
Recent patches declares board_usb_init function prototype for a new usb architecture. Turning on the OMAP_XHCI defines cause a redefinition compiler failure. So update the board_usb_init to the latest prototype. Signed-off-by: NDan Murphy <dmurphy@ti.com>
-
由 Dan Murphy 提交于
Moving the xhci-omap header to a more global location so that other code can reference this code. Signed-off-by: NDan Murphy <dmurphy@ti.com>
-
由 Lukasz Majewski 提交于
A set of environment variables needs to be updated to provide support for TIZEN download command (tizendown). Since DFU is used as a flashing backend, it is also necessary to extent malloc pool size for DFU buffer allocation. Moreover, for compatibility reasons (Win vs. Lin) new USB idProduct number for download gadget had to be added. Signed-off-by: NLukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de>
-
由 Lukasz Majewski 提交于
Special, common to Samsung, function for altering usb descriptor's idVendor and idProduct has been added. For compatibility reasons (Win vs Linux) the THOR idProduct must be different than the one for DFU/UMS. Signed-off-by: NLukasz Majewski <l.majewski@samsung.com>
-
由 Lukasz Majewski 提交于
New command - thordown - has been added to support downloading data via lthor TIZEN program. It is similar to dfu command syntax and reuses its code for flashing data. Signed-off-by: NLukasz Majewski <l.majewski@samsung.com>
-
由 Lukasz Majewski 提交于
Support of "thor" function in generic download code (g_dnl.c). Signed-off-by: NLukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de>
-
由 Lukasz Majewski 提交于
Implementation of USB download function which supports THOR protocol. Signed-off-by: NLukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de>
-
由 Lukasz Majewski 提交于
New parameter, namely *name has been added to g_dnl_bind_fixup(). It is necessary (for compatibility reasons) to assign new USB idProduct and idVendor for different usb functions. Signed-off-by: NLukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de>
-
由 Lukasz Majewski 提交于
When the usb_configuration structure is declared as static, it is very hard to assure, that relevant fields (as e.g. config->interfaces[]) are cleared out before new call to g_dnl related functions. Signed-off-by: NLukasz Majewski <l.majewski@samsung.com>
-
由 Lukasz Majewski 提交于
Define the dfu_get_buf() and dfu_free_buf() as global functions. They are necessary for zero copy buffer management, when DFU backend is used for storing data. Signed-off-by: NLukasz Majewski <l.majewski@samsung.com>
-
由 Lukasz Majewski 提交于
New function - dfu_get_alt() - has been added to dfu core. If present, it returns alt setting's number corresponding to passed name. Signed-off-by: NLukasz Majewski <l.majewski@samsung.com>
-
由 Lukasz Majewski 提交于
The s3c udc driver sends data in a max packet size. Therefore the dcache invalidate range shall be equal to max packet, not the entire DMA_BUFFER_SIZE. Signed-off-by: NLukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de>
-
由 Suriyan Ramasami 提交于
Add LED activity for SMSX95XX USB Ether driver. Signed-off-by: N“Suriyan Ramasami" <suriyan.r@gmail.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Mateusz Zalega 提交于
This commit unifies board-specific USB initialization implementations under one symbol (usb_board_init), declaration of which is available in usb.h. New API allows selective initialization of USB controllers whenever needed. Signed-off-by: NMateusz Zalega <m.zalega@samsung.com> Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com> Reviewed-by: NLukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de> Cc: Lukasz Majewski <l.majewski@samsung.com>
-
由 Troy Kisky 提交于
Also, add other USB related config items. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
Select GPIO1 as the USB OTG ID pin for Nitrogen6x Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
desc is set at ep_enable, so for symmetry, clear it at ep_disable. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
Since we flush the TD, we may as well set it to a known value. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
Make sure the transfer descriptor is flushed before the queue is updated so that the controller will not see old information. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
This controller support full and high speed. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
Change 'nfo=' to 'info=' Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
This prevents a crash if tftpboot is given a bad filename. rx_req will be released by eth_reset_config which is called by eth_disconnect, which is called using the .disconnect member of usb_gadget_driver by mv_pullup in mv_udc which is called using the .pullup member of usb_gadget_ops by usb_gadget_disconnect which is called by usb_eth_halt which is called using the .halt member of eth_device by eth_halt which is called by TftpHandler when TFTP_ERR_FILE_NOT_FOUND or TFTP_ERR_ACCESS_DENIED occurs I trigger this with the following commands setenv ipaddr 10.0.0.2 && setenv netmask 255.255.255.0 && setenv serverip 10.0.0.1 setenv usbnet_devaddr 00:11:22:33:44:55 && setenv usbnet_hostaddr 00:aa:bb:cc:dd:ee setenv ethprime usb_ether && setenv ethact usb_ether && setenv ncip 10.0.0.1 tftpboot 10800000 10.0.0.1:missing_file Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-
由 Troy Kisky 提交于
set wMaxPacketSize for full speed descriptors fs_source_desc, fs_sink_desc to 64. Full-speed bulk endpoint can have a maximum packet size of 8, 16, 32, or 64 bytes, so choice 64. The hs_source_desc, hs_sink_desc, already have their wMaxPacketSize set to 512. That is the only legal value for high speed bulk endpoints. Strictly speaking, this patch is not needed because usb_ep_autoconfig will call ep_matches which will override wMaxPacketSize for BULK endpoints only with the size associated with the endpoint setup by the udc driver. But if you want to rely on this, you may as well combine the full speed descriptor with the high speed descriptor to minimize confusion. Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
-