Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117249
b: refs/heads/master
c: 58419ab
h: refs/heads/master
i:
  117247: 296cd3e
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Paul Mundt committed Oct 21, 2008
1 parent 0c759ff commit 8d8aef0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: b56050ae5e53ab8c5efedce7f4ec3923b6e42054
refs/heads/master: 58419abd507dd9cc20644b99f122bc7b5507a261
11 changes: 9 additions & 2 deletions trunk/arch/sh/boards/mach-migor/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,14 @@ static void camera_power_off(void)
gpio_set_value(GPIO_PTT3, 0);
}

static void camera_power(int mode)
{
if (mode)
camera_power_on();
else
camera_power_off();
}

#ifdef CONFIG_I2C
static unsigned char camera_ov772x_magic[] =
{
Expand Down Expand Up @@ -386,6 +394,7 @@ static struct soc_camera_platform_info ov772x_info = {
},
.bus_param = SOCAM_PCLK_SAMPLE_RISING | SOCAM_HSYNC_ACTIVE_HIGH |
SOCAM_VSYNC_ACTIVE_HIGH | SOCAM_MASTER | SOCAM_DATAWIDTH_8,
.power = camera_power,
.set_capture = ov772x_set_capture,
};

Expand All @@ -400,8 +409,6 @@ static struct platform_device migor_camera_device = {
static struct sh_mobile_ceu_info sh_mobile_ceu_info = {
.flags = SOCAM_MASTER | SOCAM_DATAWIDTH_8 | SOCAM_PCLK_SAMPLE_RISING \
| SOCAM_HSYNC_ACTIVE_HIGH | SOCAM_VSYNC_ACTIVE_HIGH,
.enable_camera = camera_power_on,
.disable_camera = camera_power_off,
};

static struct resource migor_ceu_resources[] = {
Expand Down

0 comments on commit 8d8aef0

Please sign in to comment.