Add support for EP9xx GPIOs
PATCH 3/5 Add support for EP9xx GPIOs
Added generic GPIO support for EP93xx SoCs
Signed-off-by Matthias Kaehlcke <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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