diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-09-23 14:54:06 +0200 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-09-23 14:54:06 +0200 |
commit | 6d41420c8e96a708ee34d1f765e73c0483ac7a06 (patch) | |
tree | 5829fb310a55604327137d0749ef534fd298ebbb /include/linux/hdq.h | |
parent | 74fca6a42863ffacaf7ba6f1936a9f228950f657 (diff) |
Add hdq and bq27000 driver.
Diffstat (limited to 'include/linux/hdq.h')
-rw-r--r-- | include/linux/hdq.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/linux/hdq.h b/include/linux/hdq.h new file mode 100644 index 00000000000..377ab387eb3 --- /dev/null +++ b/include/linux/hdq.h @@ -0,0 +1,32 @@ +#ifndef __LINUX_HDQ_H__ +#define __LINUX_HDQ_H__ + +#include <linux/device.h> + +#define HDQ_SAMPLE_PERIOD_US 10 + +/* 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 |