From: Liu Ying Date: Thu, 5 Jul 2012 10:58:13 +0000 (+0800) Subject: ENGR00215884-2 MX6 SabreSD:Refine OV csi camera reset sequence X-Git-Tag: v3.0.35-fsl~792 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=23bdc37f7a21111427d9a539082282eb7b6d6212;p=karo-tx-linux.git ENGR00215884-2 MX6 SabreSD:Refine OV csi camera reset sequence This patch refines OV csi camera reset sequence according to OV's recommendation: reset --------------------|_____|---------------- ->| 1ms |<- pwdn ----------|_________________________|------ ->| 5ms |<- ->| 5ms |<- ->| 5ms |<- Signed-off-by: Liu Ying (cherry picked from commit b4d3898a01c232b2525637fa1bb443f8b6208d0e) --- diff --git a/arch/arm/mach-mx6/board-mx6q_sabresd.c b/arch/arm/mach-mx6/board-mx6q_sabresd.c index 07d76cecfa82..cefb3b393d27 100644 --- a/arch/arm/mach-mx6/board-mx6q_sabresd.c +++ b/arch/arm/mach-mx6/board-mx6q_sabresd.c @@ -495,8 +495,14 @@ static void mx6q_csi0_io_init(void) /* Camera power down */ gpio_request(SABRESD_CSI0_PWN, "cam-pwdn"); gpio_direction_output(SABRESD_CSI0_PWN, 1); - msleep(1); + msleep(5); gpio_set_value(SABRESD_CSI0_PWN, 0); + msleep(5); + gpio_set_value(SABRESD_CSI0_RST, 0); + msleep(1); + gpio_set_value(SABRESD_CSI0_RST, 1); + msleep(5); + gpio_set_value(SABRESD_CSI0_PWN, 1); /* For MX6Q: * GPR1 bit19 and bit20 meaning: