diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2010-01-06 04:42:16 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:11:00 -0500 |
commit | 3675c750cf2effc6a2d9582cd1b9d3043aded3b6 (patch) | |
tree | a2efd2d39b738ce71e377f2493660bdf42def702 /arch/sh | |
parent | 906b101886b1b3d9e4d374aa84a67b7dbd349f16 (diff) |
soc-camera: ov772x: Modify buswidth control
This patch removes "buswidth" struct member, and sets the default buswidth
to the natively supported 10 bit. You can select 8 bit buswidth by new flag.
This patch also modify ap325rxa/migor setup.c
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/boards/mach-ap325rxa/setup.c | 4 | ||||
-rw-r--r-- | arch/sh/boards/mach-migor/setup.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/sh/boards/mach-ap325rxa/setup.c b/arch/sh/boards/mach-ap325rxa/setup.c index 1f5fa5c44f6d..71f556fe3f38 100644 --- a/arch/sh/boards/mach-ap325rxa/setup.c +++ b/arch/sh/boards/mach-ap325rxa/setup.c | |||
@@ -471,8 +471,8 @@ static struct i2c_board_info ap325rxa_i2c_camera[] = { | |||
471 | }; | 471 | }; |
472 | 472 | ||
473 | static struct ov772x_camera_info ov7725_info = { | 473 | static struct ov772x_camera_info ov7725_info = { |
474 | .buswidth = SOCAM_DATAWIDTH_8, | 474 | .flags = OV772X_FLAG_VFLIP | OV772X_FLAG_HFLIP | \ |
475 | .flags = OV772X_FLAG_VFLIP | OV772X_FLAG_HFLIP, | 475 | OV772X_FLAG_8BIT, |
476 | .edgectrl = OV772X_AUTO_EDGECTRL(0xf, 0), | 476 | .edgectrl = OV772X_AUTO_EDGECTRL(0xf, 0), |
477 | }; | 477 | }; |
478 | 478 | ||
diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c index 507c77be476d..9b4676fa6fbb 100644 --- a/arch/sh/boards/mach-migor/setup.c +++ b/arch/sh/boards/mach-migor/setup.c | |||
@@ -431,7 +431,7 @@ static struct i2c_board_info migor_i2c_camera[] = { | |||
431 | }; | 431 | }; |
432 | 432 | ||
433 | static struct ov772x_camera_info ov7725_info = { | 433 | static struct ov772x_camera_info ov7725_info = { |
434 | .buswidth = SOCAM_DATAWIDTH_8, | 434 | .flags = OV772X_FLAG_8BIT, |
435 | }; | 435 | }; |
436 | 436 | ||
437 | static struct soc_camera_link ov7725_link = { | 437 | static struct soc_camera_link ov7725_link = { |