summaryrefslogtreecommitdiffstats
path: root/include/usb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/usb'Sascha Hauer2013-03-043-0/+14
|\
| * USB i.MX: Add chipidea gadget supportSascha Hauer2013-02-151-0/+6
| | | | | | | | | | | | | | | | 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.MX chipidea: implement post init supportSascha Hauer2013-02-141-0/+2
| | | | | | | | | | | | | | 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/+5
| | | | | | | | | | | | | | 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-0/+1
| | | | | | | | | | | | bit25 is part of the PTS bits, so mask it out before rewriting it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | usb: fix build for big-endian platformAntony Pavlov2013-03-031-1/+1
|/ | | | | | | | | | | | | The problem was introduced in commit 51885a7d7321c3e6395c36bc4fe8dde7e78cf562 Author: Sascha Hauer <s.hauer@pengutronix.de> Date: Thu Jun 28 09:56:23 2012 +0200 Change byte order detection mechanism to kernel style Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* USB ULPI: Add more register/bit definesSascha Hauer2012-12-171-8/+34
| | | | | | | 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/+1
| | | | | | | 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-131-0/+46
| | | | | | | | | | | 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-2/+15
| | | | | | | 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>
* Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-035-18/+0
|\ | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-175-18/+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>
* | net: introduce phylibJean-Christophe PLAGNIOL-VILLARD2012-09-251-2/+3
|/ | | | | | | | | | | | | | | | Adapt phylib from linux switch all the driver to it reimplement mii bus This will allow to have - phy drivers - to only connect the phy at then opening of the device - if the phy is not ready or not up fail on open Same behaviour as in linux and will allow to share code and simplify porting. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'for-next/dma-cache-align'Sascha Hauer2012-07-021-1/+2
|\
| * USB core: device descriptor using dma_allocSascha Hauer2012-06-301-1/+1
| | | | | | | | | | | | The device descriptor needs to be dma save. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * USB core: allocate setup_packet using dma_allocSascha Hauer2012-06-301-0/+1
| | | | | | | | | | | | The setup packet needs to be dma save. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Change byte order detection mechanism to kernel styleSascha Hauer2012-06-281-2/+4
|/ | | | | | | | | | | | | | | The Linux Kernel defines only one of __LITTLE_ENDIAN and __BIG_ENDIAN. Endianess can then be tested with #ifdef __xx_ENDIAN. Userspace always defined both __LITTLE_ENDIAN and __BIG_ENDIAN and byteorder can then be tested with #if __BYTE_ORDER == __xx_ENDIAN. As we tend to use a lot of Kernel code in barebox we switch to use the kernel way of determing the byte order. As this always causes a lot of confusion add a check to include/common.h to make sure only one of __LITTLE_ENDIAN and __BIG_ENDIAN is defined. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb: set MAXINTERFACES = 16Antony Pavlov2012-05-291-1/+1
| | | | | | | Tegra2 needs MAXINTERFACES > 8, so increase the macro's value. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Completely migrate option ISP1504 to ULPIAlexander Shiyan2012-04-022-8/+1
| | | | | | | Since we do not have ISP1504-related functions, we migrated to ULPI. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Rename function ulpi_init to ulpi_detectAlexander Shiyan2012-04-021-1/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Move set_vbus_power code to ULPI driverAlexander Shiyan2012-04-021-0/+1
| | | | | | | This is ULPI-specific, not ISP1504. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add ULPI detection function.Alexander Shiyan2012-04-021-0/+1
| | | | | | | | | Added ULPI detection function. Same function from isp1504 driver removed. Used implementation from Linux kernel. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Rename definitions for ULPI registersAlexander Shiyan2012-04-021-10/+10
| | | | | | | | These registers can be used for any standart ULPI chip, not only for ISP1504. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* driver: switch driver_d name to const char*Jean-Christophe PLAGNIOL-VILLARD2012-01-111-1/+1
| | | | | | this will allow to save 200 bytes on a9g20 and 180 bytes on ti xlaoder Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* serial gadget: enable/disable on requestEric Bénard2012-01-041-0/+19
| | | | | | | | | | | | | | - add a usbserial command to enable/disable the serial gadget - allow dfu and usbserial to cohexist in the same barebox - add a timeout in u_serial so that we don't get locked if the user enable usbserial from a UART console but doesn't consume the data on the usbserial port created on the PC - remove debug or verbose printf - tested on i.MX25 & i.MX35 & usb-a926x Signed-off-by: Eric Bénard <eric@eukrea.com> Tested-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Extended USB device matching.Rosen Kolev2011-09-231-0/+22
| | | | | Extended the USB device matching, adding checks for interface class, interface subclass, and interface protocol.
* usb: honour timeout fieldsSascha Hauer2011-09-201-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: seperate usb command from usb coreSascha Hauer2011-04-111-0/+2
| | | | | | | | This patch makes the USB command optional and makes usb_rescan a global function. This way we can use USB in noninteractive environments. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb: add missing byteorder includeSascha Hauer2011-01-071-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix usage of __LITTLE_ENDIAN macro.Krzysztof Halasa2010-12-211-1/+1
| | | | | | | | | | Fix usage of __LITTLE_ENDIAN macro. Both __LITTLE_ENDIAN and __BIG_ENDIAN are always defined by include/linux/byteorder/generic.h, checking for their existence is pointless. Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: rework the mii supportJean-Christophe PLAGNIOL-VILLARD2010-08-271-2/+2
| | | | | | | this rework is done in order to add a phylib and allow to have phy driver support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb: add twl4030 phy supportMichael Grzeschik2010-08-061-0/+28
| | | | | Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ehci: Make has_tt configurable via platform dataSascha Hauer2010-08-061-0/+2
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
* Merge remote branch 'origin/assorted-pu' into nextSascha Hauer2010-06-281-2/+0
|\
| * usbnet: remove unused dev member in struct usbnetSascha Hauer2010-06-241-2/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ehci: Make has_tt configurable via platform dataSascha Hauer2010-06-241-0/+10
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* documentation updatesJuergen Beisert2009-12-154-0/+16
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* list: remove duplicated list.hSascha Hauer2009-11-031-1/+1
| | | | | | | | We accidently have two list implementations in the tree: include/list.h and include/linux/list.h. This patch moves the latter (newer one) to include/linux/list.h. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add USB device supportSascha Hauer2009-09-256-0/+2435
| | | | | | | | | | This patch adds support for USB devices. It uses the Linux Kernel gadget API. Along with this patch comes driver support for the Freescale (arc) USB OTG Core and USB Device Firmware Update (DFU) The serial gadget support is not working at the moment. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb: remove unused fields from struct usb_deviceSascha Hauer2009-09-091-4/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add usb include files missing from USB mergeSascha Hauer2009-04-085-0/+972
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>