diff options
author | Frank Chen <frankc@nvidia.com> | 2016-02-21 16:38:18 -0500 |
---|---|---|
committer | Bhanu Murthy V <bmurthyv@nvidia.com> | 2017-03-22 13:06:46 -0400 |
commit | 4866d65c54157bf76ea41ce4a9081b5566d16616 (patch) | |
tree | bea8d7355c49378cde3d7c95eae0920578203950 /drivers/media/i2c/ov23850.c | |
parent | 37a2d73b6cdf07b3cf685b4a941281dbf19ed24e (diff) |
driver: media: i2c: Fix ov23850 power up sequence
Fix ov23850 power up sequence. Add proper delays
after sensor is being powered on.
Bug 200148541
Change-Id: Id70678cdb8112ebb38b987fee0f4cfee855c1cd7
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1014283
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chinniah Poosapadi <cpoosapadi@nvidia.com>
Tested-by: Chinniah Poosapadi <cpoosapadi@nvidia.com>
Reviewed-by: Kai Lee <kailee@nvidia.com>
Reviewed-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Diffstat (limited to 'drivers/media/i2c/ov23850.c')
-rw-r--r-- | drivers/media/i2c/ov23850.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/i2c/ov23850.c b/drivers/media/i2c/ov23850.c index 1b32dfbfc..6170dc80e 100644 --- a/drivers/media/i2c/ov23850.c +++ b/drivers/media/i2c/ov23850.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * ov23850.c - ov23850 sensor driver | 2 | * ov23850.c - ov23850 sensor driver |
3 | * | 3 | * |
4 | * Copyright (c) 2013-2015, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2013-2016, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -341,13 +341,12 @@ static int ov23850_power_on(struct camera_common_data *s_data) | |||
341 | if (err) | 341 | if (err) |
342 | goto ov23850_vcmvdd_fail; | 342 | goto ov23850_vcmvdd_fail; |
343 | 343 | ||
344 | usleep_range(1, 2); | ||
345 | if (pw->reset_gpio) | 344 | if (pw->reset_gpio) |
346 | gpio_set_value(pw->reset_gpio, 1); | 345 | gpio_set_value(pw->reset_gpio, 1); |
347 | if (pw->pwdn_gpio) | 346 | if (pw->pwdn_gpio) |
348 | gpio_set_value(pw->pwdn_gpio, 1); | 347 | gpio_set_value(pw->pwdn_gpio, 1); |
349 | 348 | ||
350 | usleep_range(300, 310); | 349 | usleep_range(5350, 5360); /* 5ms + 8192 EXTCLK cycles */ |
351 | 350 | ||
352 | pw->state = SWITCH_ON; | 351 | pw->state = SWITCH_ON; |
353 | return 0; | 352 | return 0; |