Commit Graph
342 Commits
Author SHA1 Message Date
bchhq23 4b1d6b44fd rhode: long time vibration notice camera
Long time vibration notice camera:
1.Power on the vcm when the motor vibration time exceeds 70ms[1/2];

Change-Id: I9c66c4c6af606857630db9449e496a13c3c56899
Signed-off-by: bchhq23 <bchhq23@motorola.com>
Reviewed-on: https://gerrit.mot.com/2176409
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-01-21 02:40:35 -06:00
liaohj 99655ee678 modules:regulator_vibartor:add regulator long short voltage logic.
avoid vibrator noise.
add regulator long short voltage logic.
use "vib,pwr-by-regulator-enable" to seperate .

Change-Id: If90137a486b3ff807e573fba17c79951213777a7
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2162262
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-05 05:15:53 -06:00
zhangh12 9320dafd36 sar: support sar reset after usb hot-plug
1. This driver is porting from MTK, however, on QC platform, the sys
   node is "usb" only.
2. modify the correct macro

Change-Id: Ib2a799ce28571a274c1432f2aef842bd9f1ecf32
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2162018
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-01-05 01:21:40 -06:00
dengwei1 6c6dcb2921 dubai: vibrate add short index
set
short index

Change-Id: I71e53f871946b152db8a0a68f8f167ced13cb702
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2159319
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-12-31 00:38:46 -06:00
tinno18 beb23b07a3 [hawaii+oled]:vibrator long short vibration intensity 1/2
vibration intensity
play_ms > 80ms means long, otherwise short
long : 2.6V
short: 3V


change reason:vibrator resonates with camera

Change-Id: Icdb29bf77b3987ef7f25e0f6660b8461fe74e84c
Reviewed-on: https://gerrit.mot.com/2152699
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <tinno18@motorola.com>
Reviewed-by: Zhenghai Pan <panzh2@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-12-23 00:40:08 -06:00
dengwei1 ac8f1a04f1 dubai: vibrator add haptic rtp
haptic
rtp

Change-Id: Iaa5434190a002978566d0d13aMontanafad8aae59ba0
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2147763
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-12-17 02:14:04 -06:00
qiurp1 48af563ae0 PEN_HALL:disable wakeup source
if the disable wakeup source is not avalible,
result the sleep state is not enter

Change-Id: Iaffb9bf70c574ce5dad5d1379be91159ef0e500b
Signed-off-by: qiurp1 <qiurp1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2145095
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-12-16 01:02:21 -06:00
dengwei1 845fbe13a9 dubai: vibrator add long brk
add
brk

Change-Id: Ib9ddd71b1c6e80c62b583a27c3ac53ed87ac610f
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2140965
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-12-10 03:16:27 -06:00
tinno15 1eafe6d9fe moto regulator vibrator: fix null pointer bug
vcc is null while chip is pwr_by_gpio
Add condition to avoid the crash.

Change-Id: I3de63bcf0c17954fb0bfc99767326c9dac34742a
Reviewed-on: https://gerrit.mot.com/2136306
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: <tinno15@motorola.com>
SLTApproved: <tinno15@motorola.com>
Submit-Approved: <tinno15@motorola.com>
Tested-by: <tinno15@motorola.com>
Reviewed-by: Zhenghai Pan <panzh2@lenovo.com>
(cherry picked from commit 07fa0fbff4a0fef6b483d35ddf4c4c74daf658d2)
Reviewed-on: https://gerrit.mot.com/2138542
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2021-12-08 02:47:57 -06:00
zhangh12 def94f695a sar: aw9610: the reference channel can't be seen on user layer
ref_channel will be tested failed on factory, it should be filter for user,
add "ref_channel" on dts, it won't be registered to sensor_class.

Change-Id: Ibc5c927d5441665066aba990ecab36dbd7d03e47
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2134407
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-06 02:33:14 -06:00
zhangh12 236b122c27 sar: modify the vdd name for aw9610.
aw9610
modify a specific vcc name for sar.

Change-Id: Ia5fc08b70e37d8b74a05d45d995fb101d6e0b5c9
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2112766
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-11-10 23:21:46 -06:00
weimh1 e5175ed214 milan5G: sar sensor driver
1.optimize log for debug.
  2.drivers/misc/sx937x/sx937x_sar.c

Change-Id: Icc3ed680148ce243aca26bc7419ae1f3c83fe2b9
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2110918
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-09 04:44:19 -06:00
zhangh12 484bae18fd sar: add aw9610 driver
add the driver of aw9610,
modify the build scripts.

Change-Id: Ic2be827fd281759c6184e68cfe5690f76642cc46
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2110739
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-11-09 02:08:48 -06:00
wuwl10 5ea66e0be4 dlkm: fix vibrator stop fail issue
Cyprus IP68 use regulator to driver vibrator.
Fix regulator unblance  and disable faild issue.

Change-Id: I17cab4b196725794c34f73d4ee4eccfeeac75f89
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2095603
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-21 03:26:33 -05:00
dengwei1 690f92f0f4 dubai: vib update file name
vib update
file name

Change-Id: Iae827671629dd0a05589e97bab1584c4e52ac85f
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2092018
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-10-18 03:55:04 -05:00
chenlj2 709e461604 DLKM/sar:optimise sx9375 driver on bo
-optimise log output
-add register_read store function

Change-Id: Idfe5cf70f23f68fb3c87a2376c5b4da68f503018
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2090589
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Nan Wu <wunan3@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-10-15 03:37:15 -05:00
wuwl10 cff2faf131 dlkm: add new regulator vibrator driver
This driver can support  regulator to driver a vibrator.
It was used on cypf by r first time.

Change-Id: Ib62747bacb225d1c730cf22a29bbe133aa5bd793
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2089627
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Submit-Approved: Jira Key
2021-10-14 04:18:01 -05:00
cuijy1 854549da23 hall:fix not report issue
fix not report issue when reopen

Change-Id: Ic350af4ec2440e8ac9ecbe322de36bc50b8d168e
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2089507
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: qiurp1 <qiurp1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-10-14 03:51:54 -05:00
dengwei1 b5ca4b4d3d dubai: vibrator init setup
vibrator
init setup

Change-Id: I3c640d960cdd572d7178aaa535df6334f24cfa74
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2086352
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-10-09 00:33:09 -05:00
cuijy1 a86a9d5763 sx937x:enable usb cal
use KBUILD_OPTIONS instead KERNEL_CFLAGS

Change-Id: If169afaf37096f8fb34a7a8cea2a478c9c791d13
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2080356
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: qiurp1 <qiurp1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-09-30 04:42:19 -05:00
qianlong 6180117a2e utags: read utag block device path in bootconfig from device tree
GKI2.0 doens't allow to export kernel_read and kernel_write api,
so we get the block device path in bootconfig from device tree.

Change-Id: I8601a35f88344eb5ba7601fc302eb1b846e945a0
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2072437
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-09-22 21:18:31 -05:00
jixj aaa2820ec1 utags: Use bio to replace kernel_read and write API
GKI2.0 doens't allow to export kernel_read and kernel_write api,
so use regular bio intefaces to read and write utag block device.

Ugprade products which kernel is 5.4, can use the BIO to replaced
kernel_read/kernel_write block device interface with kernel config
CONFIG_MMI_UTAG_RW_BIO.

Change-Id: I74780733c05ae6d992d3ae07dc33bd1e352590d8
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/2056920
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Submit-Approved: Jira Key
2021-09-22 19:37:17 -05:00
wuwl10 5eb31957f9 vibrator: add new ldo vibrator driver
For Milan 5G, it is first time to use and external LDO
to driver the vibrator instead of PMIC.
Add new driver to support it.

Change-Id: Id9d3ecfc408c71747f5ea536b404a9ef707e59f0
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2056348
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-08 02:55:48 -05:00
qiurp1 18114899c1 hall pen kernel bringup
hallpen_sensor bringup

Change-Id: Iec39f4515a6ae090e811a6d8332155ef1403267e
Signed-off-by: qiurp1 <qiurp1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2055032
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-09-01 04:52:46 -05:00
Jichao Zou ac31279ac7 mmi_sys_temp:fix compilation error.
motorola/kernel/modules/drivers/misc/mmi_sys_temp/mmi_sys_temp.c:118:23: error: implicit declaration of function 'compat_ptr' [-Werror,-Wimplicit-function-declaration]
        arg = (unsigned long)compat_ptr(arg);

Change-Id: Ifba590fd36a743e7d62df81c82fcc4839b7c816a
Signed-off-by: Jichao Zou <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/2053149
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-08-30 00:37:58 -05:00
cuijy1 37403a3bff hall driver bring up
add hall pen detect ko
add hall folio detect ko

Change-Id: Idd325b51487f3d9313c56034adadf4169094f0e6
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2025362
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-08-03 02:05:59 -05:00
xizx 40ea1a04ff utags: reads bootdevice name from bootconfig
After 8450 rebased to qcom FC, the bootconfig feature begins enable.
So that androidboot.bootdevice cannot be found in the cmdline,
and cause utags module to load failure.

When bootdevice cannot be found in the cmdline, fallback to read
it from /proc/bootconfig file.

Change-Id: I4324fcbc0345b246308bae95af03e0d99eaff399
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/2008778
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-07-12 00:49:51 -05:00
cuijy1 412756ee07 sx937x:Android S bringup
change Makefile
add kernel_platform path

Change-Id: Ife163e2a041d05c5b184188b17e54a5468a6e3ad
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1992088
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-28 04:35:03 -05:00
Jiyue Cui 908e2bdb8b Revert "(CR) sx937x:mv ps_get_state to work callback"
This reverts commit c2f744d014225db0494144bcc874be8d0c3dbf13.

Change-Id: I14be7ed2aefdd0522d70f6eb2ac2d7c9e2d8e254
Reviewed-on: https://gerrit.mot.com/1991079
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-24 09:27:28 -05:00
Jiyue Cui 409613e8c7 Revert "(CR) sx937x: change global_sx937x initialization position"
This reverts commit 3663cf0b4334e402577e63a4a04a2be39c64ffa9.

Change-Id: I4252469c9bd9c0820bbf8c3d6c4fbfd233bb2946
Reviewed-on: https://gerrit.mot.com/1991077
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-24 09:27:21 -05:00
cuijy1 40459e9cfd sx937x: change global_sx937x initialization position
sometimes ps_notify_callback will be called
after reg_notifier immediately

at this time global_sx937x is NULL
will cause kernel panic

change global_sx937x initialization position earlier

Change-Id: I2379ea3113563268d36d5ddc0bb2cb5a510b15e7
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1990372
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-24 01:44:19 -05:00
cuijy1 b43fdec148 sx937x:mv ps_get_state to work callback
ps_notify_callback warnning for block function usb_psy_get_prop()
mv ps_get_state to work callback

Change-Id: I856879ccd0d727660bc92c945445a64b4a03fddb
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1977442
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-23 04:55:46 -05:00
wangshuo18 83117789d0 aw8695: move camera start entry before the vibrator timer
-In the current logic,the camera process is after setting the vibrator timer.
The camera will take some time,which cause the vibration duration to be shorter.
Especially when we use launch_lens to move lens step-by-step.
-So move camera process before setting vibrator timer.

Change-Id: Ib8115444015f6160c25177e9065aa0f6a2fcede3
Signed-off-by: wangshuo18 <wangshuo18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1976296
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Reviewed-by: Qiang Guo <guoq8@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-14 20:50:02 -05:00
dengwei1 73150b3cd8 pstar: vibrator add moto fw
vibrator
add moto fw

Change-Id: I7671e8b9fc8eee5e65c5af6287d44ecc7c4d4e5d
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1977359
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-06-11 01:37:33 -05:00
chenglong1 f7dec3bb51 Fix artificial vibrating pattern caused AF always on.
When vibrating with pattern [0,200,0,50], the vibrating will be started with
200ms duration first, when 200ms timeout, vibrator will be stopped with
duration 50ms which will not be considered as long vibrating, then AF will
not be turned off after that. This change is for fixing above issue, though
we haven't got evidence pointing to above metioned vibrating pattern is user
really encounted issue.

Change-Id: Iadc8ff7b9e00a11dc1d3e89b822e6cb8adb76116
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1973075
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhilong Wang <wangzl30@motorola.com>
Reviewed-by: Darong Huang <huangdra@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-09 01:28:13 -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
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
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
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
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
zhangh12 34605de176 sx937x: reset sar on i2c failures
porting from x933x,
Re-initialize via a watchdog failure

Change-Id: I5df7d15c9bc62d77940e7da1f57425d245bf5c86
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/1935976
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-04-30 03:45:19 -05:00
Ryan Lattrel d6d635667a qrng: Add qrng driver
Add the qrng random number generator
driver.

Change-Id: I2d3e767f495450240c6c4fc3b5cdcdb0fc803a24
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1894649
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-04-20 12:06:13 -05:00
yangjq f730d9613d aw8695: Fix compilation error of aw8695 for android R
To include the header file, change $(TOP) to $(ANDROID_BUILD_TOP);
Add function do_gettimeofday();

Change-Id: I6e6db974bf11f5bfd294702e48a32cd7facf5c48
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1893925
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-03-08 01:04:20 -06:00
Ryan Lattrel b6abf81743 sx933x: handle reinitialize during suspend
If we happen to suspend during the sx933x_reinitialize
function, we may fail to write all i2c commands successfully
and may not fully recover.

Make sure the task has completed before suspend, and
restart it on resume.

Change-Id: I196d2f2de6fe905de86f82bc17da1d142b57de1a
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1884313
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2021-02-24 16:04:00 -06:00
weimh1 6b7cacdc77 sm4350/sensor: optimze sx937x log output
1.optimze sx937x log output about reference channels
  2.motorola/kernel/modules/drivers/misc/sx937x

Change-Id: I3df4954247e644369c8b33fd99704b9bdc7c9b21
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1844302
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-01-05 23:36:28 -06:00
jixj e5d5b0953c mmi_sigprint: Fix CFI check failure
Kernel changes the signal callback function parameter
from "sigifno" to "kernel_siginfo" on kernel-5.4

change:
ae7795bc6187 signal: Distinguish between kernel_siginfo and siginfo

Change-Id: If120a520bc949b354855f804fcfb3fca97224f47
Reviewed-on: https://gerrit.mot.com/1828677
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-12-17 01:44:58 -06:00
huangys c04d3e20e2 aw869xx: keep using default device name
if we set the device name, It would block the firmware downloading.
the reason is that the expected path is not correct.

Change-Id: I71244fab069c779842d9d3e9883fa30d0da9647a
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1776191
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-12-13 20:31:29 -06:00
jixj 6e9ed15514 mmi_sigprint: Use a new way to get kallsyms_lookup_name()
kallsyms_lookup_name() is not exported on kernel5.4,use register_kprobe()
to get kallsyms_lookup_name().
Also fix path incorrect issue on Android R.

Change-Id: I5e0fb8c3bd7a14c5bb8316635261f411c5952577
Reviewed-on: https://gerrit.mot.com/1820763
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-12-08 03:56:10 -06:00
chenglong1 50440059e7 aw8695: Add start/stop vibrating notification to actuator.
Vibrator on phone main board can disturb camera AF VCM when it's vibrating.
To avoid the camera lens str(CR) noise during vibrating, power on AF and
push lens to certain position (for Nio DAC 400) can greatly reduce the
noise.This change is for notifiying camera actuator that vibrator will start
or stop work, then camera can respond accordingly..



Change-Id: Ifa5dd445311867b581fa0498d67ebad31cb6b1fb
Reviewed-on: https://gerrit.mot.com/1817562
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Darong Huang <huangdra@motorola.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Xu Ji <jixu@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-12-04 02:32:03 -06:00