Unprotected floating point operation in kernel might corrupt
NEON register and cause many random native crashes.
Add kernel_neon_begin and kenrel_neon_end to protect floating
point operation in wt6670f module.
Change-Id: I2a3a4a3ac1ce78513211ca669eb25c808653f0cc
Reviewed-on: https://gerrit.mot.com/2251071
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
set reset high
as vendor
Change-Id: I8c526e740f2fadaeca9784a2866bc58ad7a1cc99
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2251003
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
no charger type detect after power on
schedule charger type detect in rt9471_probe()
Change-Id: I4d0c01fd3c68c0716baadf8563555a172e945bb9
Signed-off-by: longc102 <longc102@motorola.com>
Reviewed-on: https://gerrit.mot.com/2249214
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qiong Xie <xieq2@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Different project use different wireless chip,
Need to define new wireless dump info struct,
Add WIRELESS_CPS4035B macro definition.
Update new wireless dump info base on WIRELESS_CPS4035B
Change-Id: Iadb02771c420540c5ac119a9c32fe9adcbb25536
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2248230
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
details;
No vibration when media controls working
Change-Id: Id8820adc0d0eb5c8dfc20a27df87a1410e307278
Signed-off-by: kankan5 <kankan5@motorola.com>
Reviewed-on: https://gerrit.mot.com/2246470
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenghai Pan <panzh2@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
CQA test fail at battery info
if ic status is ready, charge status should be not charging
Change-Id: Ifd83cd1dc2c122a70f1b90e275405e3448986cf7
Signed-off-by: longc102 <longc102@motorola.com>
Reviewed-on: https://gerrit.mot.com/2247969
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qiong Xie <xieq2@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
In order to improve the accuracy of load switch controlling policy
use battery OCV instead of vbat to calculate the delta battery voltage
based on vbat, current and ESR.
Add panic debounce when decide to turn off load switch for high
battery voltage diff between flip and main battery.
Change-Id: Ib9b374952a8f6400e008953b123b4878b17fbe4f
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2247225
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Support init bm ulog to print the bm ulog at init
stage to dump adsp init log at bm ulog driver probe.
The adsp init log will help to address the issue during
adsp module init stage.
Change-Id: I4c1a79da57f73463d885ff25466444c73036f43b
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2246243
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
FOD:
Do not disable Zero Tap when FOD is not enabled.
Change-Id: Ica9d40e412ecdc00df44d0ed09103b7cda997092
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2246137
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
Add factory kill time debounce support to debounce the factory
kill event for charger/usb online shake during boot in
factory mode.
Change-Id: I1ca70dbfebd1fa8555ca36dda2b7b6ab2dbc8a2d
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2242975
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
some api can't be exported, so remove it or use another
api instead of it for user version build error.
Change-Id: I79a884fe47437bf3102c3448fa9a1560ba3136dd
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2241309
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Driver will log the last touch down event timestamp and expose it via
sysfs. This feature utilized by sensors to mitigate false detection of
back tap gestures.
Change-Id: I2907acdf1a560a6ca923b9fc20243fef642d7b90
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2241177
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Adding mmi_info symbol table for CPS4019 to let
it could use the interface in mmi_boot_info
Change-Id: I4811b2a22f5fc5cc90e5427c387109831fffffed
Reviewed-on: https://gerrit.mot.com/2240634
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
In the driver of CPS4019, we need to use some interfaces in
mmi_charger(for example: mmi_is_factory_mode). So we should
add relative dependence.
Change-Id: I06507728f8f15f0ddcc08ad855127e2167014b67
Reviewed-on: https://gerrit.mot.com/2239738
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Adding FW upgrade logic. Using default FW in commit:
https://gerrit.mot.com/#/c/2236788/
And just as upgrade logic of bootloader, we use dts
configuration of "wls_fw_name" to distinguish original
method and ours.
Be aware that it just works in factory mode.
Change-Id: Ib3d5d6b3aaf660ef5d2ec538d96aca70a6040c38
Reviewed-on: https://gerrit.mot.com/2239810
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Just as the commit of https://gerrit.mot.com/#/c/2239737/
CPS4019 is just powered by AC/VOUT. So if VBUS is low,
CPS4019 do not have power source. We have to use OTG
bootst from charger IC to get the power. So we should add
power boost trigger operation before FW checking logic.
Change-Id: I12f1641d2462ae821ffe07ae121e35cae3673b9c
Reviewed-on: https://gerrit.mot.com/2239809
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
For our designation, cps4019's bootloader FW is a raw data
in head file(https://gerrit.mot.com/#/c/2239690/). So we use
a dts configuration(use_bl_in_h) to distinguish the original
method(using FW file) and ours. If this dts property is defined,
we will use tha raw data in header file.
Change-Id: Ibd08fff811bb8f3eb787984e85b188db1f1c4908
Reviewed-on: https://gerrit.mot.com/2239808
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
For CPS4019 is just powered by AC/VOUT. So if VBUS is low,
CPS4019 do not have power source. We have to use OTG
bootst from charger IC to get the power. So we should add
VBUS power detection and boost trigger operations.
Change-Id: I7630db66f517c17603d4f1b598802a179f63af9a
Reviewed-on: https://gerrit.mot.com/2239737
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
For register map of CPS4019, FW_MAJOR_VER is from 0x2,
and FW_MINOR_VER is from 0x4. So we should fix the
configuration errors.
Change-Id: I9080c5f4d4a846d0947c14f0f5f36d6e939ad531
Reviewed-on: https://gerrit.mot.com/2239690
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Update bq27426 fg profile for li and oneli products according
to the TI initial profile report.
Change-Id: If56c0f5ebe5de69b15cf110ea500ef9175823224
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2237962
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
backlight/lm3697
add new current mode for HBM to support more panel
Change-Id: I4c99cc98b93979dc5df0989ddc0b0cb87af0e62a
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2238361
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
For WLS gpio control, if GPIO is requested failed. We should block
the driver. Or if the driver use the gpio that is requested failed, there
will be some unexpected problems.
Change-Id: I8460d64032d673e5fcd32acd135e1f7b65f677d3
Reviewed-on: https://gerrit.mot.com/2239374
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
Device name of egistec FPS doens't match with its kl file name
Modify device name same as kl name
Change-Id: Ibb37a09048eca5923cc8bff1ca9b8be56b26771b
Reviewed-on: https://gerrit.mot.com/2239306
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
In OTG mode, the output of VOUT from WLS should be disabled.
So we use gpio to control WLS through mux. When VBUS boost starts, disabling
WLS VOUT. And resuming it after VBUS boost stops.
This change is for BQ2589x.
Change-Id: Id6a0d81a9e50ba63c1dd89cce3cd1523d2a21af9
Reviewed-on: https://gerrit.mot.com/2239292
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
In OTG mode, the output of VOUT from WLS should be disabled.
So we use gpio to control WLS through mux. When VBUS boost starts, disabling
WLS VOUT. And resuming it after VBUS boost stops.
This change is for SGM4154x.
Change-Id: I6749f58c7775d9cf8b351b63464a5dd42cf2cf8b
Reviewed-on: https://gerrit.mot.com/2239293
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Ensure get panel supplier name before access module execting probe,so test
limit file can be found correctly.
Change-Id: Ib7af4867dbaefbef45d2662dd321824ebccaea4d
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2237330
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
When on panel off state,enable or disable gesture mode will cause
suspend and resume error,recording touch IC power state to correct.
Change-Id: I71283abc65386b3a448782c1d122bcbb33c584cd
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2236143
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Some device attributes do not have the interface of store. If we reguard
it as permission writable. We would get following errors:
[ 22.517191] Attribute vbus: write permission without 'store'
[ 22.522882] WARNING: CPU: 6 PID: 375 at drivers/base/core.c:2283 device_create_file+0x78/0x9c
[[ 22.619397] Hardware name: miami (DT)
[ 22.623067] pstate: 60400005 (nZCv daif +PAN -UAO)
[ 22.627864] pc : device_create_file+0x78/0x9c
[ 22.632219] lr : device_create_file+0x78/0x9c
Change-Id: I7497b33aff38cc122825b44623a03bd2765b3a83
Reviewed-on: https://gerrit.mot.com/2237072
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Add a new configurable LED trigger that alters the LED blink
pattern based on power supply status.
By default:
Device on or fully charged | LED is solid on
Device is charging | LED blinks 700ms on/700ms off
Device battery is 15% or lower | LED blinks 3800ms on/200ms off
Change-Id: I5d0df2a7cb535679f8837542fb651f73db4924af
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2192503
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Drew Abbott <drewa@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Add "kalama" to use a new mechansim for building external modules.
Change-Id: Iae3650749c6c8ca3ee6920e194284388012a74ac
Reviewed-on: https://gerrit.mot.com/2234561
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Yinjun Chen <a7301c@motorola.com>
Update variable but not notify current change
when changed which cost more power consumption.
Change-Id: Id7b20f4844a754e97e5c42dc1c1f68235de796bd
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2233377
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key