mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
x86: gpio: Correct calls to _ich6_gpio_set_direction()
These calls seem to be incorrect. The function expects an I/O address but the existing callers pass the value at an I/O address. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
86645c8932
commit
e7cc0b6f00
1 changed files with 2 additions and 2 deletions
|
@ -410,7 +410,7 @@ static int ich6_gpio_direction_input(struct udevice *dev, unsigned offset)
|
||||||
{
|
{
|
||||||
struct ich6_bank_priv *bank = dev_get_priv(dev);
|
struct ich6_bank_priv *bank = dev_get_priv(dev);
|
||||||
|
|
||||||
return _ich6_gpio_set_direction(inl(bank->io_sel), offset, 0);
|
return _ich6_gpio_set_direction(bank->io_sel, offset, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ich6_gpio_direction_output(struct udevice *dev, unsigned offset,
|
static int ich6_gpio_direction_output(struct udevice *dev, unsigned offset,
|
||||||
|
@ -419,7 +419,7 @@ static int ich6_gpio_direction_output(struct udevice *dev, unsigned offset,
|
||||||
int ret;
|
int ret;
|
||||||
struct ich6_bank_priv *bank = dev_get_priv(dev);
|
struct ich6_bank_priv *bank = dev_get_priv(dev);
|
||||||
|
|
||||||
ret = _ich6_gpio_set_direction(inl(bank->io_sel), offset, 1);
|
ret = _ich6_gpio_set_direction(bank->io_sel, offset, 1);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue