projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b82d520
)
gpio: zynq: fix issue in set gpio output direction
author
Ashok Reddy Soma
<ashok.reddy.soma@xilinx.com>
Wed, 11 Sep 2019 10:40:11 +0000
(
04:40
-0600)
committer
Michal Simek
<michal.simek@xilinx.com>
Tue, 8 Oct 2019 07:53:04 +0000
(09:53 +0200)
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>
drivers/gpio/zynq_gpio.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/zynq_gpio.c
b/drivers/gpio/zynq_gpio.c
index 55a5cba0688ed77ab549d18456d4cd59fa848b2d..a760c5bdda68d9e8bac3893babf06f9f07d63ad2 100644
(file)
--- 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;
}