Make the log info can be configable and printf the info which vendor needed
Change-Id: I1df779d7bd2092c441644fc868ceb7bc0e67dd60
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1241013
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
MMI version of qpnp-power-on that uses KPDPWR Bark.
Works with qpnp-power-on so there is no need to disable
its config in the base kernel.
Change-Id: Ied2d04db1ec1687a5cf37be7ef908ad1382d14d9
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1240652
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dong-Hua Yan <a18317@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
This change adds support for DRM signaling of touch IC probe and
suspend/resume
Change-Id: I8a237216c492ed79b259314b064f9bb4281272e1
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1239530
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
DRM not sending unblank notification when splash screen enabled.
This commit makes delays IC init until panel status reported as
enabled. This behavior is controlled by device tree option
synaptics,splash-screen-mode
Change-Id: I70dc846ee2914fdb592feddf27c3ad313f2955aa
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1229386
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
This commit makes necessary changes to allow successfully
insmod/rmmod raydium_mmi DLKM. Includes support for in-cell mode
Change-Id: I2e34c4dd87f38975b999e0cc65287b57270f1b5f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1232896
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
This is a port of following cs35l36 change:
From: Paul Handrigan <Paul.Handrigan@cirrus.com>
Date: Mon, 12 Feb 2018 13:51:32 -0600
Subject: [PATCH] ASoC: cs35l36: Change master clock rate if using SCLK
If the device is using SCLK for the master clock, it is
possible for the SCLK rate to change if the master changes
the format, sample rate, and number of channels. This patch
will calculate the from those parameters if using SCLK.
Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I6815a075884ded0ebd352fed14259b575ade51ef
Signed-off-by: Vlad Karpovich <Vlad.Karpovich@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1220283
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Add boost converter control to either enable it or
set it in bypass mode.
Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I3736b1d68bdd21421e23f6a790f0eeae99f2e3c7
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238851
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Change the OTP trim registers to volatile so they the
driver will always read the registers from the device.
Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: If7eae9910483ac95030ddd98ceb35423c8babfaf
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238850
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Change the devid register to be volatile since cannot be
read from cache.
Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: Id8c15245ef71df4f0e12afd9997babe92813aa1a
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238849
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
* Fix register defaults that changed with chip revision B0.
* regmap_register_patch() has a bug which will cause register writes
to be delivered to the chip, but NOT the regcache. This can cause the
regcache to become out of sync with the actual state of the registers.
Changed the usage of this function to regmap_multi_reg_write() to
avoid this problem.
SQA-860
Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I512cffd656fdf942b7fcafc2a0473a7449cf2547
Signed-off-by: Adam Brickman <Adam.Brickman@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238848
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
SLTApproved: Slta Waiver
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Remove CSPL_COMMAND from header file,
because CSPL_COMMAND should not be called from driver.
SQA-1029
Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I5e2d386aac05cd6a3765c3849239513306a6d9a9
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238846
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Use old device tree configuration for DSP if wlf,wmfw-file tag
is present.
Change-Id: I1168edd2ea66eadcdef013fb01b40810bb1860fa
Signed-off-by: Prat(CR) Kamdar <djc637@motorola.com>
Reviewed-on: https://gerrit.mot.com/1238183
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
- Prevent potential risk that the touch has been updated
successful but display initial code isn't written fully which
will cause display can't work on ft8006u.
Change-Id: I0dd8232a79fb1ced88deb748f656a195d97908ac
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1232123
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
RTP data would overflow when being changed according to battery voltage,
so disable this feature.
Change-Id: I457b9ae0b25fa99acc1b2ba05c675d68167d5afb
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1237566
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
utags needs to be read-write in tcmd daemon whose group id is
system,many operation need group write permission l(CR) root user.
1.tcmd needs to add new node by lock and new operation
2.tcmd needs to access node /proc/config/all/new etc
Change-Id: I6ba335a9490e5cba8ead04a8144b9bdbca8ebba2
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1236562
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Tao Sun <suntao2@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
Check the status field on the battery power supply
and then report if charging is occurring.
Change-Id: Iae8a8270264a2ca7d18ea125f95be56c53042554
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1235231
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
tcmd daemon needs to read and write some node with
system group permission:
1. read reload status
2. write ascii node
subtask:(CR)
Change-Id: Ie6740e1aab5292fe6984f7f12656aeac6d70cde4
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1235016
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haichao Li <liuhc3@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
LCD driver will turn off VDD power after EARLY_EVENT_BLANK event sent.
So TP driver need suspend IC when got this event.
Otherwise, I2C transfer timeout will happen.
Change-Id: I181377fc88a00ffed2e7fefd305ff2e2e4e04ade
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1223414
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
- the current driver only disable system irq,
and not disable hardware irq,maybe cause irq imbalances;
- update reset method.
Change-Id: I14bea213005916ae858f492f6893a08c2d821fd3
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1233351
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Nan Wu <wunan3@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Mot changes ported from 8998 Android O:
(CR): 8998: ToF sensor VL53L1 bring up
(CR): change netlink protocol ID
(CR): moto change for TOF_INT
(CR): update pinctl and regulator for power
(CR): 8998: To make laser sensor work on Nash DVT1B
(CR): moto changes on 7.2.1
(CR): implement sar function
(CR): turn off l22 when sensor is off
(CR): Apply moto changes based on new ST driver 8.0.0_b4.1.0_1268
(CR): adjust xtalk value per ST's request
(CR): fix laser autonomous mode issue
KSWN-43010: fix black target at 0mm range issue
(CR): [CTS] Nash ATT: 4 failures on Module CtsSensorTestCases
(CR): unlock ipp_mutex in ipp_in_process to avoid deadlock.
(CR): Set timing budget for SAR mode
(CR): Add default calibration
Change-Id: Ieebb105bf64706d3ef6df9141a0ba8d1989290ac
Reviewed-on: https://gerrit.mot.com/1233052
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Sumit Jamadar <xkbr38@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
VL53L1 test driver was added to fix TCMD compilation
errors. ST shared official Maintenance release #2
driver, so test driver not needed anymore.
Olson is the first program to use ToF as DLKM, so it
will not impact any NPI/legacy programs in 'bo' branch.
Change-Id: Idf4add39ca9fcf77b27296e0ca6a82ec40c08a59
Reviewed-on: https://gerrit.mot.com/1233050
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sumit Jamadar <xkbr38@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
the current driver only disable system irq,
and not disable hardware irq,maybe cause irq imbalances.
Change-Id: I95bbad30e4940fb9665f8c02de8e7a75a9f54191
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1233341
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Cirrus madera codecs don't have a mechanism to report QDSP/LPASS SSR
to AP over soundcard status change. Add logic to reflect LPASS status
to soundcard, so AudioHAL can monitor and trigger necessary code on SSR.
Change-Id: I93de60b97b8baea0dc6b7cea0fee1f7a4f9219d1
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1219154
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
If the system has multiple Fuel Gauges and if 2 are defined
with names in the DT then use them to merge a Capacity
so that the combined percentage is reported to upper
layers.
Change-Id: Ic349cd72d088eef3da7a52e847f72a42c8059d33
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1231212
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
The USB Input voltage should be 5V to 9 V.
Change-Id: I2cd1976feb4c80ff5f02fa232eec3da0ff65cdac
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1231211
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key