summaryrefslogtreecommitdiff
path: root/arch/arm/mach-bcm283x
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-08-11 11:38:31 (GMT)
committerTom Rini <trini@konsulko.com>2016-09-06 17:18:18 (GMT)
commit04a993fe116604b8c81fb116857dbc78e2500133 (patch)
treebce93b862151497867391cca54ff1ff062ff2a26 /arch/arm/mach-bcm283x
parentc0afcb588979e554fd28adeefa6810abb04cf108 (diff)
downloadu-boot-04a993fe116604b8c81fb116857dbc78e2500133.tar.xz
bcm2835_gpio: Implement GPIOF_FUNC
So far we could only tell the gpio framework that a GPIO was mapped as input or output, not as alternative function. This patch adds support for determining whether a function is mapped as alternative. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'arch/arm/mach-bcm283x')
-rw-r--r--arch/arm/mach-bcm283x/include/mach/gpio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm283x/include/mach/gpio.h b/arch/arm/mach-bcm283x/include/mach/gpio.h
index e6e5d16..b2df75a 100644
--- a/arch/arm/mach-bcm283x/include/mach/gpio.h
+++ b/arch/arm/mach-bcm283x/include/mach/gpio.h
@@ -66,4 +66,6 @@ struct bcm2835_gpio_platdata {
unsigned long base;
};
+int bcm2835_gpio_get_func_id(struct udevice *dev, unsigned gpio);
+
#endif /* _BCM2835_GPIO_H_ */