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:
wunan3 2018-09-20 14:39:20 +08:00 • committed by Nan Wu
commit d588dee2ab

View file

@ -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)