summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2010-04-13 12:07:00 +0200
committertrix <trix@windriver.com>2010-04-30 05:23:25 -0500
commit7d27cd08b4c1adfd58c54aaa8b8c8f4eeb3c7021 (patch)
treeb0ae3f3b50855a1ba00a578ca658bced4aff7d60 /arch
parentdfe83352cb58c55dfdbd5b535cb335526cb1c581 (diff)
downloadu-boot-imx-7d27cd08b4c1adfd58c54aaa8b8c8f4eeb3c7021.zip
u-boot-imx-7d27cd08b4c1adfd58c54aaa8b8c8f4eeb3c7021.tar.gz
u-boot-imx-7d27cd08b4c1adfd58c54aaa8b8c8f4eeb3c7021.tar.bz2
MX31: add accessor function to get a gpio
The patch adds an accessor function to get the value of a gpio. Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/arch-mx31/mx31.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx31/mx31.h b/arch/arm/include/asm/arch-mx31/mx31.h
index 3cc4b35..f702d26 100644
--- a/arch/arm/include/asm/arch-mx31/mx31.h
+++ b/arch/arm/include/asm/arch-mx31/mx31.h
@@ -37,12 +37,17 @@ enum mx31_gpio_direction {
extern int mx31_gpio_direction(unsigned int gpio,
enum mx31_gpio_direction direction);
extern void mx31_gpio_set(unsigned int gpio, unsigned int value);
+extern int mx31_gpio_get(unsigned int gpio);
#else
static inline int mx31_gpio_direction(unsigned int gpio,
enum mx31_gpio_direction direction)
{
return 1;
}
+static inline int mx31_gpio_get(unsigned int gpio)
+{
+ return 1;
+}
static inline void mx31_gpio_set(unsigned int gpio, unsigned int value)
{
}