diff options
| author | Tom Rini <trini@ti.com> | 2012-09-21 16:22:18 -0700 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2012-09-21 16:22:18 -0700 | 
| commit | 9fe2cfb43aab2225a8c970a69341534b2488da8c (patch) | |
| tree | 9dbb2228a729857375131191631c305732e4e4cc /include/asm-generic/gpio.h | |
| parent | 495dbd72dd1172de866ba323263a5b62cf454972 (diff) | |
| parent | cf5787f2a4f1af71e72f4faaee32685c8f82a3dd (diff) | |
| download | olio-uboot-2014.01-9fe2cfb43aab2225a8c970a69341534b2488da8c.tar.xz olio-uboot-2014.01-9fe2cfb43aab2225a8c970a69341534b2488da8c.zip | |
Merge branch 'agust@denx.de' of git://git.denx.de/u-boot-staging
Diffstat (limited to 'include/asm-generic/gpio.h')
| -rw-r--r-- | include/asm-generic/gpio.h | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index c19e16cd2..23c964940 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -94,4 +94,13 @@ int gpio_get_value(unsigned gpio);   */  int gpio_set_value(unsigned gpio, int value); +/** + * Request a gpio. This should be called before any of the other functions + * are used on this gpio. + * + * @param gp	GPIO number + * @param label	User label for this GPIO + * @return 0 if ok, -1 on error + */ +int gpio_request(unsigned gpio, const char *label);  #endif	/* _ASM_GENERIC_GPIO_H_ */ |