Gboard settings UI allows vibration strength to be 100ms. Make driver
considering 100ms vibration as short haptics instead of long one.
Change-Id: I3fe503b2718e6fa2349cc6fea2f76f4805b0374e
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1667611
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Updated wakeup_source API's need to be used for kernel_versions > 4.19.
Ensure to retain old wakeup_source API's for kernel_versions < 4.19.
Change-Id: If5d90025486c944b85674098a28bf9c989f276bc
Reviewed-on: https://gerrit.mot.com/1681965
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Updated wakeup_source API's need to be used for kernel_versions > 4.19
Ensure to retain old wakeup_source API's for kernel_versions < 4.19
Change-Id: Ia96c57cc99f7e395de3e3d4896f5702cf5c4e1a4
Reviewed-on: https://gerrit.mot.com/1681964
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Updated wakeup_source API's need to be used for kernel_versions > 4.19.
Ensure to retain old wakeup_source API's for kernel_versions < 4.19.
Change-Id: Idfbdadf5a63d3d87a7598df40d8bc47756c7a453
Reviewed-on: https://gerrit.mot.com/1681801
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
On latest kernel wakeup_source_init API removed, instead
need to use wakeup_source_register.
This fix replaces:
wakeup_source_init with wakeup_source_register
wakeup_source_trash with wakeup_source_unregister
Change-Id: If252a430a40f695b9a2c4e4aa02d5905fb8d933c
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
On latest kernel wakeup_source_init API remove,
Need to use wakeup_source_register for the same.
This fix replaces wakeup_source_init to wakeup_source_register
wakeup_source_trash to wakeup_source_unregister
Change-Id: I684bb709000342165c74c2cf400edd54c0045f63
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
fix implicit bld errs of wakeup_source API's in Android R
On latest kernel rebase from QC:
we see couple of wakeup_source API's are removed,
errors as below:
motorola/kernel/modules/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c:4120:2: error: implicit declaration of function 'wakeup_source_init' [-Werror,-Wimplicit-function-declaration]
motorola/kernel/modules/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c:4443:2: error: implicit declaration of function 'wakeup_source_trash' [-Werror,-Wimplicit-function-declaration]
motorola/kernel/modules/drivers/power/p938x_charger/p938x_charger.c:2945:2: error: implicit declaration of function 'wakeup_source_init' [-Werror,-Wimplicit-function-declaration]
wakeup_source_init(&chip->wls_wake_source, "p938x wireless charger");
motorola/kernel/modules/drivers/power/p938x_charger/p938x_charger.c:3015:2: error: implicit declaration of function 'wakeup_source_trash' [-Werror,-Wimplicit-function-declaration]
wakeup_source_trash(&chip->wls_wake_source);
This fix replaces
1) wakeup_source_init(..) function with to wakeup_source_register(..)
2) wakeup_source_trash(..) function with to wakeup_source_unregister(..)
Change-Id: I9639f64ad8f9efeaf8f3d199f9a2af27341b145b
Signed-off-by: kumarv <kumarv@motorola.com>
Factory SW boots charger driver quicker than user builds. So charger drv
may attempt a heartbeat update prior to completion of FG reset and re-init.
This can cause a negative bad read from FG.
Chrger drv checks will force the negative value to 0 soc instead. To
prevent this, delay to the next scheduled hearbeat capacity update.
NO_PROP_NEEDED: keep to smith & TI FG timing.
Change-Id: I71213fd0a33083fa3a885896e406b513279867ab
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1678268
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
do_gettimeofday is not supported in new Kernel version, redefine
it if it is not supported for compatible compilation of stmvl53l1
DLKM module.
Change-Id: I718eedf4d8cd8479f0d34fca8a78e7e1e39e49ec
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1679227
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Legacy api get_ds is not used any more in new Kernel
version, and it can be replaced by KERNEL_DS directly
according to the explanation of the commit patch to
remove get_ds() from Kernel.
Change-Id: I9beffbeac23d5399fcf87f9bf832241f442654e0
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1679179
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
When the display and touch IC share power, we need to send the TP status
in the gesture mode to notify the display to keep on powering.
NO_PROP_NEEDED: <only for kiev in bo branch>
Change-Id: I87b56d3d3712c956de88e09b2751f5c355fb7a9b
Reviewed-on: https://gerrit.mot.com/1666974
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Set TI-FGes termination current to a lower level to prevent early
charge termination. The higher 200mA level caused lower capacity
Main batt to cycle continuously between chrg and dischrg while
Higher Cap Flip battery catches up.
NO_PROP_NEEDED: TI-FG is specific to SMITH product only
Change-Id: Ifa0504713ab420bb324dd20a73f1868146c9611c
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1672957
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Patch from Vendor ILITEK:
To prevent the register of hardware DMA from getting the wrong value,
resulting in verification failure.
NO_PROP_NEEDED: New touch IC for NPI
Change-Id: Id81e539f3b3334d1c859d8794e730598be3469c9
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1667401
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Access to focaltech touch driver through touchscreen class
unified interface.
NO_PROP_NEEDED: <Touch driver code is unified in bo branch>
Change-Id: I32874ac2cc55b7e6df6c01470d767963e2b45122
Reviewed-on: https://gerrit.mot.com/1664276
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
change:
Disable fir work thread when display is off
Change-Id: I35df74fe89caed3d02f574bc22afb40ee43bdd3f
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1664163
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Upgrade driver of aw8624 from 1.0.7 to 1.3.9, which was suggested
by Awinic.
NO_PROP_NEEDED: Only for a new product Kiev JAPAN.
Change-Id: I31d665574d135836496fd14c0bc54428db9eaff7
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1659051
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Change double tap interval from first finger up to second finger up
to first finger up to second finger down
NO_PROP_NEEDED: only need for nairo
Change-Id: Id97ad5a62c22df358f037f4314f4abb992522bd6
Reviewed-on: https://gerrit.mot.com/1656842
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianlin Nie <niejl1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1659068
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
ilitek_0flash_mmi:
Reset IC again and downlaod firmware if esd recovery fail.
Previous codes have logic error, can't reset IC correctly.
Patches from Vendor.
NO_PROP_NEEDED: New IC changes.
Change-Id: I9b043ab9a8611f62f82599ee6de86f4876e25691
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1658332
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
The new battery profile was added, but the dm_ver was never incremented.
The driver will not update the configuration on the chips until it sees
a new dm_ver, so this is required to actually see the effects of the new
battery configuration files.
NO_PROP_NEEDED: this only affects smith and the new battery profiles for
smith
Change-Id: Ie5714c8b7a02227027aef994727417fbe2beac5d
Reviewed-on: https://gerrit.mot.com/1653126
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Bernie Moreno <berniem@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
TP:
Fix the error definition of unregister_panel_notifier in (CR).
NO_PROP_NEEDED: <Touch driver code is is unified in bo branch>
Change-Id: Ibb5e0be256e78a31efd59b4f7a2e4329797c3e9c
Reviewed-on: https://gerrit.mot.com/1651390
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
leds_aw99703:
Change backlight type to 99703 to avoid conflict with panel0-backlight.
NO_PROP_NEEDED: WLED IC for new product
Change-Id: Ibb824c08774c5aa60b10a318896d07fa7ce872d3
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1653746
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Since all the definitions of Qcom's kernel 5.4 are now in
device/qcom/kernelscripts/kernel_definitions.mk,
And AndroidKernelModule.mk is removed in kernel 5.4.
So include kernel_definitions.mk instead for baseline
that does not have AndroidKernelModule.mk.
Change-Id: I3b995554697d04f06658448eedd19f98e6196db2
Signed-off-by: a7301c <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1650768
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
- Trigger touch firmware download by display driver
for quick touch response.
- Only use panel notify, avoid trigger drm and panel
notification at the same time.
NO_PROP_NEEDED: New IC driver.
Change-Id: I01313efff3713d45362af18c277aa759e67dda23
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1649595
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
These are the golden profiles generated using the Battery Management
Studio software provided by TI. They should replace existing
configuration.
NO_PROP_NEEDED: battery profiles are specific to smith
Change-Id: Iaa7dd0631a6b2fc57fefea09ec09d094fb0e9458
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1622722
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
ilitek_0flash_mmi:
Add support for single tap.
NO_PROP_NEEDED: this is new IC driver, don't need to pick to stable
line.
Change-Id: I7d3efeb71e0f0e309db7c06062c86c765f8d7e1e
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1647675
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Charge current ocp overcurrent check was made on negative current
Charging is positive polarity, causine ocp cal to be missed
NO_PROP_NEEDED: current reports are negative on Olson, not on smith
Change-Id: Icfee60ff847b55ff0fe5119cc178fb5fac65d581
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1638826
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
When Synaptics touch belongs to secondary display and splash screen
option enabled, driver depends on DRM display notification to follow
with HW init. In this case suspend/resule and irq enable/disable
methods can be called by class driver un-initialized causing kernel
to panic. Added atomic flag to indicate device queried successfully
to prevent un-initialized methods execution.
Change-Id: I3debfb80eac129f550acdd2fc104eacc32f499a2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1641558
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
compatible with 3 and 2 channels
support 4 channels only in borneo
the sar chip default support 3 or 2 channels
Change-Id: I0a594fe18ebff2679b0ada26646f44b50afce67f
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1640530
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Add 3 new waveform binaries for ATT ringtone "City_lights",
"Firefly" and "Now or Never".
NO_PROP_NEEDED: Only new products need these new ringtones.
Change-Id: I1a10d7c6786edd74abcb3c63fbbe4536ad84056b
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1638282
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Detection work handling panel ready event need to check current touch
IC state before calling resume method. Sometimes driver can
transition to suspend before panel ready received, thus detection
work must query current state before calling resume.
Change-Id: I58f6e6eb7c717fb11778a5b566eb67369facd603
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1631533
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Add new ringtone to end of waveform file array.
"Moto Retro" is not present on all AW8697 devices.
Change-Id: I1b4b68aec659306eea3b398a0460ec28326e2c26
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1596551
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key