From 04a993fe116604b8c81fb116857dbc78e2500133 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Thu, 11 Aug 2016 13:38:31 +0200 Subject: 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 Reviewed-by: Simon Glass Acked-by: Stephen Warren --- arch/arm/mach-bcm283x/include/mach/gpio.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/arm/mach-bcm283x') diff --git a/arch/arm/mach-bcm283x/include/mach/gpio.h b/arch/arm/mach-bcm283x/include/mach/gpio.h index e6e5d1605d..b2df75ad3f 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_ */ -- cgit v1.2.3