From: Jagannadha Sutradharudu Teki Date: Wed, 8 Jan 2014 20:18:27 +0000 (+0530) Subject: gpio: zynq: Add dummy gpio routines X-Git-Tag: v2014.01-rc3~9^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=84515165da1dd21171b7d6042f07b2af210849b5;p=u-boot gpio: zynq: Add dummy gpio routines GPIO dummy routines are required for fdt build, may be removed these dependencies once the u-boot fdt is fully optimized. Signed-off-by: Jagannadha Sutradharudu Teki --- diff --git a/arch/arm/include/asm/arch-zynq/gpio.h b/arch/arm/include/asm/arch-zynq/gpio.h new file mode 100644 index 0000000000..2dbba756d7 --- /dev/null +++ b/arch/arm/include/asm/arch-zynq/gpio.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2013 Xilinx, Inc. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef _ZYNQ_GPIO_H +#define _ZYNQ_GPIO_H + +inline int gpio_get_value(unsigned gpio) +{ + return 0; +} + +inline int gpio_set_value(unsigned gpio, int val) +{ + return 0; +} + +inline int gpio_request(unsigned gpio, const char *label) +{ + return 0; +} + +#endif /* _ZYNQ_GPIO_H */