Skip to contentSkip to conversation

usb: port UHCI driver from the u-boot

RFC In review [email protected] 2 participants 2 messages Jan 18, 2016 – Feb 1, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC 1/1 usb: port UHCI driver from the u-boot

From: Peter Mamonov <[email protected]>

Here is a UHCI driver ported from the u-boot. There are a few pending FIXMEs, but the driver should work.

Can anyone test it?

BINDING:

	uhci: uhci@00000000 {
		compatible = "generic-uhci";
		reg = <0x00000000 0x200>;

		/* specify companion EHCI controller if any */
		companion = <&ehci>;
	};
---
 drivers/usb/host/Kconfig    |    4 +
 drivers/usb/host/Makefile   |    1 +
 drivers/usb/host/uhci-hcd.c | 1336 +++++++++++++++++++++++++++++++++++++++++++
 drivers/usb/host/uhci-hcd.h |  165 ++++++
 4 files changed, 1506 insertions(+)
 create mode 100644 drivers/usb/host/uhci-hcd.c
 create mode 100644 drivers/usb/host/uhci-hcd.h
drivers/usb/host/Kconfig +4 -0
index 54eaf46..61d981e 100644
@@ -1,3 +1,7 @@
+config USB_UHCI
+	bool "UHCI driver"
+	depends on HAS_DMA
+
 config USB_EHCI
 	bool "EHCI driver"
 	depends on HAS_DMA
drivers/usb/host/Makefile +1 -0
index 0478d34..628ba61 100644
@@ -1,3 +1,4 @@
+obj-$(CONFIG_USB_UHCI)		+= uhci-hcd.o
 obj-$(CONFIG_USB_EHCI)		+= ehci-hcd.o
 obj-$(CONFIG_USB_EHCI_OMAP)	+= ehci-omap.o
 obj-$(CONFIG_USB_EHCI_ATMEL)	+= ehci-atmel.o
drivers/usb/host/uhci-hcd.c new file +1336 -0

1,336 lines not on this page · raw message

drivers/usb/host/uhci-hcd.h new file +165 -0

165 lines not on this page · raw message

Signature · 7 lines
2.1.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

Hi Peter,

Quoted 6 lines · On Mon, Jan 18, 2016 at 08:55:15PM +0300, [email protected] wrote:

From: Peter Mamonov <[email protected]>

Here is a UHCI driver ported from the u-boot. There are a few pending FIXMEs, but the driver should work.

Can anyone test it?

I'm afraid nobody can test it here. Personally I have never seen a board with uhci controller. I could review the driver though if you need more input.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox