]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
gpio: zynq: Add dummy gpio routines
authorJagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>
Wed, 8 Jan 2014 20:18:27 +0000 (01:48 +0530)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 10 Jan 2014 14:18:33 +0000 (15:18 +0100)
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 <jaganna@xilinx.com>
arch/arm/include/asm/arch-zynq/gpio.h [new file with mode: 0644]

diff --git a/arch/arm/include/asm/arch-zynq/gpio.h b/arch/arm/include/asm/arch-zynq/gpio.h
new file mode 100644 (file)
index 0000000..2dbba75
--- /dev/null
@@ -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 */