gpio.h 1.13 KB
Newer Older
1
/*
2
 * Milkymist SoC (Software)
3
 * Copyright (C) 2007, 2008, 2009 Sebastien Bourdeauducq
4
 * Copyright (C) 2011 CERN
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
 *
 * 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, version 3 of the License.
 *
 * 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, see <http://www.gnu.org/licenses/>.
 */

#ifndef __HW_GPIO_H
#define __HW_GPIO_H

/* Inputs */
23 24
#define GPIO_PB2		(0x00000001)
#define GPIO_1W			(0x00000002)
25
#define GPIO_I2C_SDAIN		(0x00000004)
26 27

/* Outputs */
28 29 30 31 32
#define GPIO_LD2		(0x00000001)
#define GPIO_LD3		(0x00000002)
#define GPIO_LD4		(0x00000004)
#define GPIO_LD5		(0x00000008)
#define GPIO_1W_DRIVELOW	(0x00000010)
33
#define GPIO_I2C_SDC		(0x00000020)
34
#define GPIO_I2C_SDA_DRIVELOW	(0x00000040)
35 36

#endif /* __HW_GPIO_H */