Commit 24e64f86 authored by Thierry Reding's avatar Thierry Reding

drm/tegra: sor: Use correct SOR index on Tegra210

The device tree bindings for the Tegra210 SOR don't require the
controller instance to be defined, since the instance can be derived
from the compatible string. The index is never used on Tegra210, so we
got away with it not getting set. However, subsequent patches will
change that, so make sure the proper index is used.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent b9b9e197
...@@ -3759,6 +3759,11 @@ static int tegra_sor_parse_dt(struct tegra_sor *sor) ...@@ -3759,6 +3759,11 @@ static int tegra_sor_parse_dt(struct tegra_sor *sor)
* earlier * earlier
*/ */
sor->pad = TEGRA_IO_PAD_HDMI_DP0 + sor->index; sor->pad = TEGRA_IO_PAD_HDMI_DP0 + sor->index;
} else {
if (sor->soc->supports_edp)
sor->index = 0;
else
sor->index = 1;
} }
err = of_property_read_u32_array(np, "nvidia,xbar-cfg", xbar_cfg, 5); err = of_property_read_u32_array(np, "nvidia,xbar-cfg", xbar_cfg, 5);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment