summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>2014-01-09 01:48:27 +0530
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-01-10 15:18:33 +0100
commit84515165da1dd21171b7d6042f07b2af210849b5 (patch)
tree993a52c04541cfe9d7db7d9fa07addb4e162445d
parentf8f36c5dda67c53c471d1fe65215b9124ef62d71 (diff)
downloadu-boot-imx-84515165da1dd21171b7d6042f07b2af210849b5.zip
u-boot-imx-84515165da1dd21171b7d6042f07b2af210849b5.tar.gz
u-boot-imx-84515165da1dd21171b7d6042f07b2af210849b5.tar.bz2
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 <jaganna@xilinx.com>
-rw-r--r--arch/arm/include/asm/arch-zynq/gpio.h25
1 files changed, 25 insertions, 0 deletions
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 0000000..2dbba75
--- /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 */