mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
ppc4xx: Correct GPIO offset in gpio_config()
Thanks to Gary Jennejohn for pointing this out. Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
8809a2713b
commit
3b9abdc448
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue