/*
 * linux/arch/arm/mach-discovery/gpio.h -- GPIO Pins
 *
 * Copyright 2010: Allied Telesis <www.alliedtelesis.com>
 *
 * See file CREDITS for list of people who contributed to this
 * project.
 *
 * 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., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301 USA
 */

#ifndef __DISCOVERY_GPIO_H
#define __DISCOVERY_GPIO_H

#define GPIO0		0
#define GPIO1		1
#define GPIO2		2
#define GPIO3		3
#define GPIO4		4
#define GPIO5		5
#define GPIO6		6
#define GPIO7		7
#define GPIO8		8
#define GPIO9		9
#define GPIO10		10
#define GPIO11		11
#define GPIO12		12
#define GPIO13		13
#define GPIO14		14
#define GPIO15		15
#define GPIO16		16
#define GPIO17		17
#define GPIO18		18
#define GPIO19		19
#define GPIO20		20
#define GPIO21		21
#define GPIO22		22
#define GPIO23		23
#define GPIO24		24
#define GPIO25		25
#define GPIO26		26
#define GPIO27		27
#define GPIO28		28
#define GPIO29		29
#define GPIO30		30
#define GPIO31		31

void disco_config_gpio(unsigned int gpp_oe_val,
		       unsigned int gpp_oe);

u32 disco_get_gpio(u32 gpp);
void disco_set_gpio(u32 gpp, u32 bit) ;

#endif
