summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorNikita Kiryanov <nikita@compulab.co.il>2012-11-27 22:40:57 +0000
committerTom Rini <trini@ti.com>2012-12-10 12:45:35 -0700
commitdcee1ab3207327f142635b08e834af5e9f9f8cc9 (patch)
tree1e33d076024e6fa730215879954f28849103b296 /arch
parentabcbe2eb00dbb18d42bc505363115146c14a7ea0 (diff)
downloadu-boot-imx-dcee1ab3207327f142635b08e834af5e9f9f8cc9.zip
u-boot-imx-dcee1ab3207327f142635b08e834af5e9f9f8cc9.tar.gz
u-boot-imx-dcee1ab3207327f142635b08e834af5e9f9f8cc9.tar.bz2
gpio: add gpio_is_valid() to omap_gpio API
Add gpio_is_valid() to omap_gpio API Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/omap_gpio.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/omap_gpio.h b/arch/arm/include/asm/omap_gpio.h
index 516cc42..1ebfa86 100644
--- a/arch/arm/include/asm/omap_gpio.h
+++ b/arch/arm/include/asm/omap_gpio.h
@@ -49,4 +49,11 @@ extern const struct gpio_bank *const omap_gpio_bank;
#define METHOD_GPIO_24XX 4
+/**
+ * Check if gpio is valid.
+ *
+ * @param gpio GPIO number
+ * @return 1 if ok, 0 on error
+ */
+int gpio_is_valid(int gpio);
#endif /* _GPIO_H_ */