summaryrefslogtreecommitdiffstats
path: root/drivers/video/tegra/dc/dsi.c
diff options
context:
space:
mode:
authorTow Wang <toww@nvidia.com>2016-05-11 22:01:48 -0400
committerMitch Luban <mluban@nvidia.com>2016-07-18 20:29:51 -0400
commitb611ac23cea24e1e25cc280bd0558e028f451c15 (patch)
tree227b4e74f0c686036254659db2466db1cbb92c03 /drivers/video/tegra/dc/dsi.c
parent10593cff34c58ed3cd81fd9e50689b599475995a (diff)
video: tegra: dsi: enable dsi for dc1
Fix some TODO items to make it possible for DSI to be on DC1. JIRA: EVLR-356 Bug 200186449 Change-Id: I922d4ded909b0911586d8b6af67ee62623bec512 Signed-off-by: Tow Wang <toww@nvidia.com> Reviewed-on: http://git-master/r/1183138 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mitch Luban <mluban@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/dc/dsi.c')
-rw-r--r--drivers/video/tegra/dc/dsi.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/drivers/video/tegra/dc/dsi.c b/drivers/video/tegra/dc/dsi.c
index 3155b8c0b..5b6cac8c6 100644
--- a/drivers/video/tegra/dc/dsi.c
+++ b/drivers/video/tegra/dc/dsi.c
@@ -5122,11 +5122,21 @@ static int _tegra_dc_dsi_init(struct tegra_dc *dc)
5122 dsi_fixed_clk = NULL; 5122 dsi_fixed_clk = NULL;
5123#endif 5123#endif
5124 5124
5125 /* TO DO - check out which clock is needed here for T186
5126 * Temporarily passing the nvdisplay head0 clock
5127 */
5128#ifdef CONFIG_TEGRA_NVDISPLAY 5125#ifdef CONFIG_TEGRA_NVDISPLAY
5129 dc_clk = tegra_disp_clk_get(&dc->ndev->dev, "nvdisplay_p0"); 5126 {
5127 #define CLK_NAME_MAX_LEN 13
5128 char disp_clk_name[CLK_NAME_MAX_LEN];
5129 int ctrl_num;
5130
5131 ctrl_num = tegra_dc_get_head(dc);
5132 if (0 > ctrl_num)
5133 ctrl_num = 0;
5134 snprintf(disp_clk_name, CLK_NAME_MAX_LEN, "nvdisplay_p%c",
5135 '0' + ctrl_num);
5136 dc_clk = tegra_disp_clk_get(&dc->ndev->dev, disp_clk_name);
5137
5138 #undef CLK_NAME_MAX_LEN
5139 }
5130#else 5140#else
5131 dc_clk = clk_get_sys(dev_name(&dc->ndev->dev), NULL); 5141 dc_clk = clk_get_sys(dev_name(&dc->ndev->dev), NULL);
5132#endif 5142#endif
@@ -5826,7 +5836,7 @@ static long tegra_dc_dsi_setup_clk(struct tegra_dc *dc, struct clk *clk)
5826#ifdef CONFIG_TEGRA_NVDISPLAY 5836#ifdef CONFIG_TEGRA_NVDISPLAY
5827 if (clk == dc->clk) { 5837 if (clk == dc->clk) {
5828 base_clk = tegra_disp_clk_get(&dc->ndev->dev, 5838 base_clk = tegra_disp_clk_get(&dc->ndev->dev,
5829 "pll_d"); 5839 dc->out->parent_clk ? dc->out->parent_clk : "pll_d");
5830 } else { 5840 } else {
5831 if (dc->pdata->default_out->dsi->dsi_instance) { 5841 if (dc->pdata->default_out->dsi->dsi_instance) {
5832 parent_clk = tegra_disp_clk_get(&dc->ndev->dev, 5842 parent_clk = tegra_disp_clk_get(&dc->ndev->dev,