summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2010-08-16 17:10:33 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2010-08-17 10:20:09 +0200
commit2f1a1e6a88bcf9d6e12ab7c2e8d0c3fa11b9f9df (patch)
tree2bb5b686278712771e71401975c937a8def362c5 /arch
parent7c56f5f6e3881eba98abf0026cadd4d16047906c (diff)
downloadbarebox-2f1a1e6a88bcf9d6e12ab7c2e8d0c3fa11b9f9df.tar.gz
barebox-2f1a1e6a88bcf9d6e12ab7c2e8d0c3fa11b9f9df.tar.xz
imx: move IIM registers to their own header
This allows the use of IIM registers from code which is not mx35 specific. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-imx/imx35.c1
-rw-r--r--arch/arm/mach-imx/include/mach/iim.h42
-rw-r--r--arch/arm/mach-imx/include/mach/imx35-regs.h18
3 files changed, 43 insertions, 18 deletions
diff --git a/arch/arm/mach-imx/imx35.c b/arch/arm/mach-imx/imx35.c
index d78a4c5458..74d63eb1ba 100644
--- a/arch/arm/mach-imx/imx35.c
+++ b/arch/arm/mach-imx/imx35.c
@@ -18,6 +18,7 @@
#include <common.h>
#include <asm/io.h>
#include <mach/imx-regs.h>
+#include <mach/iim.h>
#include <mach/generic.h>
#include "gpio.h"
diff --git a/arch/arm/mach-imx/include/mach/iim.h b/arch/arm/mach-imx/include/mach/iim.h
new file mode 100644
index 0000000000..6e135475e0
--- /dev/null
+++ b/arch/arm/mach-imx/include/mach/iim.h
@@ -0,0 +1,42 @@
+/*
+ * (c) 2009 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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 __MACH_IMX_IIM_H
+#define __MACH_IMX_IIM_H
+
+#define IIM_STAT 0x0000
+#define IIM_STATM 0x0004
+#define IIM_ERR 0x0008
+#define IIM_EMASK 0x000C
+#define IIM_FCTL 0x0010
+#define IIM_UA 0x0014
+#define IIM_LA 0x0018
+#define IIM_SDAT 0x001C
+#define IIM_PREV 0x0020
+#define IIM_SREV 0x0024
+#define IIM_PREG_P 0x0028
+#define IIM_SCS0 0x002C
+#define IIM_SCS1 0x0030
+#define IIM_SCS2 0x0034
+#define IIM_SCS3 0x0038
+
+#endif /* __MACH_IMX_IIM_H */
diff --git a/arch/arm/mach-imx/include/mach/imx35-regs.h b/arch/arm/mach-imx/include/mach/imx35-regs.h
index 899e57bc8f..c394a2af88 100644
--- a/arch/arm/mach-imx/include/mach/imx35-regs.h
+++ b/arch/arm/mach-imx/include/mach/imx35-regs.h
@@ -76,24 +76,6 @@
#define PDR0_AUTO_CON (1 << 0)
#define PDR0_PER_SEL (1 << 26)
-
-#define IIM_STAT 0x0000
-#define IIM_STATM 0x0004
-#define IIM_ERR 0x0008
-#define IIM_EMASK 0x000C
-#define IIM_FCTL 0x0010
-#define IIM_UA 0x0014
-#define IIM_LA 0x0018
-#define IIM_SDAT 0x001C
-#define IIM_PREV 0x0020
-#define IIM_SREV 0x0024
-#define IIM_PREG_P 0x0028
-#define IIM_SCS0 0x002C
-#define IIM_SCS1 0x0030
-#define IIM_SCS2 0x0034
-#define IIM_SCS3 0x0038
-
-
/*
* Adresses and ranges of the external chip select lines
*/