Skip to contentSkip to conversation

sh: update ov772x byte order on Migo-R

PATCH Applied Magnus Damm 2 participants 2 messages Oct 21, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: update ov772x byte order on Migo-R

From: Magnus Damm <[email protected]>

Update the ov772x byte sequence to enable byte swap. This to reflect the recent CEU driver change to follow incoming byte order.

---

 arch/sh/boards/mach-migor/setup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sh/boards/mach-migor/setup.c +1 -1
@@ -318,7 +318,7 @@ static void camera_power(int mode)
 #ifdef CONFIG_I2C
 static unsigned char camera_ov772x_magic[]  {
-	0x09, 0x01, 0x0c, 0x10, 0x0d, 0x41, 0x0e, 0x01,
+	0x09, 0x01, 0x0c, 0x20, 0x0d, 0x41, 0x0e, 0x01,
 	0x12, 0x00, 0x13, 0x8F, 0x14, 0x4A, 0x15, 0x00,
 	0x16, 0x00, 0x17, 0x23, 0x18, 0xa0, 0x19, 0x07,
 	0x1a, 0xf0, 0x1b, 0x40, 0x1f, 0x00, 0x20, 0x10,
Applied
#1 lore raw
Quoted 4 lines · Magnus Damm

Update the ov772x byte sequence to enable byte swap. This to reflect the recent CEU driver change to follow incoming byte order.

Quoted 5 lines · Magnus Damm

This patch updates the pinmux code to use the boolean value for the function gpio_set_value(). Without this patch values other than 0 and 1 will result in incorrect GPIO settings.

Applied, thanks.