video: tegra: dsi: Set dsi clock in multiples of Mhz
Tom Cherry [Mon, 21 Mar 2011 22:35:59 +0000 (15:35 -0700)]
Original-Change-Id: I82081f6e4e3646fbf7c265851e548ca64b2415db
Reviewed-on: http://git-master/r/23760
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Chih-Lung Huang <lhuang@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rddb38546f04cdc4717320ae45fa2983c80e7759f

drivers/video/tegra/dc/dsi.c

index a6ea0f4..8676bd9 100644 (file)
@@ -769,11 +769,11 @@ static void tegra_dsi_set_dsi_clk(struct tegra_dc *dc,
 {
        u32 rm;
 
-       rm = clk % 100;
+       rm = clk % 1000;
        if (rm != 0)
                clk -= rm;
 
-        clk *= 2;      /* Value for PLLD routine is required to be twice as */
+       clk *= 2;       /* Value for PLLD routine is required to be twice as */
                         /* the desired clock rate */
 
        dc->mode.pclk = clk*1000;