TP:
Enable USB detection function.
Increase the anti-interference ability after plugging in the USB cable.
Change-Id: I64ecb13f58e87f9f687d4ad3a6725884c7304bc7
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1385264
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
TP:
Enable USB detection function.
Increase the anti-interference ability after plugging in the USB cable.
Change-Id: I8b7d6138513b02ade09b096935abfc8bbdf56df1
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1385252
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Kernel 4.9 is not able to lookup existing debugfs
directories. Create a charger_mmi dir instead of
adding to the charger dir instead.
Change-Id: Ice155bc2eb60dc27b98c2af0876b9f9ced4f6f34
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1384240
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Factory sw usually use AC adapter to do Runin test.
They think power not off when finished test is a bug.
Change-Id: I28ce0d32c4e2c75c7328ac5f1158ebac039919bb
Reviewed-on: https://gerrit.mot.com/1382878
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
RF team add one elna for signal losing issue in sofia/Sofia_plus,
we need to enable it before TCMD test, otherwise will get wrong RSSI.
Change-Id: I0ac4d1f13fe4da7cbde14c331c4cd57eafad5b97
Reviewed-on: https://gerrit.mot.com/1382284
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Qiu Feng <fengqiu1@lenovo.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
GPIO_70 used for Prox and TOF, don't disable it to avoid Prox can
not work when camera open and exit
Change-Id: Id28677ab24f664dc7af6777459ed7f2ccdece703
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1383266
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Chuanxin Guo <guocx4@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
motorola/kernel/modules/drivers/input/misc/ets_fps_mmi:
Kbuild: If current product is Doha, FPS pose is 0 degree of angle
ets_navi_input.c: Set different key events for different FPS pose
Defaultly, the product mounts FPS with pose of 270 degree of angle.
But, for Doha, FPS has a right pose, i.e. with 0 degree of angle.
Change-Id: I051cfc96696f2a0527b5b8e8ea27ca56685ddbcc
Reviewed-on: https://gerrit.mot.com/1381158
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
motorola/kernel/modules/drivers/input/misc/ets_fps_mmi/
ets_navi_input.c: Add kobject_uevent( , KOBJ_CHANGE) at the end of
sysfs_egis_init
To set Egis sysfs file nodes via /vendor/ueventd.rc, uevent should be
sent by calling kobject_uevent().
Change-Id: I1973bca7d4088e0271c3e37b7572ce45831819d7
Reviewed-on: https://gerrit.mot.com/1380409
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
On the bo branch of the SM660 platform,
since the sx933x.h file are defined in both DLMK and native.
the drivers in DLMK will find the header file from the native firstly
if using the method #include <xxx>.
Be fixed by changing #include <xxx> to #include "xxx".
Change-Id: I0ee4491b5f0273a8c8e3d67ff69fbdadb0187097
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1382882
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Original boot sequence format is hexadecimal. but for
bootlooder log and logfs format, it is decimal. So in order
to show them as the same format. changing boot sequence
number format in kernel to decimal.
Change-Id: I422359adae3f3c31cd87c2a4d511e00d23fb6db3
Signed-off-by: weiweij <weiweij@motorola.com>
Reviewed-on: https://gerrit.mot.com/1381523
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit eb8e58c71924a1df197d1facb4b2edd93cd1000b)
Reviewed-on: https://gerrit.mot.com/1381613
When usb is in suspend state, the power supply usb
and pc_port will be offline. The demo mode cannot exit
from this situation.
Use typec mode as additional condition check for
charger presence, so that the step charge can keep
in demo mode and handle recharge event.
Change-Id: I7c22bb814affd92ab0ef29be149facd6c49f60d5
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1381455
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
STMVL531_CFG_NETLINK_USER is defined as 23,which is conflicted with
NETLINK_SOCKET for socket administrative events,(kernel4.14)
but kernel4.9 Netlink_SOCKET is 22.
change it to 8 to avoid the conflict.
8 is NETLINK_ISCSI,
NETLINK_ISCSI only be used by CONFIG_SCSI_ISCSI_ATTRS=y
Change-Id: I91a03cf46dbd6ca6a92dbc37d5bb27e53dd8ea86
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1377648
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Submit-Approved: Jira Key
pwren-gpio only use signal gpio to control. so it is better to use
(of_get_named_gpio) API to get. API(of_property_read_u32_array) was used for
getting mutil value.
Change-Id: I7a8ea686e9f8dced4e39a6c3cb8991cfc39e4418
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1377674
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Submit-Approved: Jira Key
Wait 30 seconds from a charge mode change event
before checking if the charge mode is weak in order
to prevent false positives.
Change-Id: Ibe816a310bf73e75f43d61dcb3969fa62e87ca3d
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1380576
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
As request from RF team, for fmradio signal lose issue in new HW design,
need to add elna module for ensure fmradio performance.
Change-Id: I9c21f63788fbef4c28785e9d985631f1ef248105
Reviewed-on: https://gerrit.mot.com/1376704
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qiu Feng <fengqiu1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Reduce amount of debug logs printed out from detection work
Change-Id: Ib195680ea65a0cb7c035a99ff32393624de01bb0
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1377866
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
If dts defined reset pin, kernel driver reset FPC IC.
If dts not defined this pin, reset function will do nothing.
Change-Id: I59c413c519bd030efa5d3f1ba4a223681db06cdc
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1379449
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
TP:
Enable TP reset in resume. This can ensure TP panel working normal.
If panel is 0flash panel, we can decrease delay time
Change-Id: I880a4e82e845c79c37ed5be74d59a9e4d9f5105d
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1380206
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
JEITA Hard Limit is getting in the way of MOTO Charging
Algorithm so disable it l(CR) other products do. Should be safe
since it is the same changem as other products.
Change-Id: I63c7a2897ab5dbe498fad30def258a9b1d3d6a9f
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1379724
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
The SOC can become corrupted on battery insertion so
in the factory mode force a POR so it can be recalculated.
Change-Id: Ie16f1cdcd64bc42dc84d70ead95862d2ca080269
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1376496
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
IF the Max FG report -EAGAIN then it has not completed
the init of the battery profile and values could be
inaccurate. So stop processing and reschedule heartbeat
if this is seen so a fresh 1st run of data can be taken.
Change-Id: I2070ba9e90338b7eb2ba8eb4f395739170810012
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1376495
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
Set the default gain to 0x80 instead of 0x20 for aw8695, otherwise
the vibrating strength would be weak.
Change-Id: Iaa539ba26a8bbf6aa2a65e4d46496909792b721f
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1375582
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
TP:
If TP power request failed, no need go on probe driver.
Change-Id: I999a3b6a8d2381b1cde17b013050db43bbc2ae2a
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1375139
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
For 0 flash panel, read IC info when power-on is not stable.
So set those parameters in driver code.
This is a workaround for this issue. Need revert later.
Change-Id: Ie61c2f90ddc5889f814be3d11f98770d073e7Montana
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1375005
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
-1, add haptic context whild flat-up reduce the gain of vibration
-2, disable this feature when the bootmode is factory
Change-Id: I75a871cf94af54f375a42be54ddcd1d380972797
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1374681
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Typec mode is not a sufficient condition for USB charger presence
detection, in the cases that typec mode is not source type.
Here takes audio adapter with charger port support for example.
It is reasonable to keep consistent with QC SMB charger driver charger
presence report.
Change-Id: I43b795d142aa75cbdd372b288d64c83b85075f3a
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1371201
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
TP:
For TDDI IC, TP reset is controled by LCD, LCD request reset gpio.
But focaltech IC still need HW reset in TP driver.
So we can control reset GPIO without request it, this GPIO is shared
with LCD
Change-Id: I65bbdb614ce7d9fd4f510ea4e23690072903bcf7
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1372626
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
After fw download finished, SRAM data is not stable.
Send command to clear SRAM data after fw download.
Change-Id: I298c070c39cdb3c743a277e2276183b424cc9f94
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1372031
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Re-creating input device on firmware upgrade is not necessary and
confuses the InputReader. Regardless whether firmware gets upgraded
or not, driver will keep the same input device (and thus associated
with it /dev/input/eventX file).
Change-Id: Ieafb2cecc934e74323081bfd97c33b990f7dea40
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1372155
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
TP:
Download function for different touch IC is different.
Seperate flash function info common part and IC unique part
Change-Id: I31637e889e2d0cb789d53d21418e1f3a1532ae12
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1369612
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1371168
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1371912
Enlarge USB MTU and tx/rx bulk size to 10 times
of its original size.
The kernel version may not support member max_mtu
in net_device so remove the code to set the max_mtu
to avoid compile issue on some kernel version.
Change-Id: I2756a7153e9211e2560d0efa186466095a17d271
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1371702
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianhong Wang <wangjhn@motorola.com>
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key