1 /* 2 * Copyright (C) 2012 3 * Philippe Reynes <tremyfr@yahoo.fr> 4 * 5 * See file CREDITS for list of people who contributed to this 6 * project. 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License as 10 * published by the Free Software Foundation; either version 2 of 11 * the License, or (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21 * MA 02111-1307 USA 22 */ 23 24 25 #ifndef __ASM_ARCH_MX27_GPIO_H 26 #define __ASM_ARCH_MX27_GPIO_H 27 28 /* GPIO registers */ 29 struct gpio_regs { 30 u32 gpio_dir; /* DDIR */ 31 u32 ocr1; 32 u32 ocr2; 33 u32 iconfa1; 34 u32 iconfa2; 35 u32 iconfb1; 36 u32 iconfb2; 37 u32 gpio_dr; /* DR */ 38 u32 gius; 39 u32 gpio_psr; /* SSR */ 40 u32 icr1; 41 u32 icr2; 42 u32 imr; 43 u32 isr; 44 u32 gpr; 45 u32 swr; 46 u32 puen; 47 u32 res[0x2f]; 48 }; 49 50 /* This structure is used by the function imx_gpio_mode */ 51 struct gpio_port_regs { 52 struct gpio_regs port[6]; 53 }; 54 55 #endif 56