summaryrefslogtreecommitdiff
path: root/include/linux/ulpi/interface.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-02 10:47:03 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-02 10:47:03 +0900
commite152813ff5fea74094ae296367f477411df1ba24 (patch)
tree6e8c38a3b83f0f07f75df50793332aa47a81c709 /include/linux/ulpi/interface.h
parent74db22cb3a16dcd782a31236eb139f5865804ae6 (diff)
parente18b7975c885bc3a938b9a76daf32957ea0235fa (diff)
downloadlinux-e152813ff5fea74094ae296367f477411df1ba24.tar.gz
linux-e152813ff5fea74094ae296367f477411df1ba24.tar.xz
Merge tag 'usb-for-v4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next
Felipe writes: usb: patches for v4.2 merge window - dwc2 adds hibernation support - preparation for sunxi glue to musb driver - new ULPI bus - new ULPI PHY driver for TUSB1210 - musb patches to support multiple DMA engines on same binary - support for R-Car E2 on renesas_usbhs Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/ulpi/interface.h')
-rw-r--r--include/linux/ulpi/interface.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/ulpi/interface.h b/include/linux/ulpi/interface.h
new file mode 100644
index 000000000000..4de8ab491038
--- /dev/null
+++ b/include/linux/ulpi/interface.h
@@ -0,0 +1,23 @@
+#ifndef __LINUX_ULPI_INTERFACE_H
+#define __LINUX_ULPI_INTERFACE_H
+
+#include <linux/types.h>
+
+struct ulpi;
+
+/**
+ * struct ulpi_ops - ULPI register access
+ * @dev: the interface provider
+ * @read: read operation for ULPI register access
+ * @write: write operation for ULPI register access
+ */
+struct ulpi_ops {
+ struct device *dev;
+ int (*read)(struct ulpi_ops *ops, u8 addr);
+ int (*write)(struct ulpi_ops *ops, u8 addr, u8 val);
+};
+
+struct ulpi *ulpi_register_interface(struct device *, struct ulpi_ops *);
+void ulpi_unregister_interface(struct ulpi *);
+
+#endif /* __LINUX_ULPI_INTERFACE_H */