there is obvious noise can be heared when heaset plug in.
if we enable micbias when the headset has not been inserted
totally. the noise can be transfered to HPHL/HPHR
Propagated from: (CR)
Change-Id: I9afc1cb0c7a5bad1381ac448774131d4b56a645c
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1216722
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Since touch reset will be controlled by display on ocean,
but still need to send sleep command, so add a property
for this condition.
Change-Id: Ife4cf51e8162e4107f34c4b1e6879fe305cceab6
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1215887
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Yongbin Chen <chenyb1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Comparison of pdata value to determine
IRQ polarity would not work because
pdata value contains valid pdata flag
Change-Id: I2f69f6839e3290f07a77c970322d7bc962848360
Signed-off-by: David Rhodes <david.rhodes@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-Fixed:(CR)
Change-Id: I2f69f6839e3290f07a77c970322d7bc962848360
Reviewed-on: https://gerrit.mot.com/1216569
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
we can update dsp input to RX1 or RX2 in run time
Change-Id: I6aa00f76684be7f60371526eab006c25a4e47b28
Reviewed-on: https://gerrit.mot.com/1214846
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1216060
Pass in guid and build version as parameters.
Get the bootmode from mmi_info instead of a
parameter.
Handle the MUC_FW_VERSION message. Print
out the muc version when this message is
received.
Also add a retry limit of 10 per message.
This should help prevent log spam when
something goes terribly wrong.
Change-Id: I73c002d8056bd8c3b355ff159e546f42698e1bf2
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1215726
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
There is no plan of record to use OSPL on any DLKM kernel.
This reverts commit 42547f66e2c68a6479623dd1f55c82b9d9785b41.
This reverts commit c442ee33c2d29133994516500acdd4f64ed74118.
squash Revert "(CR): ospl: fix build error of header files absence"
squash Revert "(CR): propagate ospl module from bomr1-8998 kernel branch"
Change-Id: Ie20ca57c5583efb95a5332be5a0204b22c1e4ec8
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1203864
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Wake gpio has a pull-up resistor. Change it to
active low, and set to input during sleep.
Also rework the sleep/wake logic. ACK/NACK is no
longer sent on sleep requests. Line is pulled for
an ACK and NACK is changed to REJECT.
Change-Id: I9f2f9784e5f71ba1acea2a149519ddca788aa430
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1211698
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
DSI framework can send notifications from multiple channels.
Add device tree option to bind suspend/resume notifier to certain
DSI channel. This change applies to both: FB and DRM
Change-Id: Ie305914b8409415f6cf43182892fb52cfc524d3a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1214307
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
If IC resume failed, reset IC and try to resume again.
Change-Id: I36dfcde496c4123f23742c9f0f73ce3c5d3bea6c
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1214015
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Update to trigger usb driver on attach. This will add
a new "phone" power supply so that the usb driver or
any other driver can register against the "phone"
power supply and get notified when it changes state.
POWER_SUPPLY_PROP_PRESENT will be used to communicate
the attach status.
Change-Id: I150740f1be0ddc9ba44c6bc036f87796686ee9c5
Reviewed-on: https://gerrit.mot.com/1210669
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
If early suspend is called, no need to do resume work if resume still
not finish.
Change-Id: If0798a1c023bc8a0990a47779346050ac6138cdc
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1213271
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
After early suspend, LCD will turnoff power.
If irq still enabled, there will be lots of I2C communication error.
Change-Id: Icab52436d25f7f7ceeaace77286b2bbfa407e7a5
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1213096
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Update the machine name property in the unit info
sub module - remove the machine name from 32
bit implementations.
Change-Id: Iaf31d8d9c3861fd652fb2226cc89a239da626968
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1210671
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Yue Sun <sunyue5@lenovo.com>
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Nova TP reset pin is connected to VDDI in TP module.
So this pin should set to input float pin if nova IC is used.
Change-Id: Id8e71487603504661a8a87e0ea066636e99f2f17
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1210685
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Add a macro to select the destination path for copying ko files.
Change-Id: Ibc353474064e25541d6cfe3c8e5a846740e406a4
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1210322
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
If first MICD key range max is configured too high then
impedence will fall into the first MICD range and MICBIAS
will not be changed for polarity check.
Before skipping the polarity change, make sure the first range max
is low enough to put a wrong polarity headset in the second range.
Change-Id: I42e56172ec6d49ec66290a8ad1e531014908a8d8
Signed-off-by: Vlad Karpovich <Vlad.Karpovich@motorola.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-Fixed: (CR)
Change-Id: Ic8db2e8da71b98b3b1da09d515ad0a25fa08df16
Reviewed-on: https://gerrit.mot.com/1209640
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Remove the stack pointer reference from the stackframe
struct as it has been removed from the kernel.
Change-Id: Ib0c55d1e84854e7a61e70f347b8d4171c61ca130
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1209023
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
Add hwid to muc_uart bootinfo. Export the hwrev
function from the bootinfo driver to make this
information available.
Also update when bootinfo is sent, it may be
requested by the muc. With this, a change has
been made to cover the whole request processing
by a mutex to try to prevent sending a message
from the queue when the muc is expecting a
response instead.
Change-Id: I5087b69c9fd89fac5fcaba16f095c2c8e0c4f8ad
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1209493
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
Add the support to run factory interfaces and other parts of the
driver based on PMIC version. This will allow this module to be
used in a cross platform fashion.
Change-Id: I0544fd0cbdd4f1ccdcf2596356d36b88d8fc00fd
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1208956
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Reviewed-by: Curtis Porter <porterc@motorola.com>
Submit-Approved: Jira Key
To simplify the vibrating for both timed_output and leds, make
vibrator_enable() and aw869x_activate_store() call the same function
aw869x_vibrate().
Change-Id: Ideea1302d041d61c8a0a9c78586c38801077ea9b
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1209308
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Update firmware when version of bin and touch module is not equal
in order to follow moto tradition, also can do flexible firmware update.
Change-Id: I448fc6b82785731046ec2ea4fcdab4be0a715e26
Signed-off-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-on: https://gerrit.mot.com/1206766
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Set 12K for rtp mode playing and 48K for ram playing
Change-Id: I1485589cddf2f9dd2a220017b220cf214ed18d82
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1208742
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key