diff options
author | Alexander Graf <agraf@suse.de> | 2016-08-11 13:38:31 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-06 13:18:18 -0400 |
commit | 04a993fe116604b8c81fb116857dbc78e2500133 (patch) | |
tree | bce93b862151497867391cca54ff1ff062ff2a26 /arch/arm/mach-bcm283x/include | |
parent | c0afcb588979e554fd28adeefa6810abb04cf108 (diff) | |
download | u-boot-imx-04a993fe116604b8c81fb116857dbc78e2500133.zip u-boot-imx-04a993fe116604b8c81fb116857dbc78e2500133.tar.gz u-boot-imx-04a993fe116604b8c81fb116857dbc78e2500133.tar.bz2 |
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/include')
-rw-r--r-- | arch/arm/mach-bcm283x/include/mach/gpio.h | 2 |
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_ */ |