summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-mx28/pinmux.h
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2009-12-29 15:59:45 +0800
committerTerry Lv <r65388@freescale.com>2009-12-31 16:01:21 +0800
commit1c0e2611a1823029d8ae8fc1fdb5773c5b03930e (patch)
tree1046a653eb9b9a82191842f6239d094aa156156d /include/asm-arm/arch-mx28/pinmux.h
parent2d6150b0d95259c12877d82ac7f18d4d35b6b371 (diff)
downloadu-boot-imx-1c0e2611a1823029d8ae8fc1fdb5773c5b03930e.zip
u-boot-imx-1c0e2611a1823029d8ae8fc1fdb5773c5b03930e.tar.gz
u-boot-imx-1c0e2611a1823029d8ae8fc1fdb5773c5b03930e.tar.bz2
ENGR00119716: MX28 basic support.
Add mx28 to u-boot and pass the compiling. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'include/asm-arm/arch-mx28/pinmux.h')
-rw-r--r--include/asm-arm/arch-mx28/pinmux.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/asm-arm/arch-mx28/pinmux.h b/include/asm-arm/arch-mx28/pinmux.h
new file mode 100644
index 0000000..db581bc
--- /dev/null
+++ b/include/asm-arm/arch-mx28/pinmux.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2008 Embedded Alley Solutions Inc.
+ *
+ * (C) Copyright 2009 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/mx28.h>
+
+#define PINCTRL_BASE (MX28_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 */