Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357041
b: refs/heads/master
c: cd65a64
h: refs/heads/master
i:
  357039: ad36813
v: v3
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Dec 21, 2012
1 parent a04946b commit 95506b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e26991b49a132626130428d64222a355ffdd7139
refs/heads/master: cd65a645a4f5e456607067734f9a11385c9dce7b
12 changes: 7 additions & 5 deletions trunk/drivers/media/platform/s5p-fimc/mipi-csis.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ static void s5pcsis_reset(struct csis_state *state)

static void s5pcsis_system_enable(struct csis_state *state, int on)
{
u32 val;
struct s5p_platform_mipi_csis *pdata = state->pdev->dev.platform_data;
u32 val, mask;

val = s5pcsis_read(state, S5PCSIS_CTRL);
if (on)
Expand All @@ -283,10 +284,11 @@ static void s5pcsis_system_enable(struct csis_state *state, int on)
s5pcsis_write(state, S5PCSIS_CTRL, val);

val = s5pcsis_read(state, S5PCSIS_DPHYCTRL);
if (on)
val |= S5PCSIS_DPHYCTRL_ENABLE;
else
val &= ~S5PCSIS_DPHYCTRL_ENABLE;
val &= ~S5PCSIS_DPHYCTRL_ENABLE;
if (on) {
mask = (1 << (pdata->lanes + 1)) - 1;
val |= (mask & S5PCSIS_DPHYCTRL_ENABLE);
}
s5pcsis_write(state, S5PCSIS_DPHYCTRL, val);
}

Expand Down

0 comments on commit 95506b8

Please sign in to comment.