Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/tegra: hdmi - Use proper power-up sequence

This reflects the power-up sequence as described in the documentation,
but it doesn't seem to be strictly necessary to get HDMI to work.

Signed-off-by: Thierry Reding <treding@nvidia.com>

+11
+11
drivers/gpu/drm/tegra/hdmi.c
··· 737 737 usleep_range(1000, 2000); 738 738 reset_control_deassert(hdmi->rst); 739 739 740 + /* power up sequence */ 741 + value = tegra_hdmi_readl(hdmi, HDMI_NV_PDISP_SOR_PLL0); 742 + value &= ~SOR_PLL_PDBG; 743 + tegra_hdmi_writel(hdmi, value, HDMI_NV_PDISP_SOR_PLL0); 744 + 745 + usleep_range(10, 20); 746 + 747 + value = tegra_hdmi_readl(hdmi, HDMI_NV_PDISP_SOR_PLL0); 748 + value &= ~SOR_PLL_PWR; 749 + tegra_hdmi_writel(hdmi, value, HDMI_NV_PDISP_SOR_PLL0); 750 + 740 751 tegra_dc_writel(dc, VSYNC_H_POSITION(1), 741 752 DC_DISP_DISP_TIMING_OPTIONS); 742 753 tegra_dc_writel(dc, DITHER_CONTROL_DISABLE | BASE_COLOR_SIZE888,