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
change the adc value unit for compatible with policy
and add slave iio in policy
Change-Id: I8e0ed26ec6be3589c37f9d1c3930ef8190f749ef
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2232163
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
reduce bc1.2 get result time
if bc1.2 ready done, do not wait an extra 100ms
Change-Id: I1daf527423ee893a32986e277a1b99c23278a45d
Signed-off-by: longc102 <longc102@motorola.com>
Reviewed-on: https://gerrit.mot.com/2231765
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
The cps4019 wait cmd done time out when test app crc
because the wait_time_out is too short.
Add log print firmware length.
Change-Id: Iaf4bcc7689c89de19d196c017fdde91771eba25e
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2229072
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
The cps4019 I2C frame format use 32bit address in
firmware download mode.So we need add I2C 32bits address
read and write functions and use them in firmware download.
Modify some code formatting and add some logs.
Change-Id: If5c7d1747e260a1c3bee69f6fcd31ee96f5926fb
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2224955
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Modify:
1.add rawdata collection function
2.update interrupt data collection process
3.add ioctl debugging equipment interface
4.revice the production and testing process
Change-Id: Id4130107cdb085aaf5981685766f37804ac6ddc4
Reviewed-on: https://gerrit.mot.com/2230586
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
sm5350 exp mode backlight current with the different curve to
other chips, add backlight current align configuration for
the same current at the same hal level, to support the same
brightness at the same hal level.
sm5350 uses same exponential curve as lm3697, so pick from:
https://gerrit.mot.com/#/c/2045773/
Change-Id: Ie5adbc50298e2670d03ea9d491726f68c1fd3300
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2230345
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Notify mmi_battery change when combo current change so that the
battery current status will be updated when combo current change.
Change-Id: Iddcf0d8fc7f9a1a44b6c042f1d72ae337931f37c
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2226482
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key