diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-10-05 11:59:06 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-10-05 15:04:54 +0800 |
commit | 695b8b49f5c2fa8f2ea48d2a32dbd34292e3c557 (patch) | |
tree | fdbf71e09e65c30835409fd3644ad91906bf3f9e /include/asm-generic | |
parent | c831a944d970b442b395162069a4f0fbef79fcdc (diff) | |
download | barebox-695b8b49f5c2fa8f2ea48d2a32dbd34292e3c557.tar.gz barebox-695b8b49f5c2fa8f2ea48d2a32dbd34292e3c557.tar.xz |
gpio: provide generic gpio header
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/gpio.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h new file mode 100644 index 0000000000..1997888bbb --- /dev/null +++ b/include/asm-generic/gpio.h @@ -0,0 +1,10 @@ +#ifndef __ASM_GENERIC_GPIO_H +#define __ASM_GENERIC_GPIO_H + +void gpio_set_value(unsigned gpio, int value); +int gpio_get_value(unsigned gpio); +int gpio_direction_output(unsigned gpio, int value); +int gpio_direction_input(unsigned gpio); + +#endif /* __ASM_GENERIC_GPIO_H */ + |