浏览代码

Fix wrong orion5x MPP and GIPO writel arguments

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>
Albert Aribaud 15 年之前
父节点
当前提交
23fdf05806
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      arch/arm/cpu/arm926ejs/orion5x/cpu.c

+ 4 - 4
arch/arm/cpu/arm926ejs/orion5x/cpu.c

@@ -260,10 +260,10 @@ int arch_misc_init(void)
 
 
 	/* Set CPIOs and MPPs - values provided by board
 	/* Set CPIOs and MPPs - values provided by board
 	   include file */
 	   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;
 	return 0;
 }
 }