From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Sat, 19 Nov 2011 13:47:28 -0700 Subject: [U-Boot] [RFC PATCH 2/3] tegra2: Fix conflicting pinmux for UARTA In-Reply-To: <1321735649-27138-1-git-send-email-swarren@nvidia.com> References: <1321735649-27138-1-git-send-email-swarren@nvidia.com> Message-ID: <1321735649-27138-3-git-send-email-swarren@nvidia.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Tegra appears to boot with function UARTA pre-selected on mux group SDB. If two mux groups are both set to the same function, it's unclear which group's pins drive the RX signals into the HW module. For UARTA, SDB certainly overrides group IRTX in practice. To solve this, configure some alternative function on SDB to avoid the conflict. Also, tri-state the group to avoid driving any signal onto it until we know what's connected. Signed-off-by: Stephen Warren --- board/nvidia/common/board.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index c806a6b..13742d7 100644 --- a/board/nvidia/common/board.c +++ b/board/nvidia/common/board.c @@ -88,6 +88,18 @@ static void pin_mux_uart(void) pinmux_tristate_disable(PINGRP_IRRX); pinmux_tristate_disable(PINGRP_IRTX); + + /* + * Tegra appears to boot with function UARTA pre-selected on mux + * group SDB. If two mux groups are both set to the same function, + * it's unclear which group's pins drive the RX signals into the + * HW module. For UARTA, SDB certainly overrides group IRTX in + * practice. To solve this, configure some alternative function on + * SDB to avoid the conflict. Also, tri-state the group to avoid + * driving any signal onto it until we know what's connected. + */ + pinmux_tristate_enable(PINGRP_SDB); + pinmux_set_func(PINGRP_SDB, PMUX_FUNC_SDIO3); #endif /* CONFIG_TEGRA2_ENABLE_UARTA */ #if defined(CONFIG_TEGRA2_ENABLE_UARTD) pinmux_set_func(PINGRP_GMC, PMUX_FUNC_UARTD); -- 1.7.5.4