summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/isp1760-core.h
diff options
context:
space:
mode:
authorLaurent Pinchart2015-01-20 23:55:57 +0100
committerFelipe Balbi2015-01-27 16:39:16 +0100
commit4b1a577d41c99f2aa548e8de3effe1033d9ca40b (patch)
tree181b85235f810e6e31f45a45c2316885ba96e534 /drivers/usb/host/isp1760-core.h
parentusb: isp1760: Reorganize header files (diff)
downloadkernel-qcow2-linux-4b1a577d41c99f2aa548e8de3effe1033d9ca40b.tar.gz
kernel-qcow2-linux-4b1a577d41c99f2aa548e8de3effe1033d9ca40b.tar.xz
kernel-qcow2-linux-4b1a577d41c99f2aa548e8de3effe1033d9ca40b.zip
usb: isp1760: Move core code to isp1760-core.c
Move core device initialization to a central location in order to share it with the device mode implementation. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/host/isp1760-core.h')
-rw-r--r--drivers/usb/host/isp1760-core.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/usb/host/isp1760-core.h b/drivers/usb/host/isp1760-core.h
new file mode 100644
index 000000000000..0caeb1135275
--- /dev/null
+++ b/drivers/usb/host/isp1760-core.h
@@ -0,0 +1,33 @@
+/*
+ * Driver for the NXP ISP1760 chip
+ *
+ * Copyright 2014 Laurent Pinchart
+ * Copyright 2007 Sebastian Siewior
+ *
+ * Contacts:
+ * Sebastian Siewior <bigeasy@linutronix.de>
+ * Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ */
+
+#ifndef _ISP1760_CORE_H_
+#define _ISP1760_CORE_H_
+
+#include <linux/ioport.h>
+
+#include "isp1760-hcd.h"
+
+struct isp1760_device {
+ void __iomem *regs;
+
+ struct isp1760_hcd hcd;
+};
+
+int isp1760_register(struct resource *mem, int irq, unsigned long irqflags,
+ struct device *dev, unsigned int devflags);
+void isp1760_unregister(struct device *dev);
+
+#endif