aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBalaji Rao <balajirrao@openmoko.org>2009-02-22 04:40:00 +0000
committerAndy Green <agreen@octopus.localdomain>2009-02-22 04:40:00 +0000
commit98c80a0a2edabfbffab978ed863097ab629a4aab (patch)
tree3d5c581344b8765d4bd7641608f71a529c96a5aa /include
parent4082bc2934bf1e6363e2a5c4c98b3836e54d8695 (diff)
introduce_generic_hdq_gpio_bitbang_driver.patch
Introduce a new generic HDQ gpio based bitbang driver Signed-off-by: Balaji Rao <balajirrao@openmoko.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/hdq.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/hdq.h b/include/linux/hdq.h
new file mode 100644
index 00000000000..e706790648b
--- /dev/null
+++ b/include/linux/hdq.h
@@ -0,0 +1,30 @@
+#ifndef __LINUX_HDQ_H__
+#define __LINUX_HDQ_H__
+
+#include <linux/device.h>
+
+/* platform data */
+
+struct hdq_platform_data {
+ /*
+ * give an opportunity to use us as parent for
+ * devices that depend on us
+ */
+ void (*attach_child_devices)(struct device *parent_device);
+
+ void (*gpio_dir_out)(void);
+ void (*gpio_dir_in)(void);
+ void (*gpio_set)(int);
+ int (*gpio_get)(void);
+
+ int (*enable_fiq)(void);
+ void (*disable_fiq)(void);
+ void (*kick_fiq)(void);
+
+};
+
+int hdq_read(int address);
+int hdq_write(int address, u8 data);
+int hdq_initialized(void);
+
+#endif