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

Commit 277164f0 authored by Neil Zhang's avatar Neil Zhang Committed by Felipe Balbi
Browse files

USB: OTG: add Marvell usb OTG driver support



This driver is for ChipIdea USB OTG controller on Marvell Socs.
PXA9xx/MMP2/MMP3/MGx all have this USB OTG controller.

Signed-off-by: default avatarNeil Zhang <zhangwm@marvell.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 5e6c86b0
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -130,4 +130,16 @@ config FSL_USB2_OTG
	help
	  Enable this to support Freescale USB OTG transceiver.

config USB_MV_OTG
	tristate "Marvell USB OTG support"
	depends on USB_MV_UDC
	select USB_OTG
	select USB_OTG_UTILS
	help
	  Say Y here if you want to build Marvell USB OTG transciever
	  driver in kernel (including PXA and MMP series). This driver
	  implements role switch between EHCI host driver and gadget driver.

	  To compile this driver as a module, choose M here.

endif # USB || OTG
+1 −0
Original line number Diff line number Diff line
@@ -21,3 +21,4 @@ obj-$(CONFIG_USB_MSM_OTG) += msm_otg.o
obj-$(CONFIG_AB8500_USB)	+= ab8500-usb.o
fsl_usb2_otg-objs		:= fsl_otg.o otg_fsm.o
obj-$(CONFIG_FSL_USB2_OTG)	+= fsl_usb2_otg.o
obj-$(CONFIG_USB_MV_OTG)	+= mv_otg.o
+957 −0

File added.

Preview size limit exceeded, changes collapsed.

+165 −0

File added.

Preview size limit exceeded, changes collapsed.

+5 −0
Original line number Diff line number Diff line
@@ -42,6 +42,11 @@ struct mv_usb_platform_data {
	/* only valid for HCD. OTG or Host only*/
	unsigned int		mode;

	/* This flag is used for that needs id pin checked by otg */
	unsigned int    disable_otg_clock_gating:1;
	/* Force a_bus_req to be asserted */
	 unsigned int    otg_force_a_bus_req:1;

	int	(*phy_init)(void __iomem *regbase);
	void	(*phy_deinit)(void __iomem *regbase);
	int	(*set_vbus)(unsigned int vbus);