Skip to contentSkip to conversation

Add support for EP9xx GPIOs

PATCH Applied Matthias Kaehlcke 1 participant 1 message Jan 12, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 3/5 Add support for EP9xx GPIOs

Added generic GPIO support for EP93xx SoCs

---
 arch/arm/Kconfig                         |    1 +
 arch/arm/mach-ep93xx/Makefile            |    2 +-
 arch/arm/mach-ep93xx/gpio.c              |  136 ++++++++++++++++++++++++++++++
 arch/arm/mach-ep93xx/include/mach/gpio.h |   29 +++++++
 4 files changed, 167 insertions(+), 1 deletions(-)
 create mode 100644 arch/arm/mach-ep93xx/gpio.c
 create mode 100644 arch/arm/mach-ep93xx/include/mach/gpio.h
arch/arm/Kconfig +1 -0
index 414a013..9cad224 100644
@@ -34,6 +34,7 @@ config ARCH_AT91RM9200
 config ARCH_EP93XX
 	bool "Cirrus Logic EP93xx"
 	select CPU_ARM920T
+	select GENERIC_GPIO
 
 config ARCH_IMX
 	bool "Freescale iMX-based"
arch/arm/mach-ep93xx/Makefile +1 -1
index d5786db..dac6571 100644
@@ -1,3 +1,3 @@
-obj-y += clocksource.o led.o
+obj-y += clocksource.o gpio.o led.o
 
 obj-$(CONFIG_MACH_DO_LOWLEVEL_INIT) += lowlevel_init.o
arch/arm/mach-ep93xx/gpio.c new file +136 -0

136 lines not on this page · raw message

arch/arm/mach-ep93xx/include/mach/gpio.h new file +29 -0
new file mode 100644
index 0000000..a305f27
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2010 Matthias Kaehlcke <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ */
+
+#ifndef __ASM_ARCH_GPIO_H
+#define __ASM_ARCH_GPIO_H
+
+void gpio_set_value(unsigned gpio, int value);
+int gpio_get_value(unsigned gpio);
+int gpio_direction_output(unsigned gpio, int value);
+int gpio_direction_input(unsigned gpio);
+
+#endif /* __ASM_ARCH_GPIO_H */
+
Signature · 7 lines
1.6.3.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox