Commit 017db6b0 authored by Liu Ying's avatar Liu Ying Committed by Terry Lv

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: default avatarLiu Ying <Ying.Liu@freescale.com>
(cherry picked from commit b4d3898a01c232b2525637fa1bb443f8b6208d0e)
parent 2080169c
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment