diff options
author | Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> | 2019-09-11 13:40:11 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2019-10-08 10:53:04 +0300 |
commit | 0384ac058376aa2fbac9965e0f2a4ddb5729b37a (patch) | |
tree | 52b35b07fbcc27fe6dd13598756995b47b1e33d5 | |
parent | b82d520c34de34f549304f1c1e58edcd73b40ce5 (diff) | |
download | u-boot-0384ac058376aa2fbac9965e0f2a4ddb5729b37a.tar.xz |
gpio: zynq: fix issue in set gpio output direction
This patch fixes zynq_gpio_direction() to call driver specific
zynq_gpio_set_value function rather than top level gpio_set_value.
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | drivers/gpio/zynq_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c index 55a5cba068..a760c5bdda 100644 --- a/drivers/gpio/zynq_gpio.c +++ b/drivers/gpio/zynq_gpio.c @@ -292,7 +292,7 @@ static int zynq_gpio_direction_output(struct udevice *dev, unsigned gpio, writel(reg, platdata->base + ZYNQ_GPIO_OUTEN_OFFSET(bank_num)); /* set the state of the pin */ - gpio_set_value(gpio, value); + zynq_gpio_set_value(dev, gpio, value); return 0; } |