Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130995
b: refs/heads/master
c: 8674628
h: refs/heads/master
i:
  130993: e75b04a
  130991: 69cbf67
v: v3
  • Loading branch information
Kuninori Morimoto authored and Paul Mundt committed Jan 29, 2009
1 parent c130022 commit 1f3b94c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 334d99072d2b740fa3e0d14e1ac1126805dda2ef
refs/heads/master: 86746284e20411c66e25bddac391ba821560522b
10 changes: 9 additions & 1 deletion trunk/arch/sh/boards/board-ap325rxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ static struct platform_device lcdc_device = {
},
};

static void camera_power(int val)
{
gpio_set_value(GPIO_PTZ5, val); /* RST_CAM/RSTB */
mdelay(10);
}

#ifdef CONFIG_I2C
static unsigned char camera_ncm03j_magic[] =
{
Expand Down Expand Up @@ -245,9 +251,11 @@ static int camera_set_capture(struct soc_camera_platform_info *info,
int ret = 0;
int i;

camera_power(0);
if (!enable)
return 0; /* no disable for now */

camera_power(1);
for (i = 0; i < ARRAY_SIZE(camera_ncm03j_magic); i += 2) {
u_int8_t buf[8];

Expand Down Expand Up @@ -426,7 +434,7 @@ static int __init ap325rxa_devices_setup(void)
gpio_request(GPIO_PTZ6, NULL);
gpio_direction_output(GPIO_PTZ6, 0); /* STBY_CAM */
gpio_request(GPIO_PTZ5, NULL);
gpio_direction_output(GPIO_PTZ5, 1); /* RST_CAM */
gpio_direction_output(GPIO_PTZ5, 0); /* RST_CAM */
gpio_request(GPIO_PTZ4, NULL);
gpio_direction_output(GPIO_PTZ4, 0); /* SADDR */

Expand Down

0 comments on commit 1f3b94c

Please sign in to comment.