imx: fix iomux v3
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Wed, 3 Nov 2010 14:54:36 +0000 (15:54 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Wed, 24 Nov 2010 08:57:17 +0000 (09:57 +0100)
Commit "ARM: i.MX IOMUX-V3 replace struct pad_desc with bitmapped cookie"
(b705cb4d42e95a4a43a8945571c8613e71526c3d) introduced a typo which was
preventing my efikamx to boot. This patch is fixing that.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/iomux-v3.c

index 975ca7cdf9adf22c278b65bcf1dbf6063855a286..4cbbf2c6ea745a5ac122e7dacd1203c7ebac0503 100644 (file)
@@ -41,7 +41,7 @@ int mxc_iomux_v3_setup_pad(iomux_v3_cfg_t *pad)
 
        if (MUX_SELECT_INPUT_OFS(pad))
                __raw_writel(MUX_SELECT_INPUT(pad),
-                       base + MUX_SELECT_INPUT(pad));
+                       base + MUX_SELECT_INPUT_OFS(pad));
 
        if (!(MUX_PAD_CTRL(pad) & NO_PAD_CTRL) && MUX_PAD_CTRL_OFS(pad))
                __raw_writel(MUX_PAD_CTRL(pad), base + MUX_PAD_CTRL_OFS(pad));