Commit graph

1,355 commits

Author SHA1 Message Date
Kenny Kessler
a71ae53ea8 power: qpnp-smbcharger-mmi: Add Factory Charging
Enabling charging from Factory Image.  This will allow boots
while in the factory to skip and charge the device if a Wall
Charger is present.

Change-Id: I3fd3d6f2773c38bebdc2d3c93aef7c847051425e
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1267774
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
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
2018-11-13 11:04:03 -06:00
Konstantin Makariev
77939fac39 synaptics_mmi: support multiple instances
When there are multiple Synaptics touch ICs present, multiple
instances of driver need to run concurrently. This change is the
initial implementation of multiple driver's instances support.

Temporarily FW upgrade function is now lauched in probe only
for the first instance of driver and RMI device support ceased.

Change-Id: I59cc1521eee1679922fba77418fc111ff850f1cf
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266638
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-11-09 17:56:42 -06:00
Konstantin Makariev
dcb042070c raydium_mmi: bound display concept
Touch now can be bound to display using device tree option. DRM
framework API provides display name to allow comparison. If touch
driver has bound display name specified, then probe will fail
whenever bound display name and name reported by DRM API do not
match.

Change-Id: I4b934efdbc38944faae36c49d093099d9ac50834
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266671
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-11-09 17:56:25 -06:00
Kenny Kessler
cd70441d27 power: qpnp-smbcharger-mmi: Replace Battery Power Supply
Take control of the Power supply interface.
This will be done by creating a passthrough "battery" that
passes the properties from this driver to the qcom smb driver.
At first there wil be 2 properties that can be caught and replaced.
Status is needed to ensure the mmi algorithim hits FULL.
Capacity is needed in case of dual batteries where it will be
merged into a singular capacity.

Change-Id: Ib20bf6a574c0c74c01b0fc4a959f57706d3ab83f
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266769
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-09 14:24:08 -06:00
Kenny Kessler
45be99336d power: qpnp-smbcharger-mmi: Fix Full Condition
Make sure to charge back if battery drops to 99%.
This was found beucase after charge FULL the Flip battery
still needed charge to balance voltage.  The Main battery
charged the Flip battery.  Then Main battery hits 99% but
because Flip was FULL it was blocked from restarting the
Charge controller.

Change-Id: I58d00acf963afeba1c3bf6bf7fbea98b293d4251
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266305
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-09 14:24:04 -06:00
Kenny Kessler
1831618342 power: qpnp-smbcharger-mmi: Flip Voltage Offset Change
The Flip Voltage will lag a bit more behind the Main Battery.
This is due to path impedance so adjust the Voltage offset to
consider a Taper condition.  For Flip only use twice the 50 mV
or 100 mV of Voltage offset.

Change-Id: I4e2be6ed57bd5e097b7d735af3b00d21fc1f9a4c
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1265427
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-09 14:24:01 -06:00
yangjq
e1598e7929 aw869x: Reduce vibrator logs
Change pr_info to pr_debug to reduce those too many kernel logs.
Can still enable these logs by the following adb command:
echo "file aw869x.c +p" > /sys/kernel/debug/dynamic_debug/control

Change-Id: I3515457a5c9184022150688b76731363c24249c5
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1266935
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-11-09 09:10:11 -06:00
dengwei1
df7495ef11 channel: input fix touch issue
fix the touch issue
pick up the fix from odm

Change-Id: I76e80f2c3d46055bb592a72d2e05bee31d0e3296
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266915
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2018-11-09 07:51:39 -06:00
haojl2
15e2fddd44 himax_mmi: fix point stack issue
This patch is released by Vendor.
Without this patch, stack point issue may happen.


Change-Id: I710a36021112dcdc9726e3171a8cbb552b7a4e3d
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266527
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-11-08 07:21:20 -06:00
haojl2
59b557dcbb himax_mmi: fix enter esd revocery after resume
g_zero_event_count not clear after resume.
This will cause ESD recover triggered after resume device several times.

Change-Id: I79d4c0637763ee23544c0eff367a6eeec75cee19
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266511
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-11-08 07:21:17 -06:00
haojl2
717c53ac09 input: ets_fps_mmi: Remove debuglog in user build
Only enable debug log in userdebug build.
If build user SW, remove those debug logs.

Change-Id: I2838ebc6bf34bf173bbf3f9367d15e8252247c73
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266491
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-11-08 07:21:13 -06:00
caoyi1
008a5b639f ABOV sar sensor: report input event first boot time
-report input event the first time enable sensor
 -after boot up

Change-Id: I0d39630dc420a329fbac3c5dcda8833200b9bb0c
Signed-off-by: caoyi1 <caoyi1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1266384
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-11-08 01:14:39 -06:00
zhouwl
bcf3c95f50 ASoC: tfa987x: NXP volume control
Because this digital volume adjustment only has 21dB space,
it can't meet SOP-0289 requirements, remove this function,
let's use QCom codec digital gain for ramping tuning.

Change-Id: I90ecc9778bffe218704c71236223666e6af3d4cb
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1266429
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhihong Kang <kangzh@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2018-11-08 01:10:28 -06:00
liaohj
aa7f58c635 modules:taf987x:donnot send calib value for receiver.
- for receiver ,bypass smart pa, donnot send calib value to adsp ,

Change-Id: Iffce317be46c65921ab2d158e06f314637e9be9f
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1265703
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-11-07 04:13:04 -06:00
Weilong Wu
74b852a4c3 dlkm: optimize st21nfc driver
Change some logs and optimize the clkreq_gpio
operation for st21nfc driver.

Change-Id: I1b9b5cdfd711bb2b051d1997124e9211a3b50384
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1264033
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Balachandar Swami <balaswami@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-11-05 21:21:44 -06:00
Konstantin Makariev
e7dc63cfc0 sx933x: reduce kernel log foot print
Limit number of print messages in run time. If necessary, debug
messages can be truned on dynamically through kernel debug interface
echo "file sx933x.c +p" > /d/dynamic_debug/control

Change-Id: Ic317c4076540600f6838a0dae24ca3aaefcd5f6c
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1264922
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-11-05 16:10:55 -06:00
xuwt2
a9f24ec5ad haptics: awinic: add haptic context while flat-up
-1, add haptic context whild flat-up reduce the gain of vibration
-2, disable this feature when the bootmode is factory

Change-Id: I7c99cc9ffe257020176e51dd72f16da852315d36
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1263466
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-11-05 02:52:08 -06:00
dengwei1
f07839f5a3 channel: input add ilitek touch fw proc file
input add ilitek touch fw proc file
to get the fw state.

Change-Id: I0b20c52930eca68ffabfe2100771f0d34437e48c
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1264419
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-11-05 01:09:07 -06:00
liugy11
de71b8b3c9 remove some logs of sx9331
remove some DEBUG level logs to INFO level
logs of sx9331

Change-Id: Icba07c38ee19d5b5125221aa0c5daf4cb274a116
Signed-off-by: liugy11 <liugy11@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1264209
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haichao Li <liuhc3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2018-11-02 08:34:11 -05:00
wengjun1
e99e842bcf DLKM: Improve ili9881h touch driver
- Remove some unnecessary log.

Change-Id: Ie4c81d139f1fb56e04ebd5d01a7bf1b6dfaae6e6
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1257181
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-11-01 22:54:36 -05:00
xuwt2
1d6836e78e bq2597_mmi: replace PROP_STATUS with CHARGE_NOW_ERROR
the POWER_SUPPLY_PROP_STATUS only express charge status,
such as charging,discharging,not charging. and cannot be express
as Charge IC ERROR status.
use the POWER_SUPPLY_PROP_CHARGE_NOW_ERROE to express it

Change-Id: I319e41e903da33f1b052c3b856a0852c3b44c029
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1263621
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-11-01 22:16:14 -05:00
xuwt2
d537117733 mmi_pl_chg: replace PROP_STATUS with CHARGE_NOW_ERROR
In the bq2597x_mmi drive, the PROP_STATUS was replace with
CHARGE_NOW_ERROR, and the mmi_pl_chg_manager also replace it

Change-Id: Id9cdf2991f54717e2c4ed079b952b633d09efe46
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1263623
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-11-01 22:16:04 -05:00
huangys
8d70153b28 extcon-madera: remove headphone firstly on plug out
when the 4-pole headset unplug, APM will receive HEADSET remove event.
then HADPHONE insert and remove event. this cause unnecessary audo route
switch which lead music plyback stuck.

if we change order of madera_cable array, we may remove headphone firstly.
this can avoid this issue.

Change-Id: Icf1af827a3364384b5bc63a8d10dde3a88d38986
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1259458
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-11-01 06:05:05 -05:00
Konstantin Makariev
fa2e907f94 raydium_mmi: clean up reported events
Disable gesture associated with palm. Stop reporting button events.
Clean up suspend/resume to avoid sending empty frames.

Change-Id: I001cc6a0d894c42dd90e19e1a3b4810847dfbbc7
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1261534
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-10-31 10:25:47 -05:00
wunan3
9103601cf6 DLKM:optimise sar sensor remove function
-release related resource about sarsensor registered in probe
   -issue:DLKM // kernel panic when rmmod sx9311_sar module

Change-Id: I5d87494bdf4d1b29135abf6b345b3f7cbc28112f
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1261468
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2018-10-30 02:22:38 -05:00
Ryan Lattrel
0f97da9d0e muc_uart: wake on wake_irq and attach
Wake up the system from suspend with either the
wake_irq or the attach_irq.

Change-Id: Ia635fdbc24d0bcc138f7416cfa52740175ef126c
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1261634
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-29 16:59:48 -05:00
Ryan Lattrel
50883b3ebb muc_uart: update sleep timeout to 500ms
Change the sleep timeout period from 5s to 500ms.
Before the timeout occurs the driver blocks the transmission
of messages in the tx queue.

Change-Id: Ib35d28c6e0586b1216bbf5cdd769074b6f4629de
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1262209
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-29 16:59:46 -05:00
Ryan Lattrel
e6fb59eb84 muc_uart: dont throw out message on bad magic
Don't toss the entire message on a bad magic number.
If there is a bad value in front, look for a valid
magic number in the rest of the data, then throw out
the bytes before it.  This is to eliminate any
random bytes that might show up before a valid message.

Change-Id: I70c395de146d7368d0d2a6433be329b8d69b5729
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1258434
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-29 16:59:42 -05:00
Ravi Vembu
dab0198581 Revert "madera: Add ref clk for codec"
This reverts commit 987d71921e6d284257daff68be69375138ce3d56.
This is not needed anymore since the clk is always on 32K clk.

Change-Id: I7aedfd7d10d558ed1e780637f4b57dfdd3989faf
Mot-CRs-Fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1262244
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-10-29 16:10:37 -05:00
dengwei1
d688eb234b channel input update ilitek touch firmware block number.
update ilitek touch firmware block number
as vendor suggested

Change-Id: I1a30717b60714b36467589a80a1f2fc7f466ba70
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1261966
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-10-29 04:30:11 -05:00
haojl2
ff7e3e1513 input: ets_fps_mmi: Add navigation support.
Add vertical direction navigation.
This is needed if screen in landscape mode

Change-Id: I68e4fd262575e0f4741a9d3f3beaad99a9ee163c
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1248736
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-28 21:17:11 -05:00
Kenny Kessler
6aa80ba895 power: qpnp-smbcharger-mmi: Disable JEITA
Ensure the the SW JEITA is disabled in QCOM driver.

Also forcibly Disable the HW JEITA since the QCOM driver
will enable it when the SW JEITA is disabled.  The MMI
State Machine in this driver is superior.

Change-Id: Idfe42c08f720990a5edfd6cfb01491a89f5cf524
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1261048
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-26 11:16:08 -05:00
Kenny Kessler
bc05412b1f muc_uart: Add VBUS Flag
Check the VOLTAGE_NOW property and if it is above 2 V
send back to MUC that VBUS is present.  This is needed
mostly for Factory test but might come in hPerry later on.

Change-Id: I16688520611e6087fb04a7cf8006db71496ec519
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1259770
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-25 10:38:28 -05:00
haojl2
f55a8f0f0b himax_mmi: reset IC if get ESD event
If ESD occor, touch IC crashed.
Reset IC by trigger HW reset pin

Change-Id: I16e834d8f45e460405468dfe9f4d50cfb40f07e8
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1260812
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-25 06:29:48 -05:00
Weilong Wu
20aa119f30 dlkm: change the st21nfc driver path
Move st21nfc driver to directory st21nfc.
Suggest to creat independent directory for each nfc vendor.

Change-Id: I416aca0662189f3b045b1d28ad80df53ce6beb7b
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1260591
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2018-10-24 22:03:27 -05:00
Weilong Wu
dbc30d7d48 dlkm: optimize st21nfc driver
1. Optional clk_req gpio requeset.
2. Allocate data buffer from Heap since i2c_transfer() is non-blocking call.

Change-Id: Ibcd10fdbce7ee8f622ac39887ce1989dcdd490ba
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1255460
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-10-24 22:03:03 -05:00
lixp5
779a25c130 Add interface for AMPS connection test
This is for factory test.
Set gpio 35,36,136 as output.

Change-Id: Iacdcaf62fa75f46e8aeebff26d152ae9c6c87b95
Reviewed-on: https://gerrit.mot.com/1258547
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Moon Do Seo <moon@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-24 20:26:31 -05:00
Li Xu
b33af28110 ASoC: cs35l41: Use polling for mail box
Use polling instead of interrupt for DSP mail box
acknowledgement.

With interrupt method, the amount of time for mail box
acknowledgement can vary, and sometimes long.

This is because interrupt handler reads all interrupt
status registers and masks, which can take long time,
especially on slow I2C bus.

Use polling to directly check for DSP mail box
acknowledgement reduces variability in amount of time
needed, because only 1 register is read.

Cirrus-JIRA-fixed: MMI-912
Change-Id: I21a223bbfdccb3593c61c7d04ae8355f2734c7a9
Signed-off-by: Li Xu <li-xu@outlook.com>
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1259695
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Seungyoon Lee <yoon@motorola.com>
Submit-Approved: Jira Key
2018-10-23 14:49:44 -05:00
caoyi1
5747e2389d ABOV sar sensor optimize debug log
ABOV sar sensor:
 optimize the debug log

Change-Id: Ib8bbdae62483f58915dcb4c8b9839c2942a0c1df
Signed-off-by: caoyi1 <caoyi1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1259280
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-10-23 01:36:32 -05:00
Yoon (Seungyoon) Lee
338a4245bf modules: cspl: move usecase switch checks to DSP
There is a corner case in separate earpiece and speaker system, where
speaker path isn't open (so DSP isn't enabled yet) when usecase switches
but AP consumes the event and doesn't send again to DSP when DSP enabled.
Send usecase switches to DSP everytime, let it decide to switch or ignore.

Change-Id: I014d4d607f5a134970c3f8e43d41c296b62b3a46
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1259187
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Seungyoon Lee <yoon@motorola.com>
Submit-Approved: Jira Key
2018-10-22 20:26:46 -05:00
Kenny Kessler
5bbd7c61d0 power: qpnp-smbcharger-mmi: Fix Dual SOC Report
The Dual battery design could lead to a filaure where it drops
the SOC to a value of 0.  This happens on error but also the
math could have been wrong.  Only allow a change in SOC if it
is within +/-2% of the current reported SOC.

Also still only update if it changes and bound check 0 and 100
as min and max.

Change-Id: Ie049f9edcf62371b75f1e6def29b1742a9798a88
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1258474
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-19 16:13:34 -05:00
Kenny Kessler
fa24cffe57 power: qpnp-smbcharger-mmi: Add Dual Battery SM
Add a State Machine for Charging a Dual Parallel battery
device.  This State Machine requires independent battery
measurements with a singular charge controller.

Any other type of design might require a different SM.

Change-Id: Idd8fabc7b9af3ad853df8f7280d7e393787c1075
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1258322
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-19 14:43:10 -05:00
Kenny Kessler
54d94ccc5d power: max170xx: Fix CGAIN Conversion
If CGAIN is set to Max then the Sense Resistnace should
be doubled to account for 200% gain.

This will make hte reported Current Now data to be valid.

Change-Id: Iafad42d0470dd71ebfc16fb5135ff415f9d1f2b3
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1256824
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-19 14:43:07 -05:00
Konstantin Makariev
123b556efa synaptics_mmi: create power on sysfs entry first
With introduction DRM support, we need to make touch firmware
upgrade script waiting until driver becomes ready to perform
an upgrade. This change creates power on sysfs entry in the
driver's probe to indicate that firmware upgrade has to wait
until touch IC gets ready after it receives DRM framework
notification.

Change-Id: Ib5d8ed5f638890498fc4414c081dfaaa234063d7
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1257955
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-10-19 11:07:46 -05:00
Paul Handrigan
b2037ea4b9 ASoC: cs35l41: Add mute for power up and power down
Unmute the device after it is powered up and mute it
just before power down.

Mot-CRs-fixed: (CR)

Change-Id: I85a7e17c48181b708e1ad68025fab31c7ca16f2b
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1258201
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-10-19 05:48:10 -05:00
chenyb1
f11a9d3019 TS: NOVATECK charger detection
Get feature enable info "novatek,usb_charger" from dts.
Registe power supply notify to detect the usb plug/unplug event.
Set appropriate config with the power supply event

Change-Id: Ice136f21475c59be59157c9da1b074e05d2bd1ac
Reviewed-on: https://gerrit.mot.com/1253918
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-10-18 20:33:54 -05:00
Yoon (Seungyoon) Lee
3ce95b718f Revert "ASoC: wm_adsp: Add support for old DTS config"
We have River and Olson only in DLKM kernel so far and this is good
timing to transit to use new 'cirrus' node instead of old 'wlf' node
since we don't have lots of old products dt in this kernel branch yet.

(This reverts commit 05d11bc217e6a46f67be0c8d9c635feba9a45d78.)

Mot-CR-fixed: (CR)
Change-Id: Ideed9b83314f06fb0058af7d2cb311b1347dec75
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1255127
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Patrick Gries <patgries@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2018-10-15 14:34:21 -05:00
Konstantin Makariev
d42550f3bd synaptics_mmi: protect drm api with config option
Newly added DRM support utilizes API only available when CONFIG_DRM
declared. This change ensures driver can still be used with FB framework
and fixes some synchronisation issues found in the originl DRM support
implementation

Change-Id: Ic314c62e0f8693348b5ea631bc30905217810d77
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1243348
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-10-15 13:38:49 -05:00
Ravi Vembu
85680c7e90 extcon: madera: Make hsdet gpios writeable
export gpios as writeable for Factory tests to work

Change-Id: I5fdcc9090a0c1829ac9bb407f17115c2fa969a97
Signed-off-by: Ravi Vembu <raviv@motorola.com>


Mot-CRs-Fixed: (CR)
Change-Id: I5fdcc9090a0c1829ac9bb407f17115c2fa969a97
Reviewed-on: https://gerrit.mot.com/1255841
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2018-10-15 11:47:01 -05:00
Kenny Kessler
1727ea0026 power: qpnp-smbcharger-mmi: Block SM in Factory
No need to run SM in Factory mode.

Check for factory mode and skip the Charge SM if true.

Change-Id: I62a32a7dbe45cf0bdc6695e5c98e33852b97f9e8
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1255777
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-15 10:41:36 -05:00