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:
9cdb1c6
)
imx: ventana: gw5904/gw5909: disable RS485
author
Tim Harvey
<tharvey@gateworks.com>
Mon, 4 Feb 2019 21:10:59 +0000
(13:10 -0800)
committer
Stefano Babic
<sbabic@denx.de>
Fri, 15 Feb 2019 21:01:15 +0000
(22:01 +0100)
The GW5904/GW5909 have a SP33E multi-protocol serial transceiver which we
want to configure to RS232 by default (by de-asserting RS485_EN)
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/common.c
patch
|
blob
|
history
diff --git
a/board/gateworks/gw_ventana/common.c
b/board/gateworks/gw_ventana/common.c
index 8934f213dd9c474de7a4d2ac2964444c7b88a20c..8786a12dc0cddbc4ebb5eaee6273b277cb170e6c 100644
(file)
--- a/
board/gateworks/gw_ventana/common.c
+++ b/
board/gateworks/gw_ventana/common.c
@@
-1429,6
+1429,8
@@
void setup_iomux_gpio(int board, struct ventana_board_info *info)
break;
case GW5909:
case GW5904:
+ gpio_request(IMX_GPIO_NR(4, 23), "rs485_en");
+ gpio_direction_output(IMX_GPIO_NR(4, 23), 0);
gpio_request(IMX_GPIO_NR(5, 11), "skt1_wdis#");
gpio_direction_output(IMX_GPIO_NR(5, 11), 1);
gpio_request(IMX_GPIO_NR(5, 12), "skt1_rst#");