提交 3cffa081 编写于 作者: J JC Kuo 提交者: Kishon Vijay Abraham I

phy: tegra: xusb: Skip single function lane programming

Tegra186 USB2 pads and USB3 pads do not have hardware mux for changing
the pad function. For such "lanes", we can skip the lane mux register
programming.
Signed-off-by: NJC Kuo <jckuo@nvidia.com>
Signed-off-by: NThierry Reding <treding@nvidia.com>
Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
上级 2b8d5929
/* /*
* Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License, * under the terms and conditions of the GNU General Public License,
...@@ -313,6 +313,10 @@ static void tegra_xusb_lane_program(struct tegra_xusb_lane *lane) ...@@ -313,6 +313,10 @@ static void tegra_xusb_lane_program(struct tegra_xusb_lane *lane)
const struct tegra_xusb_lane_soc *soc = lane->soc; const struct tegra_xusb_lane_soc *soc = lane->soc;
u32 value; u32 value;
/* skip single function lanes */
if (soc->num_funcs < 2)
return;
/* choose function */ /* choose function */
value = padctl_readl(padctl, soc->offset); value = padctl_readl(padctl, soc->offset);
value &= ~(soc->mask << soc->shift); value &= ~(soc->mask << soc->shift);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册