commit | 3b9abdc448a1c2c6a4c2aa292724b4d1a05166a9 | [log] [tgz] |
---|---|---|
author | Stefan Roese <sr@denx.de> | Tue Dec 11 13:38:19 2007 +0100 |
committer | Stefan Roese <sr@denx.de> | Tue Dec 11 13:38:19 2007 +0100 |
tree | a00bd8cd5c12239ab3508e6151fb1988a3805744 | |
parent | 8809a2713b1ceaf3da55d9d785470294f15de06a [diff] [blame] |
ppc4xx: Correct GPIO offset in gpio_config() Thanks to Gary Jennejohn for pointing this out. Signed-off-by: Stefan Roese <sr@denx.de>
diff --git a/cpu/ppc4xx/gpio.c b/cpu/ppc4xx/gpio.c index dcf1fba..7b09a2f 100644 --- a/cpu/ppc4xx/gpio.c +++ b/cpu/ppc4xx/gpio.c
@@ -47,7 +47,7 @@ } if (pin >= GPIO_MAX/2) { - offs2 = 0x100; + offs2 = 0x4; pin2 = (pin - GPIO_MAX/2) << 1; }