[PORT FROM R2] mrst.c: not power opt fail when GP_CAMERA_0_POWER_DOWN not available
authorTao Jing <jing.tao@intel.com>
Mon, 19 Dec 2011 07:06:44 +0000 (15:06 +0800)
committerbuildbot <buildbot@intel.com>
Thu, 22 Dec 2011 08:02:03 +0000 (00:02 -0800)
commit0e2cc91efea741494edc582703a4d367d8fcfeb0
tree6904bfef4d2a1d449c643d013269173545cc82ee
parent2a6f01c9a00b1837f59213d35559919d51c24c1b
[PORT FROM R2] mrst.c: not power opt fail when GP_CAMERA_0_POWER_DOWN not available

BZ: 18089

On PR3, the GP_CORE_013 is not a connected pin but it is connected to
CAM_STBY_CTRL ON PR2. And it has been requested to remove it from PR3
SFI table as this GPIO Should not modified bu kernel from its original
state(GPIO input 20k Pull dow)

so this patch rework the mt9e013_power_ctrl: ipc_msic_vprog programming
is down whatever result of camera_sensor_gpio(GP_CAMERA_0_POWER_DOWN).
And calls to gpio_set_value() should depend on result of camera_sensor_gpio()

Change-Id: I9a44bdaf5a60d836ddeeac39175930b8cbc97f3f
Orig-Change-Id: I92ae6bdb9655b63233f10a4ad9aa5b216d484637
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/29595
Reviewed-by: Lampila, KalleX <kallex.lampila@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
arch/x86/platform/mrst/mrst.c