bangkok:remove focaltech fod log,because too many logs in
interrupts can cause system crash
Change-Id: Ia7444d41a1e60398b5524938299e457b8f96527d
Reviewed-on: https://gerrit.mot.com/2574799
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Dual battery thermal mitigation, Add equal ratio thermal level control
Define THERMAL_RATIO_CONTRO to enable this feature.
It will ignore thermal-mitigation-level and force to rewite new thermal
level through calculating the (batt_fcc_ma/thermal-ratio) of parnter
battery
Change-Id: Ib44eccfe540b6d8d705bb53fb5001207288a7b85
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2567981
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
In order to debug the problem of fuel gauge soc jumping,
add some debug logs,
Change-Id: I5b6adf50d496126059366a0c322915a0f533acd4
Reviewed-on: https://gerrit.mot.com/2567828
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Before communicate with touch IC after receive gesture irq,need wait pm
resume success or read gesture data will fail.
Change-Id: I55cfdc41244e1b9f159770046be64bed337f0d18
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2558492
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
some focaltech tp no touch : modify timing of iovcc and
vdd,first vdd,the second is iovcc.and issue is already fixed.
Change-Id: I8170cb474d84c50ab068fecfda88679419710f5e
Reviewed-on: https://gerrit.mot.com/2554227
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Added documentation for led trigger support with sol tri led
wrt battery status.
This will add trigger driver on top of QTI Tri-led driver
Change-Id: I050a9f42f9b2b3af156d8c86cca28a0151385b74
Signed-off-by: Srihari Sathyanarayana <sriharis@motorola.com>
Change-Id: I050a9f42f9b2b3af156d8c86cca28a0151385b74
Reviewed-on: https://gerrit.mot.com/2523300
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Perry White <awhite6@motorola.com>
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Mahesh Med(CR) <maheshmk@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
The unit of thermal_fcc_ua is ua, but the
unit of target_fcc is ma.
Change-Id: Ic7065344f417adbd840efe473005861a69428e70
Reviewed-on: https://gerrit.mot.com/2536876
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
1. Disable charger only when charger is offline and vbus is bad.
2. Get charger status from wireless charger if wireless charger present.
3. Get charger ibus limit from charger current_max property
indicating the AICL value for BC1.2 charger.
Change-Id: I0ff51a15d6faf4f545fcda200ae531240e531e04
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2536492
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
user ibat set failed in factory test
Change-Id: I395103e82dd60b5ed5f55a7953222d809fb1b700
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2534444
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
sc760x:
If there is no user configuration, set the value of thermal limit.
Change-Id: I0866031ab7f33445846d868d2fa4202c51812185
Reviewed-on: https://gerrit.mot.com/2532545
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Upgrade Egis SDK to v1.0.10 on Pnangn
Add necessary feature in driver to support v1.0.10
Change-Id: Ifcbbb5a3c845f65e1fb2449527d678c564bbdbca
Reviewed-on: https://gerrit.mot.com/2530517
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
On closed Oberon unit we saw SOL led not blinking due to sync issue of
led_set_brightness with blink set.
Add led_set_brightness_sync which is a blocking call till blink set.
This will enable setting blink smoothly without conflict with brigtness.
The patch will also use flush_work before setting brightness so no more
delay required before new brigtness setting.
Change-Id: I840cb3398b40725bd928816f4871cbdcba6759a1
Signed-off-by: Srihari Sathyanarayana <sriharis@motorola.com>
Reviewed-on: https://gerrit.mot.com/2526344
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Added module_param support to led-trig.ko module to set during
init. This can be set to enable tri-led path in driver.
multi_led_enable = 0 : This is default setting only one led module will
be controlled.
multi_led_enable = 1 : Enable tri-led calls so individual brightness or
blink can be set for all (R,G,B) leds.
Change-Id: I552fa0cd707f0a9de45d9f3392cb3fb32ea33a17
Signed-off-by: maheshmk <maheshmk@motorola.com>
Change-Id: I552fa0cd707f0a9de45d9f3392cb3fb32ea33a17
Reviewed-on: https://gerrit.mot.com/2505770
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Perry White <awhite6@motorola.com>
Submit-Approved: Jira Key
Handle power-supply states for Charging/Discharging
Set blink/solid Led settings as below
LED Brighness depend on Device Charging State
----------------------------------------------
-- Full while Device Charging
-- Half Brighness while not Charging
Led Functional Mode Depend on the Battery capacity
--------------------------------------------------
Battery Level < LOW_CAP_THRESHOLD_DEFAULT
-- Fast Blink "charging_low" led node(s)
LOW_CAP_THRESHOLD_DEFAULT < Battery Level < BATT_CAP_THRESHOLD_HIGH
-- Slow Blink "charging" led node(s) (If device charging)
-- Enable Solid 50% brightness for "charging" led node(s) (If device not charging)
BATT_CAP_THRESHOLD_HIGH < Battery Level < BATT_CAP_THRESHOLD_FULL
-- Slow Blink "charging_full" led node(s) (If device charging)
-- Enable Solid 50% brightness for "charging_full" led node(s) (If device not charging)
Battery Level == BATT_CAP_THRESHOLD_FULL
-- Enable Solid 100% brightness for "charging_full" led node(s)
Change-Id: I0abf35ea5ee51ade808ac196d8e56d7dcac33d9c
Signed-off-by: Srihari Sathyanarayana <sriharis@motorola.com>
Signed-off-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-on: https://gerrit.mot.com/2516362
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Perry White <awhite6@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Transfer the target fcc value of the flip battery to the main battery
through glink for power dynamic configuration.
Change-Id: I3b8b2029e5f5cdf1b7ccc49fd7ce32a63b94c957
Reviewed-on: https://gerrit.mot.com/2520452
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
current between -10~10mA read from fg when charger present is invalid,
change batt status to not chargering
Change-Id: Idc1f1e5ed148ea49aa9a539e4014ff4146519460
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2516321
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
Support input voltage limit for wireless charger separately so
as to load different input voltage limit for wired and wireless
charger input.
Change-Id: Ifab8e2ee36c0f549be4fb348396e4fadb6e650d6
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2516665
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Problem: aging test, touch dislocation.
Cause: during the boot process, when the rst pin is pulled, the int pin will also be pulled down, and the system respond
to the interrupt in advance, but at this time there is no firmware in the IC, which will trigger esd recovery to reload
the firmware. The resolution information is stored in the firmware, but the firmware path has not been assigned at this time,
and the firmware cannot be applied, resulting in the upgrade failure. If the resolution cannot be obtained, the default
resolution will be used, which will lead to incorrect resolution setting.
Solution: during the boot process, only after the firmware upgrade successfully, system can response to interrupts.
Change-Id: I0ad032de0b96ed86177a9aa4a16f9aa87613042d
Reviewed-on: https://gerrit.mot.com/2514709
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key