diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-24 09:00:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-24 09:00:13 +0300 |
commit | 670d198b61ebfb4c9b13e50dccbd904a62ae593c (patch) | |
tree | 0040734e652345bef45c345c6fc354f664755da8 /include/linux/gpio/aspeed.h | |
parent | bce5c2ea350f5a57353295534faba00b28cadf14 (diff) | |
parent | 0a213777d1dd879092225a7aa847b6e9b3a1c267 (diff) | |
download | linux-670d198b61ebfb4c9b13e50dccbd904a62ae593c.tar.xz |
Merge tag 'fsi-updates-2018-07-24' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/linux-fsi into char-misc-testing
Ben writes:
This adds support for offloading the FSI low level bitbanging to the
ColdFire coprocessor of the Aspeed SoCs. All the pre-requisites have
already been merged, this is the final piece in the puzzle.
This branch also pull gpio/ib-aspeed which is a topic branch already
in gpio/for-next (and thus in next) whic contains pre-requisites.
Finally, there's also a bug fix to the sbefifo driver for some
inconsistent use of a mutex in the error handling code.
Diffstat (limited to 'include/linux/gpio/aspeed.h')
-rw-r--r-- | include/linux/gpio/aspeed.h | 15 |
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 */ |