Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d53139f authored by David Mosberger's avatar David Mosberger Committed by Greg Kroah-Hartman
Browse files

Add support for using a MAX3421E chip as a host driver.

parent c6a64de0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ obj-$(CONFIG_USB_IMX21_HCD) += host/
obj-$(CONFIG_USB_FSL_MPH_DR_OF)	+= host/
obj-$(CONFIG_USB_FUSBH200_HCD)	+= host/
obj-$(CONFIG_USB_FOTG210_HCD)	+= host/
obj-$(CONFIG_USB_MAX3421_HCD)	+= host/

obj-$(CONFIG_USB_C67X00_HCD)	+= c67x00/

+11 −0
Original line number Diff line number Diff line
@@ -342,6 +342,17 @@ config USB_FOTG210_HCD
	  To compile this driver as a module, choose M here: the
	  module will be called fotg210-hcd.

config USB_MAX3421_HCD
	tristate "MAX3421 HCD (USB-over-SPI) support"
	depends on USB && SPI
	---help---
	  The Maxim MAX3421E chip supports standard USB 2.0-compliant
	  full-speed devices either in host or peripheral mode.  This
	  driver supports the host-mode of the MAX3421E only.

	  To compile this driver as a module, choose M here: the module will
	  be called max3421-hcd.

config USB_OHCI_HCD
	tristate "OHCI HCD (USB 1.1) support"
	select ISP1301_OMAP if MACH_OMAP_H2 || MACH_OMAP_H3
+1 −0
Original line number Diff line number Diff line
@@ -70,3 +70,4 @@ obj-$(CONFIG_USB_HCD_BCMA) += bcma-hcd.o
obj-$(CONFIG_USB_HCD_SSB)	+= ssb-hcd.o
obj-$(CONFIG_USB_FUSBH200_HCD)	+= fusbh200-hcd.o
obj-$(CONFIG_USB_FOTG210_HCD)	+= fotg210-hcd.o
obj-$(CONFIG_USB_MAX3421_HCD)	+= max3421-hcd.o
+1937 −0

File added.

Preview size limit exceeded, changes collapsed.

+23 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014 eGauge Systems LLC
 *	Contributed by David Mosberger-Tang <davidm@egauge.net>
 *
 * Platform-data structure for MAX3421 USB HCD driver.
 *
 */
#ifndef MAX3421_HCD_PLAT_H_INCLUDED
#define MAX3421_HCD_PLAT_H_INCLUDED

/*
 * This structure defines the mapping of certain auxiliary functions to the
 * MAX3421E GPIO pins.  The chip has eight GP inputs and eight GP outputs.
 * A value of 0 indicates that the pin is not used/wired to anything.
 *
 * At this point, the only control the max3421-hcd driver cares about is
 * to control Vbus (5V to the peripheral).
 */
struct max3421_hcd_platform_data {
	u8 vbus_gpout;			/* pin controlling Vbus */
};

#endif /* MAX3421_HCD_PLAT_H_INCLUDED */