Skip to content

Commit

Permalink
OMAPDSS: Fix DSI_FCLK clock source selection
Browse files Browse the repository at this point in the history
The wrong bit field was being updated in DSS_CTRL when trying to configure the
clock source of DSI2 functional clock. Use the correct bit field based on the
dsi module number.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed May 9, 2012
1 parent 9b9c457 commit a2e5d82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/video/omap2/dss/dss.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ void dss_select_dsi_clk_source(int dsi_module,
enum omap_dss_clk_source clk_src)
{
struct platform_device *dsidev;
int b;
int b, pos;

switch (clk_src) {
case OMAP_DSS_CLK_SRC_FCK:
Expand All @@ -357,7 +357,8 @@ void dss_select_dsi_clk_source(int dsi_module,
BUG();
}

REG_FLD_MOD(DSS_CONTROL, b, 1, 1); /* DSI_CLK_SWITCH */
pos = dsi_module == 0 ? 1 : 10;
REG_FLD_MOD(DSS_CONTROL, b, pos, pos); /* DSIx_CLK_SWITCH */

dss.dsi_clk_source[dsi_module] = clk_src;
}
Expand Down

0 comments on commit a2e5d82

Please sign in to comment.