[PATCH 04/10] MXS: Add data shared between imx-usb, PHY and EHCI driver
Marek Vasut
marex at denx.de
Tue Apr 17 22:07:43 EDT 2012
This patch adds common data shared between the MXS USB PHY driver, the MXS EHCI
HCD driver and the imx-usb composite driver.
Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Chen Peter-B29397 <B29397 at freescale.com>
Cc: Detlev Zundel <dzu at denx.de>
Cc: Fabio Estevam <festevam at gmail.com>
Cc: Li Frank-B20596 <B20596 at freescale.com>
Cc: Lin Tony-B19295 <B19295 at freescale.com>
Cc: Linux USB <linux-usb at vger.kernel.org>
Cc: Sascha Hauer <s.hauer at pengutronix.de>
Cc: Shawn Guo <shawn.guo at freescale.com>
Cc: Shawn Guo <shawn.guo at linaro.org>
Cc: Stefano Babic <sbabic at denx.de>
Cc: Subodh Nijsure <snijsure at grid-net.com>
Cc: Tony Lin <tony.lin at freescale.com>
Cc: Wolfgang Denk <wd at denx.de>
---
include/linux/fsl_devices.h | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h
index fffdf00..20038c0 100644
--- a/include/linux/fsl_devices.h
+++ b/include/linux/fsl_devices.h
@@ -18,6 +18,7 @@
#define _FSL_DEVICE_H_
#include <linux/types.h>
+#include <linux/platform_device.h>
/*
* Some conventions on how we handle peripherals on Freescale chips
@@ -97,6 +98,20 @@ struct fsl_usb2_platform_data {
u32 pm_usbgenctrl;
};
+struct imx_usb_data {
+ struct clk *clk;
+ struct resource *mem_res;
+ void __iomem *mem;
+ int irq;
+};
+
+struct imx_usb {
+ struct platform_device *host_dev;
+ struct platform_device *phy_dev;
+ struct imx_usb_data host;
+ struct imx_usb_data phy;
+};
+
/* Flags in fsl_usb2_mph_platform_data */
#define FSL_USB2_PORT0_ENABLED 0x00000001
#define FSL_USB2_PORT1_ENABLED 0x00000002
--
1.7.9.5
More information about the linux-arm-kernel
mailing list