mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
sx9325:New implement on calibration
WHY:Initial value of 0x11 need to be changed and sleep for 1000ms HOW:Change with new implementation Change-Id: I6de5a138b78400c47cb1b99e9eca65ddc7448c1d Signed-off-by: wunan3 <wunan3@lenovo.com> Reviewed-on: https://gerrit.mot.com/1244373 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Master Yoda Reviewed-by: Wen Xie <xiewen3@motorola.com> Reviewed-by: Wang Wang <wangwang1@lenovo.com> Submit-Approved: Jira Key
This commit is contained in:
parent
c6e911bb69
commit
d588dee2ab
1 changed files with 2 additions and 2 deletions
|
|
@ -955,10 +955,10 @@ static void ps_notify_callback_work(struct work_struct *work)
|
|||
mutex_lock(&this->mutex);
|
||||
if (mEnabled) {
|
||||
LOG_INFO("Usb insert,going to force calibrate\n");
|
||||
ret = write_register(this, SX932x_CTRL1_REG, 0x00);
|
||||
ret = write_register(this, SX932x_CTRL1_REG, 0x20);
|
||||
if (ret < 0)
|
||||
LOG_ERR(" Usb insert,calibrate cap sensor failed\n");
|
||||
msleep(100);
|
||||
msleep(1000);
|
||||
ret = write_register(this, SX932x_CTRL1_REG,
|
||||
this->board->cust_prox_ctrl0);
|
||||
if (ret < 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue