summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-08-12 11:46:56 +0200
committerWolfgang Denk <wd@denx.de>2008-08-12 11:46:56 +0200
commit565ffbb9ee0ac0f49636621969bc66a02c4e2b44 (patch)
tree2e022ce0caf6184736e314966c459b77c1ee3204 /cpu
parentb315ad8f0aa0cf68ccc895d41c933d777fdaba8e (diff)
parent5276a3584d26a9533404f0ec00c3b61cf9a97939 (diff)
downloadu-boot-imx-565ffbb9ee0ac0f49636621969bc66a02c4e2b44.zip
u-boot-imx-565ffbb9ee0ac0f49636621969bc66a02c4e2b44.tar.gz
u-boot-imx-565ffbb9ee0ac0f49636621969bc66a02c4e2b44.tar.bz2
Merge branch 'master' of git://www.denx.de/git/u-boot-arm
Diffstat (limited to 'cpu')
-rw-r--r--cpu/arm1136/mx31/generic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/arm1136/mx31/generic.c b/cpu/arm1136/mx31/generic.c
index 29c08c1..dc031c9 100644
--- a/cpu/arm1136/mx31/generic.c
+++ b/cpu/arm1136/mx31/generic.c
@@ -81,12 +81,12 @@ void mx31_gpio_mux(unsigned long mode)
{
unsigned long reg, shift, tmp;
- reg = IOMUXC_BASE + (mode & 0xfc);
+ reg = IOMUXC_BASE + (mode & 0x1fc);
shift = (~mode & 0x3) * 8;
tmp = __REG(reg);
tmp &= ~(0xff << shift);
- tmp |= ((mode >> 8) & 0xff) << shift;
+ tmp |= ((mode >> IOMUX_MODE_POS) & 0xff) << shift;
__REG(reg) = tmp;
}