summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/imx1.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-09-30 17:32:06 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-05 20:03:04 +0200
commitd553125983b9962854df7823b995cf1667542a32 (patch)
treeb3cc372e068289192d2ee898551a55858f196c07 /arch/arm/mach-imx/imx1.c
parent306f58fc7649cfef2c22869d28a849796739f59f (diff)
downloadbarebox-d553125983b9962854df7823b995cf1667542a32.tar.gz
barebox-d553125983b9962854df7823b995cf1667542a32.tar.xz
ARM i.MX iomux-v1: Add separate header file
- Add a separate header file for the iomux-v1 just like done for iomux-v3. - initialize iomux from SoC code so that we do not depend on IMX_GPIO_BASE anymore. - define registers as offset to the base rather than absolute addresses Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/imx1.c')
-rw-r--r--arch/arm/mach-imx/imx1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/imx1.c b/arch/arm/mach-imx/imx1.c
index 790e4535d7..747ec09f01 100644
--- a/arch/arm/mach-imx/imx1.c
+++ b/arch/arm/mach-imx/imx1.c
@@ -16,6 +16,7 @@
#include <io.h>
#include <mach/imx-regs.h>
#include <mach/weim.h>
+#include <mach/iomux-v1.h>
void imx1_setup_eimcs(size_t cs, unsigned upper, unsigned lower)
{
@@ -25,6 +26,8 @@ void imx1_setup_eimcs(size_t cs, unsigned upper, unsigned lower)
static int imx1_init(void)
{
+ imx_iomuxv1_init((void *)MX1_GPIO1_BASE_ADDR);
+
add_generic_device("imx1-ccm", 0, NULL, MX1_CCM_BASE_ADDR, 0x1000, IORESOURCE_MEM, NULL);
add_generic_device("imx1-gpt", 0, NULL, MX1_TIM1_BASE_ADDR, 0x100, IORESOURCE_MEM, NULL);
add_generic_device("imx1-gpio", 0, NULL, MX1_GPIO1_BASE_ADDR, 0x100, IORESOURCE_MEM, NULL);