]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
colibri_t30: disable rs232 serial transceiver forceoff pins
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Thu, 12 Sep 2019 09:12:56 +0000 (11:12 +0200)
committerTom Warren <twarren@nvidia.com>
Fri, 4 Dec 2020 20:21:15 +0000 (13:21 -0700)
Use gpio_early_init_uart() function to disable RS232 serial transceiver
ForceOFF# pins on Iris.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
board/toradex/colibri_t30/colibri_t30.c

index c5562f6d5780053dd0a40cefbf688f811bb53309..20cbb75a36580c3c0e88f767fecb4845533bbe8d 100644 (file)
@@ -57,6 +57,17 @@ void pinmux_init(void)
                                   ARRAY_SIZE(colibri_t30_padctrl));
 }
 
+/*
+ * Disable RS232 serial transceiver ForceOFF# pins on Iris
+ */
+void gpio_early_init_uart(void)
+{
+       gpio_request(TEGRA_GPIO(X, 6), "Force OFF# X13");
+       gpio_direction_output(TEGRA_GPIO(X, 6), 1);
+       gpio_request(TEGRA_GPIO(X, 7), "Force OFF# X14");
+       gpio_direction_output(TEGRA_GPIO(X, 7), 1);
+}
+
 /*
  * Enable AX88772B USB to LAN controller
  */