Fix wrong orion5x MPP and GIPO writel arguments
authorAlbert Aribaud <[albert.aribaud@free.fr]>
Tue, 22 Jun 2010 10:20:28 +0000 (15:50 +0530)
committerWolfgang Denk <wd@denx.de>
Tue, 22 Jun 2010 20:37:00 +0000 (22:37 +0200)
Orion5x MPP and GPIO setting code had writel arguments
the wrong way around. Fixed and tested.

Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
arch/arm/cpu/arm926ejs/orion5x/cpu.c

index c2f5253b057ab6a0b2df3e51bb485816fdbee64f..03c6d0677c77de0b7157baf0e9153fa50b1fb3da 100644 (file)
@@ -260,10 +260,10 @@ int arch_misc_init(void)
 
        /* Set CPIOs and MPPs - values provided by board
           include file */
-       writel(ORION5X_MPP_BASE+0x00, ORION5X_MPP0_7);
-       writel(ORION5X_MPP_BASE+0x04, ORION5X_MPP8_15);
-       writel(ORION5X_MPP_BASE+0x50, ORION5X_MPP16_23);
-       writel(ORION5X_GPIO_BASE+0x04, ORION5X_GPIO_OUT_ENABLE);
+       writel(ORION5X_MPP0_7, ORION5X_MPP_BASE+0x00);
+       writel(ORION5X_MPP8_15, ORION5X_MPP_BASE+0x04);
+       writel(ORION5X_MPP16_23, ORION5X_MPP_BASE+0x50);
+       writel(ORION5X_GPIO_OUT_ENABLE, ORION5X_GPIO_BASE+0x04);
 
        return 0;
 }