summaryrefslogtreecommitdiff
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2018-07-02 16:10:25 +0200
committerLinus Walleij <linus.walleij@linaro.org>2018-07-02 16:10:25 +0200
commit2b6c83cad13d12b3561e7ae9e7505b3c831c6fce (patch)
treeb39bf040839994bdd0e5af5051bff5c2b0bbcfff /include/linux/gpio
parent72b38caf7b7568ebc167fdd4ec5fa1daa113d08b (diff)
parenta7ca13826e478f9b201eb2f9f20de0b978a82ad9 (diff)
Merge branch 'ib-aspeed' into devel
Diffstat (limited to 'include/linux/gpio')
-rw-r--r--include/linux/gpio/aspeed.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/gpio/aspeed.h b/include/linux/gpio/aspeed.h
new file mode 100644
index 000000000000..1bfb3cdc86d0
--- /dev/null
+++ b/include/linux/gpio/aspeed.h
@@ -0,0 +1,15 @@
+#ifndef __GPIO_ASPEED_H
+#define __GPIO_ASPEED_H
+
+struct aspeed_gpio_copro_ops {
+ int (*request_access)(void *data);
+ int (*release_access)(void *data);
+};
+
+int aspeed_gpio_copro_grab_gpio(struct gpio_desc *desc,
+ u16 *vreg_offset, u16 *dreg_offset, u8 *bit);
+int aspeed_gpio_copro_release_gpio(struct gpio_desc *desc);
+int aspeed_gpio_copro_set_ops(const struct aspeed_gpio_copro_ops *ops, void *data);
+
+
+#endif /* __GPIO_ASPEED_H */