Browse Source

ppc4xx: Correct GPIO offset in gpio_config()

Thanks to Gary Jennejohn for pointing this out.

Signed-off-by: Stefan Roese <sr@denx.de>
Stefan Roese 17 năm trước cách đây
mục cha
commit
3b9abdc448
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      cpu/ppc4xx/gpio.c

+ 1 - 1
cpu/ppc4xx/gpio.c

@@ -47,7 +47,7 @@ void gpio_config(int pin, int in_out, int gpio_alt, int out_val)
 	}
 
 	if (pin >= GPIO_MAX/2) {
-		offs2 = 0x100;
+		offs2 = 0x4;
 		pin2 = (pin - GPIO_MAX/2) << 1;
 	}