2 * Copyright (C) 2008 Embedded Alley Solutions Inc.
4 * (C) Copyright 2009-2010 Freescale Semiconductor, Inc.
6 * Clock control register descriptions
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
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.
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, MA 02111-1307 USA
25 #include <asm/arch/mx23.h>
27 #define PINCTRL_BASE (MX23_REGS_BASE + 0x18000)
29 #define PINCTRL_CTRL 0x000
30 #define PINCTRL_MUXSEL(n) (0x100 + 0x10*(n))
31 #define PINCTRL_DRIVE(n) (0x200 + 0x10*(n))
32 #define PINCTRL_PULL(n) (0x400 + 0x10*(n))
33 #define PINCTRL_DOUT(n) (0x500 + 0x10*(n))
34 #define PINCTRL_DIN(n) (0x600 + 0x10*(n))
35 #define PINCTRL_DOE(n) (0x700 + 0x10*(n))
36 #define PINCTRL_PIN2IRQ(n) (0x800 + 0x10*(n))
37 #define PINCTRL_IRQEN(n) (0x900 + 0x10*(n))
38 #define PINCTRL_IRQLEVEL(n) (0xa00 + 0x10*(n))
39 #define PINCTRL_IRQPOL(n) (0xb00 + 0x10*(n))
40 #define PINCTRL_IRQSTAT(n) (0xc00 + 0x10*(n))