summaryrefslogtreecommitdiffstats
path: root/drivers/usb
Commit message (Collapse)AuthorAgeFilesLines
* USB gadget at91: Use dev_add_param_bool for vbus parameterSascha Hauer2013-04-111-16/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: Use dev_add_param_int_ro where possibleSascha Hauer2013-04-111-9/+10
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2013-04-041-4/+4
|\
| * usb/gadget/Kconfig: fix menuEric Bénard2013-03-121-4/+4
| | | | | | | | | | | | | | | | | | by reordering the entry, USB gadget support is now a menu and the USB gadget choices are under this menu and not directly in the driver menu. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | usb: chipidea-imx: Fix usb initializationAlexander Shiyan2013-03-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | This patch fix chipidea-imx usb initialization. "imx_chipidea_port_init" was moved before PORTSC setup in the commit "USB i.MX chipidea: implement post init support". This change breaks usb function with ULPI. Patch moves port initialization back after PORTSC setup, so it works again. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | usb: ehci: initialize ehci_dataSascha Hauer2013-03-081-1/+1
|/ | | | | | | Without it fields of ehci_data may be unitialized and the driver crashes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/usb'Sascha Hauer2013-03-044-27/+177
|\
| * USB i.MX: Add chipidea gadget supportSascha Hauer2013-02-152-7/+15
| | | | | | | | | | | | | | | | This adds USB gadget support to the i.MX chipidea driver. Basically we have to add a register function to the fsl udc driver and call this from the chipidea driver if device mode is selected. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * USB i.MX6: Add HSIC supportSascha Hauer2013-02-141-0/+60
| | | | | | | | | | | | | | | | | | | | HSIC needs some special setup for i.MX6. Most ugly detail is that the HSIC needs help of the IOMUX to configure a pullup on the strobe line. This has to be done after the ehci controller has started. Fortunately there is only one muxing possibility for the HSIC ports on i.MX6, so we can simply control the iomux from the usbmisc driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * USB i.MX chipidea: implement post init supportSascha Hauer2013-02-142-19/+87
| | | | | | | | | | | | | | Some controllers need an init hook after the USB controller is started, so implement the post init hook for i.MX. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * USB ehci: Add platform specific init callsSascha Hauer2013-02-141-0/+14
| | | | | | | | | | | | | | Some USB cores need a platform specific init hook, add it to the ehci driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * USB chipidea i.MX: Fix PTS mask for HSICSascha Hauer2013-02-141-1/+1
| | | | | | | | | | | | bit25 is part of the PTS bits, so mask it out before rewriting it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mfd: Using MFD_xx prefix for symbolsAlexander Shiyan2013-02-181-1/+1
| | | | | | | | | | | | | | | | This patch provides rename MFD-related symbols for using MFD-prefix. Additionally, sorting mfd/Kconfig and mfd/Makefile records. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Use new device_platform_driver() macro for driversAlexander Shiyan2013-02-138-61/+8
|/ | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2013-02-041-1/+1
|\
| * introduce console none supportJean-Christophe PLAGNIOL-VILLARD2013-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | this will allow to have no console support Use full for bootstrap as we can save 6.5 KiB (barebox.bin) and 3.8 KiB (zbarebox.bin lzo) on at91sam9263 as example vs console simple As on bootstrap we have often very limited size. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx-usb-chipidea'Sascha Hauer2013-02-044-0/+123
|\ \
| * | ARM i.MX6: Add Chipidea supportSascha Hauer2013-01-201-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | This allows to register the USB ports for the chipidea driver. For now the otg/h1 register functions also register the corresponding USB phys. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | USB: Add usb phy driver for i.MXSascha Hauer2013-01-203-0/+111
| |/ | | | | | | | | | | | | | | This phy is found on i.MX6 and i.MX23/28. Currently tested only on i.MX6. For now we take the easy way out. The phy is enabled upon registration. More elaborated handling can be added later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/compile-log-level'Sascha Hauer2013-02-041-38/+38
|\ \ | | | | | | | | | | | | Conflicts: drivers/usb/host/ehci-hcd.c
| * | USB ehci: Use dev_* for messagesSascha Hauer2013-01-271-34/+39
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ehci: add atmel supportJean-Christophe PLAGNIOL-VILLARD2013-01-233-0/+102
| | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ehci: if caps ressource is not provided discover it via cr_capbaseJean-Christophe PLAGNIOL-VILLARD2013-01-231-4/+12
| | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | usb: fix for USB_ST_STALLED status reporting in ehci_submit_async()Jean-Christophe PLAGNIOL-VILLARD2013-01-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Checking the status field of the qTD token in the current code do not take into acount cases where endpoint stall (halted) bit is set together with XactErr status bit. As a result clearing stall on an endpoint won't be done if this status bit was also set. Check for halted bit and report USB_ST_STALLED status if the host controller also indicates endpoit stall condition. From u-boot by Anatolij Gustschin <agust@denx.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | usb: add parameters info on usb deviceJean-Christophe PLAGNIOL-VILLARD2013-01-231-0/+14
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | iManufacturer = 0 iProduct = 1 iSerialNumber = 0 Manufacturer = Product = OHCI Root Hub SerialNumber = idVendor = 0000 idProduct = 0000 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ohci: only enable drivers if ohci is enabledJean-Christophe PLAGNIOL-VILLARD2013-01-231-0/+4
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ohci: make it depends on !MMUJean-Christophe PLAGNIOL-VILLARD2013-01-231-0/+1
|/ | | | | | | the current mmu support is broken Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/omap'Sascha Hauer2013-01-091-38/+38
|\
| * ARM omap3: Add change OMAP_ prefix to OMAP3_ for registersSascha Hauer2012-12-201-38/+38
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx'Sascha Hauer2013-01-098-26/+597
|\ \
| * | USB ehci: Add powerup fixup for EfikaSBSascha Hauer2012-12-171-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | The EfikaSB has a bug requiring to write to an ULPI register after powerup. It doesn't seem that this this bug is present on any other hardware, so add a workaround directly into the driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | USB ULPI: Add more register/bit definesSascha Hauer2012-12-171-8/+8
| | | | | | | | | | | | | | | | | | | | | Make the register defines for ULPI more complete. Also, Add a proper ULPI_* Namespace to the existing defines. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | USB ULPI: Add missing ulpi_write functionSascha Hauer2012-12-171-0/+17
| | | | | | | | | | | | | | | | | | | | | We currently only have functions to read/modify registers. Add a function to write registers. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | USB i.MX: Add chipidea driver supportSascha Hauer2012-12-136-0/+520
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For proper USB function the usbmisc registers have to be initialized. This patch adds a driver which matches for the usbmisc registers. This driver is called from a new driver which binds to the USB ports to configure the misc registers. After that the driver registers the EHCI driver and an ULPI transceiver if necessary. Currently only host mode is supported, but device support can be added later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | USB ehci: Allow to register independently from deviceSascha Hauer2012-12-131-18/+28
| |/ | | | | | | | | | | | | The EHCI core often is part of a otg core. Allow it to be registered separately from another driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | usb: at91_udc: request and configure vbus pin via gpiolibJean-Christophe PLAGNIOL-VILLARD2013-01-021-0/+7
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | at91: switch to gpiolibJean-Christophe PLAGNIOL-VILLARD2012-12-221-1/+1
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | at91: use gpio_is_valid to check gpioJean-Christophe PLAGNIOL-VILLARD2012-12-221-1/+1
|/ | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cleanup Kconfig filesAlexander Shiyan2012-12-082-2/+2
| | | | | | | | | This patch provides a global cleanup barebox Kconfig files. This includes replacing spaces to tabs, formatting in accordance format, removing extraneous lines and spaces. No functional changes. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* USB ulpi: pass return valueSascha Hauer2012-12-031-2/+5
| | | | | | | | Pass the return value from ulpi_probe in ulpi_setup instead of returning -1 (which is -EPERM and does not make sense in this context) Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb: add flow control to u_serialRobert Jarzmik2012-10-291-8/+17
| | | | | | | | | | | | | | | | | | | When using the serial console over USB to download files, and when the USB bandwidth is pushed to its limits, the barebox UDC device won't be able to absorb all the traffic. Modify the u_serial gadget so that if there is not enough room in buffers, don't push USB requests down the gadget driver, so that it is saturated, and give it a chance to NAK requests. The previous behaviour was loosing bytes (as kfifo_put is lossy). The fixed behavious is lossless (based on USB NAK protocol). While at it, increase a bit buffer sizes to 8kB to absorb heavy transfers such as a linux kernel image. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* switch all platform_bus device/driver registering to ↵Jean-Christophe PLAGNIOL-VILLARD2012-10-046-6/+6
| | | | | | | | platform_driver/device_register now register_driver and register_device are for bus only usage. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-0317-66/+0
|\ | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-1717-66/+0
| | | | | | | | | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | driver: register busJean-Christophe PLAGNIOL-VILLARD2012-09-231-0/+5
|/ | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/usb'Sascha Hauer2012-09-051-1/+2
|\
| * usb: use ep-specific pwrgood delaySteffen Trumtrar2012-08-311-1/+2
| | | | | | | | | | | | | | | | | | | | | | In usb_hub_configure the hub is asked for its descriptor and among other things its bPwrOn2PwrGood time. In the actual hub_power_on function this information was not used and a hardcoded value was used instead. For some hubs this delay is to short. So, use the delay the hub wants. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | trivial: fix spelling in usb codeSteffen Trumtrar2012-08-311-2/+2
|/ | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb: gadget: enable for MXSMarc Kleine-Budde2012-07-251-2/+2
| | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb gadget: Enable gadget support only when a driver is availableSascha Hauer2012-07-251-0/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>