summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-mx23/pinmux.h
blob: 29c5ca20ebfbdf17cba2da2d6735c5ebb393812f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Copyright (C) 2008 Embedded Alley Solutions Inc.
 *
 * (C) Copyright 2009-2010 Freescale Semiconductor, Inc.
 *
 * Clock control register descriptions
 *
 * 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 PINMUX_H
#define PINMUX_H

#include <asm/arch/mx23.h>

#define	PINCTRL_BASE	(MX23_REGS_BASE + 0x18000)

#define PINCTRL_CTRL		0x000
#define	PINCTRL_MUXSEL(n)	(0x100 + 0x10*(n))
#define PINCTRL_DRIVE(n)	(0x200 + 0x10*(n))
#define PINCTRL_PULL(n)		(0x400 + 0x10*(n))
#define PINCTRL_DOUT(n)		(0x500 + 0x10*(n))
#define PINCTRL_DIN(n)		(0x600 + 0x10*(n))
#define PINCTRL_DOE(n)		(0x700 + 0x10*(n))
#define PINCTRL_PIN2IRQ(n)	(0x800 + 0x10*(n))
#define PINCTRL_IRQEN(n)	(0x900 + 0x10*(n))
#define PINCTRL_IRQLEVEL(n)	(0xa00 + 0x10*(n))
#define PINCTRL_IRQPOL(n)	(0xb00 + 0x10*(n))
#define PINCTRL_IRQSTAT(n)	(0xc00 + 0x10*(n))

#endif /* PINMUX_H */