Commit graph

1,731 commits

Author SHA1 Message Date
chailu1
a358f8bae4 CP: add qc3p charge policy
qc3p and  charge pump
add qc3p charge policy

Change-Id: I3af6c3214a88b5ad327f10df1f6afa639d7bfc5b
Reviewed-on: https://gerrit.mot.com/1967489
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-08 03:29:20 -05:00
chailu1
b657c809a6 CP: Reorganize charge pump
move common code from pps charge policy file
to mmi charge core file

Change-Id: I975b21e1d2c30c1ffd5b3939db1dbbefb295ffe6
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1967488
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-08 03:23:50 -05:00
yanyh2
2286350930 Print ADSP battery manager log if charging changes
1. Print bm log when qti charger init complete
2. Print bm log when battery status changes
3. Print bm log when charger status changes

Change-Id: Iadbb43908094c1dbe7e91e32dc1c94c1f23d4ca1
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971298
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-08 02:24:00 -05:00
yanyh2
d9aca754c7 Create bm_adsp_ulog module
1. Provide debugfs interface to collect battery manager ADSP log  in AP side.
2. Provide debugfs interfaces to configure log level and category for log mask.
3. Provide exported APIs for other Moto battery charger DLKM to get battery
charger ADSP log and output to Kernel log or IPC logging.

Change-Id: I93cb18542414b21084a09218366d6d675beeb807
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971297
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-08 02:23:38 -05:00
xuwei9
45de9245da qc3p:config 33W charging current
Config 33W charging current
per project requirement.

Change-Id: I01e2cd078ad2739a764a9a726512437666195cfe
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1972960
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-08 00:48:41 -05:00
cuijy1
f23823a376 sx937x:fix wrong POWER_SUPPLY_ONLINE define
fix wrong POWER_SUPPLY_ONLINE define in Kbuild
change to CONFIG_SX937X_POWER_SUPPLY_ONLINE

Change-Id: If716625a7ad9446debc6ad5439674a08fd34a12c
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1972006
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-07 21:49:13 -05:00
wengjun1
b8bc7593ff Cyprus: dlkm: ili9882 driver improvement
- Since the uncertainty of the loading time of the display
module when using gki, so change the logic of read panel
name  in touch module.

Change-Id: I82d519bb96a8c82b1eff7044949ab270263a648c
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1956524
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-06 21:39:11 -05:00
wangyq13
6a11390b68 input: focaltech_v2_mmi: add ft3519 upgrade function
focaltech_v2_mmi:
Add ft3519 firmware upgrade function.

Change-Id: I3a5935a38f36b202c4770d8ae7ca432379187bac
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1970307
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
2021-06-04 05:05:14 -05:00
litong20
0af265a862 Solve the build error: MODULE_IMPORT_NS missing
TP
MODULE_IMPORT_NS declaration specifier missing, defaulting
to 'int'

Change-Id: Ibe478fff1f66e478f6ec198c0554f2433ddfdcde
Reviewed-on: https://gerrit.mot.com/1969007
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-06-03 05:24:23 -05:00
zhangh12
57dceea1db pstar: sar: support multi parameters for different panels
the panel name can be captured from the bootargs, then define the correspoding
regs in dts of sensor.

Change-Id: Ia25da8afad4fd6c710a3f8d62333350278cdfb78
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/1967050
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-03 02:22:24 -05:00
wangshuo18
f8fe0eaf11 aw8695: optimize vibrator&camera resonance issue
-move camera start interface into aw8695_haptic_play_go to cover all
vibratoring cases
-add camera func called in aw8695_haptic_get_f0,to handle resonance
during phone boot case

Change-Id: I17e39debfabca1a812ac2728f10714eff08bdf9d
Signed-off-by: wangshuo18 <wangshuo18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1967255
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Zilong Zhang <zhangzl7@lenovo.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-06-03 02:03:45 -05:00
litong20
a5632a94c1 Stmicro: Support parameter upgrade method
TP:
Support to upgrade TP firmware through the
Parameter APK.

Change-Id: I62fa7f7af03f6e850231a36e1d8a0f3911c92ee9
Reviewed-on: https://gerrit.mot.com/1966402
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-06-03 00:33:29 -05:00
litong20
51573bcad9 Add flash mode sysfs node in touchscreen mmi
TP:
Add flash mode sysfs node in touchscreen mmi
if flash_mode == 1, read firmware from /data/vendor/param/touch
else follow the previous process.

Change-Id: I17add2b289534533f6c87e4c321847f682cc02b1
Reviewed-on: https://gerrit.mot.com/1853339
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-06-03 00:33:07 -05:00
wangyq13
01ff483bf3 dlkm: lm3697: free resouces when init failed
- free resouces when init failed
- remove other ic type codes, only keep lm3697

Change-Id: Idfcbaba3f960906f947f22b8b30b30c0204c2dcd
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1967063
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-02 01:14:17 -05:00
mahj8
772c26d269 DLKM: bring up corfup PD 30W charging
bring up PD 30W charging
for corfup

Change-Id: I491a99c52accd397e69f88b864c5904f74ed9bff
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1943072
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-01 01:01:43 -05:00
mahj8
0828713dfe charging: pick base parellel charger from mmi_parallel_charger
pick base parellel charger from mmi_parallel_charger
for mmi_parallel_charger_iio

Change-Id: I3580ea06b0bf607574a7f5b36229ac3a2cf3d84a
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1932574
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-31 22:33:04 -05:00
yanyh2
6bdd0e5bb6 send charge rate uevent when power supply changes
Send charge rate uevent if power supply changes in case the
charge rate change uevent is missing by BatteryServices before
it starts up.

Change-Id: I4343454c54e30df1cbbc512d473b9061b10cbd84
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1964225
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-05-31 00:53:50 -05:00
xuwei9
784d268d31 bq25980:update charge VOUT parameter
Update Vout parameter to
chip default value

Change-Id: Id12a731f90debc141359aa4e3864b5e89b5bf3f1
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1964651
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-05-30 21:34:36 -05:00
Ryan Lattrel
55e2add665 bq27426: Fix kbuild to use ANDROID_BUILD_TOP
Use ANDROID_BUILD_TOP instead of TOP. TOP does not appear
to work anymore.

Change-Id: I9ca1f85ced505488c205078febf6d954aa7e9bc3
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1928666
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-05-28 14:54:15 -05:00
xizx
f198b62bae mmi_info: support build in kernel-5.10
build error:
     CC [M]  /home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_info/mmi_info_main.o
   /home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_info/mmi_unit_info.c:185:15: error: incompatible pointer types passing 'const struct file_operations *' to paramet
                   0444, NULL, &unitinfo_operations);

Change-Id: I0dc40ac30cf8b37161d55ffc0a993f6c51979e98
Reviewed-on: https://gerrit.mot.com/1949925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xianshan Wang <wangxs8@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-05-28 05:28:11 -05:00
xizx
f9b4963d4d mmi_annotate: support build in kernel-5.10
build error:
make[2]: Entering directory '/home/xizx/work/moto/8450/pine_20210507_08_userdebug/out/msm-waipio-waipio-gki/common'
  CC [M]  /home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_annotate/mmi_annotate.o
/home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_annotate/mmi_annotate.c:229:15: error: incompatible pointer types passing 'const struct file_operations *' to parameter of type 'const struct proc_ops *' [-Werror,-Wincompatible-pointer-types]
                0444, NULL, &mmi_annotate_operations);
                            ^~~~~~~~~~~~~~~~~~~~~~~~
/home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/include/linux/proc_fs.h:109:122: note: passing argument to parameter 'proc_ops' here
struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
                                                                                                                         ^
1 error generated.

Change-Id: I6bc25e9e74cae7582862b83b29796538271e9406
Reviewed-on: https://gerrit.mot.com/1949924
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xianshan Wang <wangxs8@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-05-28 05:28:06 -05:00
xizx
3bc16eaf4a utags: support build in kernel-5.10
fix build error:
  /home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/include/linux/fs.h:699:10: note: forward declaration of 'struct block_device'
                  struct block_device     *i_bdev;
                         ^
  /home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/../la/motorola/kernel/modules/drivers/misc/utag/utags_x.c:606:16: error: incompatible pointer types passing 'const struct f
                          dnode->dir, fops, node);
                                                                        ^
  6 errors generated.
  make[3]: *** [/home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/scripts/Makefile.build:277: ../la/motorola/kernel/modules/drivers/misc/utag/utags_x.o] Error 1
  make[2]: *** [/home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/Makefile:1898: ../la/motorola/kernel/modules/drivers/misc/utag] Error 2
  make[2]: Leaving directory '/home/xizx/work/moto/8450/pine_20210507_08_userdebug/out/msm-waipio-waipio-gki/common'

Change-Id: I5f0beae3b2bb9892ee38213f7cbf51b8d2d2561c
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1949923
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xianshan Wang <wangxs8@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-05-28 05:28:00 -05:00
Konstantin Makariev
7a6de0ddde bos0614_mmi: fix alignment issue
Structure alignment and missing data initialization allowed for
improperly populated value.

Change-Id: Iab8c395452db159415cf3052e7a7590770d8ae5f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1962683
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-05-27 14:37:47 -05:00
litong20
60840057ae Enable PANEL_NOTIFICATIONS for berlna touchscreen
When using drm panel notifications, there is a problem with
the display and touch loading sequence, which may cause TP to fail to 
find the active panel and thus fail to receive the display notification
So use panel notificaitons to avoid the issue.

Change-Id: I7269436bd8117db74467050d4cb839353efdf1a0
Reviewed-on: https://gerrit.mot.com/1962331
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-05-27 05:57:30 -05:00
litong
8243242481 Revert "(CR): fix user version build error"
Not defined CONFGI_PANEL_NOTIFICATIONS, so the module does not depend on
the msm_drm.ko, so there is no need to add the kernel symvers.

This reverts commit 976d0428b82bdf3b44b2affdc67a0e18f40a72e3.

Change-Id: If84d0e09157d13c6731df33ac032e7bee53d0e0b
Reviewed-on: https://gerrit.mot.com/1960482
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-27 01:45:23 -05:00
litong20
9061c0b31d Add NVT_SET_TOUCH_STATE to avoid compilation errors
TP:
The touch_set_state function will only be used when the
NVT_SET_TOUCH_STATE configuration is enabled. So add the
configuration to avoid compilation errors.

Change-Id: I832362899339c3465f475c13bb654a73216d8e9c
Reviewed-on: https://gerrit.mot.com/1960799
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-27 01:29:25 -05:00
litong20
8899397ed7 Deleate fts_system_reset in wait_for_ready
TP:
There may be a problem of function recursive calling.

[ 72.152265] Kernel panic - not syncing: kernel stack overflow
[ 72.152270] CPU: 2 PID: 515 Comm: modprobe Tainted: G S O 5.4.61-moto-00155-gb5a835fac66e #1
[ 72.152273] Hardware name: Berlin (DT)
[ 72.152277] Call trace:
[ 72.152283] dump_backtrace.cfi_jt+0x0/0x4
[ 72.152289] show_stack+0x18/0x24
[ 72.152296] dump_stack+0xb8/0x114
[ 72.152302] panic+0x188/0x3f0
[ 72.152306] nmi_panic+0x98/0xb8
[ 72.152311] handle_bad_stack+0x11c/0x130
[ 72.152317] __bad_stack+0xc8/0xcc
[ 72.152322] update_group_capacity+0x4/0x290
[ 72.152326] find_busiest_group+0xe0/0x834
[ 72.152331] load_balance+0x2b0/0xe7c
[ 72.152336] newidle_balance+0x2f4/0x5d4
[ 72.152341] pick_next_task_fair+0x40/0x664
[ 72.152347] __schedule+0x290/0x8ac
[ 72.152351] schedule+0x8c/0xc0
[ 72.152356] schedule_timeout+0x90/0x120
[ 72.152361] wait_for_common+0xd0/0x16c
[ 72.152366] wait_for_completion_timeout+0x14/0x20
[ 72.152372] geni_i2c_xfer+0x3d8/0x12fc
[ 72.152379] __i2c_transfer+0x2a4/0x8d8
[ 72.152383] i2c_transfer+0xd4/0x1a4
[ 72.152412] fts_writeReadU8UX+0x1ac/0x290 [stmicro_mmi]
[ 72.152433] pollForEvent+0xc0/0x378 [stmicro_mmi]
[ 72.152454] fts_system_reset+0x104/0x268 [stmicro_mmi]
[ 72.152475] fts_system_reset+0x11c/0x268 [stmicro_mmi]

Change-Id: I0f09ef7edd856b21afe71866fc260208184807c0
Reviewed-on: https://gerrit.mot.com/1960709
Reviewed-by: Jichao Zou <zoujc@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-05-26 04:34:35 -05:00
yanyh2
5015d763e9 Add 30W turbo charger type
Add 30W turbo charger type support to identify
the charger type with power more than 25W.

Change-Id: I4365fa695b859c8d6916336fc34c832ca1c1aa82
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1960683
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-05-26 03:39:01 -05:00
zoujc
6ddaa92a82 touch mmi:declare dependency.
touch mmi driver depend the display driver,
in gki build, display is a module, so declare
the dependency.

Change-Id: Ie18e87fb06a16f467de8cefa9fd28af7bb8c47a1
Signed-off-by: zoujc <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1958702
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-05-24 20:48:54 -05:00
wangyq13
0213be45da dlkm: leds_aw99703: free gpio if init failed
dlkm/leds_aw99703:
Free gpio if init failed, otherwise other modules can't request
this gpio again.

Change-Id: I0cfcde5156651c298d24b6debde468593efe48d6
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1958088
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-24 04:28:55 -05:00
wangyq13
0a30569e82 dlkm: leds_lm3697: add initial version lm3697 driver
dlkm/leds_lm3697:
Add initial version lm3697 driver.

Change-Id: Ibc125e6980e46d8c1c2bbe8d93a06e236a64e456
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1954968
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-24 04:28:47 -05:00
litong20
0f6b37ff56 Fix berlna user version build error.
TP:
When link binary object, touch_set_state is undefined,
No kernel symbal table was imported.

Change-Id: Ibd1cde478b08308d14fdba210ae3a61cd9887ff5
Reviewed-on: https://gerrit.mot.com/1957708
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-24 00:37:50 -05:00
litong20
39087fae46 Support novatek single tap in berlna
TP:
Support novatek single tap function in berlin NA.

Change-Id: I8f1d8d82b919b20fcba4812a74f247399a097ddf
Reviewed-on: https://gerrit.mot.com/1955575
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-24 00:37:06 -05:00
litong20
4cf1d3ef52 fix user version build error
When link binary object, panel_register_notifier is undefined,
No kernel symbal table was imported.

Change-Id: I539793e5aa2bd2d27d8ed9b959d9bef86739b26c
Reviewed-on: https://gerrit.mot.com/1957707
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Submit-Approved: Jira Key
2021-05-24 00:36:47 -05:00
cuijy1
25ad59d3e7 sx937x:change offset val bit mask
offset reg use D13~D0 bit
change the mask to 0x3fff

Change-Id: Ibc5b021d27c2bf52df1b579be8134f38c65c036d
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1956900
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-05-23 20:54:56 -05:00
zoujc
7877b0daa1 touch mmi:2nd patch, fix user version build error.
When link binary object, dsi_freq_head is undefined,
No kernel symbal table was imported.
Match kernel version for user build.

Change-Id: I73d4ea7c02c22c449ce7f266e54e1e0a17e16bd8
Signed-off-by: zoujc <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1957477
Reviewed-by: Jianqi Yang <yangj@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Submit-Approved: Jira Key
2021-05-21 22:11:55 -05:00
zoujc
55e17181dd touch mmi:Fix user version build error.
When link binary object, dsi_freq_head is undefined,
No kernel symbal table was imported.

Change-Id: I3d099fd9ea91c6de2d08f5013645ae7a1318eb86
Signed-off-by: zoujc <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1956689
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Submit-Approved: Jira Key
2021-05-21 03:57:55 -05:00
xuwei9
0814ebcd35 charger:mmi_hb_wake lock not released
mmi_hb_wakelock need acquire and release
at 70s duration,fix algoritm issue.

Change-Id: I069f395082fd21e170876d86fe3c91b24add7a43
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1956605
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-05-21 02:12:59 -05:00
cuijy1
f2b097bc8f SX937x: USE power online state
some platform not support power present state
use online instead

Change-Id: Ia234b8d4fc33c3f4e8e43a87e96fb9b34a12ffc1
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1951809
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-05-20 22:10:57 -05:00
Konstantin Makariev
2107f02e1c bos0614: access to sysfs for others
Need to allow group others to access driver interfaces in sysfs

Change-Id: Ic83b07674ee5396abc58aae3cf21ddf883c3196b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1934267
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-05-20 09:11:18 -05:00
Konstantin Makariev
2873bd469d bos0614_mmi: waveform shape feature
Haptics waveform has shape up and shape down settings that were not
availbale through sysfs set_waveform interface. This change adds an
extra parameter allowing for waveform shape to be specified.

Includes some code cleanup as well

Change-Id: I1901b69520515d79f1f6ccf4d701fc373aab74e9
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1952944
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-05-20 09:11:08 -05:00
wangyq13
cb0f2ebc47 focaltech_v2_mmi: bringup ft3519 on kernel 5.4
- change some compile error for focaltech driver on kernel 5.4
- bringup up ft3519

Change-Id: Id3eac6bdb3047bc33befc86a87b809671367672f
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1954464
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-20 04:22:05 -05:00
xuwei9
dcbb936232 qc3p:config ibus max to 3A
Config ibus max to 3A
for 33w adapter verification.

Change-Id: Ie35291b1d5f8de88470f1f9956afd8f021cbbe67
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1955363
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-05-20 04:20:13 -05:00
xuwei9
1d385c3ac4 mmi_parallel_charger:reduce charge rate report
report charger rate only change
happened.

Change-Id: Id773d3fd84adaa9690b1137a86d1972ec0e46412
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1955184
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-05-20 02:03:38 -05:00
wengjun1
d30cb29b96 dlkm: Cyprus: touch: ili7807s bringup
- Support ili9882 driver for kernel 5.4.0
- Improve touch driver

Change-Id: I340bec19ac48f3fde166a17da8a060f5dee1eac5
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1950206
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-19 00:57:52 -05:00
Yan Zhang
24d2d0e60e Add Egis fps kernel module for rbs
Egis rbs:
Added Egis kernel module for new egis rbs architecture

Change-Id: I74e977b69684b9b447745edcf73f47761d6c5f53
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1941950
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-05-19 00:40:37 -05:00
litong20
2f8e7af032 Support report rate switch
TP:
Recieve dsi refresh rate notification to switch
touch report

Change-Id: Ibe7ab1910552dd2c6b2bc395306d9635356966fe
Reviewed-on: https://gerrit.mot.com/1950078
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-18 22:15:32 -05:00
litong20
815b312e37 Add game mode parameter adjustment function
1. firset frame filter { C0 17 byte2 byte3 }
byte2: 0x01 Enaable first frame filter of first finger; 0x00 Disable
byte3: 0x01 Enable first frame of second finger; 0x00 Disable

2. Linearity adjustment cmd { C0 19 byte2 }
byte2: 0x01 Enable linearity adjustment; 0x00 Disable

3. tap jitter and slide jitter cmd { C0 18 byte2 byte3 byte4 byte5 byte6 byte7 }
byte2: tap X jitter; byte3: tap Y jitter
byte4: slow slide X jitter; byte5:  slow slide Y jitter
byte6: fast slide X jitter; byte7: fast slide Y jitter

Change-Id: I8691b3410e5fe487bb6d2f6aac941506ec31f3a9
Reviewed-on: https://gerrit.mot.com/1950913
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-18 21:34:36 -05:00
wangyq13
e0f5d218cf input: goodix_v1510: change to api in chip vendor whitelist
goodix_v1510:
Change some APIs to these in chip vendor whitelist, otherwise
compile errors occures.

Change-Id: Id48062e9340f4839582681950302a15eabc1d71a
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1951734
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-17 23:18:21 -05:00
litong20
be8e8cbc99 Add pollForEvent check mechanism
1. When the panel enters the active state, the gesture_enable should be set to 0.
2. When resume, the charger mode is already set, so not to wirte.
3. When the CONTROLLER_READY event is not polled, perform a system reset.

Change-Id: I5281e9cb4e962f5f0a1c9460fecd541ae72fa3f4
Reviewed-on: https://gerrit.mot.com/1950039
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-16 21:24:14 -05:00