Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295115
b: refs/heads/master
c: 4a0abfa
h: refs/heads/master
i:
  295113: d616100
  295111: 3921389
v: v3
  • Loading branch information
Jonathan Corbet authored and Mauro Carvalho Chehab committed Mar 20, 2012
1 parent e3a6c56 commit b4e4b04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 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: f2354dd180755e25369167eda5de2c226d59fb1d
refs/heads/master: 4a0abfaa9662365303df2accf16383a2edb49a7b
13 changes: 9 additions & 4 deletions trunk/drivers/media/video/marvell-ccic/mmp-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,21 @@ static struct mmp_camera *mmpcam_find_device(struct platform_device *pdev)
/*
* Power control.
*/
static void mmpcam_power_up_ctlr(struct mmp_camera *cam)
{
iowrite32(0x3f, cam->power_regs + REG_CCIC_DCGCR);
iowrite32(0x3805b, cam->power_regs + REG_CCIC_CRCR);
mdelay(1);
}

static void mmpcam_power_up(struct mcam_camera *mcam)
{
struct mmp_camera *cam = mcam_to_cam(mcam);
struct mmp_camera_platform_data *pdata;
/*
* Turn on power and clocks to the controller.
*/
iowrite32(0x3f, cam->power_regs + REG_CCIC_DCGCR);
iowrite32(0x3805b, cam->power_regs + REG_CCIC_CRCR);
mdelay(1);
mmpcam_power_up_ctlr(cam);
/*
* Provide power to the sensor.
*/
Expand Down Expand Up @@ -335,7 +340,7 @@ static int mmpcam_resume(struct platform_device *pdev)
* touch a register even if nothing was active before; trust
* me, it's better this way.
*/
mmpcam_power_up(&cam->mcam);
mmpcam_power_up_ctlr(cam);
return mccic_resume(&cam->mcam);
}

Expand Down

0 comments on commit b4e4b04

Please sign in to comment.