This commit is to clean up debug prints and make the heartbeat
delay only applicable when in factory mode.
Change-Id: I53e476954226656bdab0c952bd932dea6ae2f953
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535979
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Update charger driver to also delay heartbeat caused by
psy notifier call. Since this is the only other place
that heartbeat can first be called from. We only want to
apply this delay to the first time so we use a static
variable flag. Also add some extra debug just encase.
Change-Id: I771e1058e36906dba9d41df711fe2da25f821f4c
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535557
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Try to delay first heartbeat 10 second to account for factory transient
voltages. If there is a reverse boost that the heartbeat catches it will
suspend the usb which can triger the factory kill if the vbus voltage goes
below 2V. If the voltage then comes back and doesn't decay while shutting down
it will get stuck during shutdown.
Change-Id: I688d6ef211be2b56d0f398075011b7528d7f0e58
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535022
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
- When the driver open HX_FIX_TOUCH_INFO, the driver does not
fix the expected value, so improve the logic of this part.
- Delete unnecessary logs.
Change-Id: I1b51a70a1e2aaebeb20e91de14a2c60268bbcd2c
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536264
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Add option to set usb/flip recal via device.mk file instead
of calling out the product name.
Change-Id: I591933fbb6afb44ed65a9c15633b6aba96c382ca
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535142
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
- Add support for hx83112f based on himax_v2.
- This is bringup change for himax_v2 and fixed some existing bugs.
Change-Id: Ibd20af124e4259f02d7ad61098db57a1d32e7164
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535709
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
use kallsyms_lookup_name("msm_trigger_wdog_bite") to get
"msm_trigger_wdog_bite" address instead of exporting from
kernel and no need port to kernel every platform
Change-Id: I314d552f480baed0fa418afcf7a80134c69867de
Reviewed-on: https://gerrit.mot.com/1534039
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
TP:
Because some vendor need the interrupts when changing the panel state,
so we should disable-irq after the panel state is completed to
adapt to more situations.
Change-Id: I78f6c6a4b989843dbab92761ddcd4ab324352ce8
Reviewed-on: https://gerrit.mot.com/1533861
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Remove references to battery serial and replace with checks for profile
name. Move psy name to device tree. Limit one profile per fuel gauge.
Add fg specific work queue.
NO_PROP_NEEDED: This change provides dual battery support, which is not
needed on previous products that use this driver.
Change-Id: I0827e22b9b289b8c4ba4c0e63fb6a180798d89f9
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1511235
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
In Astro, aw882xx doesnt work correctly and causes speaker has
no sound, after checking resgiters dump,0x04 bit6 I2SEN,
0x06 bit12 I2SRXEN is not right
Driver never set these two bits after init done, I don't why
it happens, monitor these 2 registers, correct them if any
readback value is wrong.
Change-Id: I2837d706c7c4836879a483a9d12371664b2614f5
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1532728
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
New interface to retrieve mutual capacitance range. Range reported as
pair of min,max values found in raw mutual capacitance test report.
This interface will only be available in factory mode and intended to
retrieve range while running in the same controlled environment as
calibration. LSI claims range (e.g. abs(max - min)) must be below 100
to consider calibration successful. In case when driver won't be able
to retrieve test results, pair of (1,-1) will be reported.
Change-Id: I3f884c733d1f5484ad7d9780bef9cd98eff09e43
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1528998
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
1. Add new macro for double tap if define
2. Disable slide nav
3. Enable swipe nav
4. Set up double tap at HAL
Change-Id: Ibab4d2670980ee76ef03fc82b4c23886cf19a871
Signed-off-by: zhongling1 <zhongling1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1522953
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
1. Initialize the value of the charge-mode and refresh-rate when
the touchscreen resume.
Change-Id: If09a10c6fad241e47b98aea8a5dd75aae78ede11
Reviewed-on: https://gerrit.mot.com/1522920
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Function added in the original commit needs to have a stub when
touchscreen class driver is not used to avoid unknown symbol
DLKM loading error
Mot-CRs-fixed: (CR)
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I1b9891c24a18ec97ac4b171ecfe928b6e6a608de
Reviewed-on: https://gerrit.mot.com/1520688
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
When charger plugged in or not, Below logs are seen
flooded in the kernel logs accordingly.
One log for every 10 seconds would get printed even when
there is no change in the charger rate state.
Solution:
dump the logs when there is actual change in charger present state
and charge rate.
03-09 08:52:14.869 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:52:35.527 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:52:46.024 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:52:56.460 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:05.426 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=None
03-09 08:53:05.532 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=None
03-09 08:53:08.230 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:08.578 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:09.392 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:09.890 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:20.267 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:30.528 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:40.112 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:50.360 0 0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
NO_PROP_NEEDED for bq-shm2018.
SDM710 is under project bq-sh2018. Hence this change propagation not needed for branch bq-shm2018.
Change-Id: I840a8c242c8478fc6221763c67f9246dda607f4e
Signed-off-by: kumarv <kumarv@motorola.com>
Reviewed-on: https://gerrit.mot.com/1514199
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
1. Check if the previous firmware supports this gs-distance feature
2. Solve the problem that buf is not initialized in gs-distance
Change-Id: I114d218bafdd1585251c4788b8b02f8de6d06d6c
Reviewed-on: https://gerrit.mot.com/1520031
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
TP:
If the value need to be written is the same as the previously saved
value, no longer access I2C and return size directly..
Change-Id: I6a7942e4bba3c1a219d1052a3a0377895da10a40
Reviewed-on: https://gerrit.mot.com/1517835
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Driver provides access to holding grip info reported by firmware via
sysfs entry. Driver notifies HAL about holding grip info changes.
Change-Id: Ifff66d0a06b904e43dc88432b930e51478c4fa59
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1517457
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
When driver exports sysfs entries to the class, they are created
under class' kobject. If driver needs to notify HAL about some
changes that happen asynchronously, it needs pointer to kobject
to call sysfs_notify. For that purpose pointer to kobject added
to class imports structure.
Change-Id: I05e72ee3a30cccce089ec571837b25df2fd07346
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1517618
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
If you go into adaptive mode, you cannot get out. Go to
STEP_NONE and let the state machine sort it out if adaptive
mode is exited.
Change-Id: I9a21f96a92438be1ad909d2a81eca197879c5b34
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1508042
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
When the post resume runs it stores the values set in init
if the values were updated when the chip was on instead of the
new values.
Copy the new values to the buffer regardless of the state.
Change-Id: I6ab9bf709746f2ac67eee786c4c5f36e9fcb1b72
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1516061
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
1. In case of touch power off, upper layer access node to set
pill_region and suppression, which generate I2C error.
2. Set power state when power on and power off.
Change-Id: I147c6aacbf215ecba431f9ee15e8a955e346155b
Reviewed-on: https://gerrit.mot.com/1514772
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
HX83102D is a low tier IC, need to create baseline early, so move
resume to early blank, but need to avoid lcd reset conflict, so
add some delay for this.
Change-Id: I3c98e3e41c5a1ee68084b4ffd0e69f76e3b51d8b
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1512722
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
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
Add store/show functions to the hold distance register
at 0xAB.
Change-Id: Ic697012de0ec22c4b4ebfbd6c39be159273be858
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1511303
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Sometimes we find that the IC can't enter standby mode.
The root casue is that the period between go bit operation
and standby mode operation was less than 2ms.
Add wakelock to avoid this concurrent issue.
Change-Id: I318741acd2e60a019a32da3e91a6b373fe2d3020
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1508966
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Add dts property to configure force_device_on_en_default
so the product can choose this option in dts.
Once this option is set, the TOF device will always be in
on state, the xshut will keep high and avdd will be on all
the time.
Change-Id: I0b74bcafdcb94e5b9356ff94ede4a97c62e57bdc
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1507387
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
Update bq27426 driver documentation, explaining how to add a battery
profile to a product, as well as the Device Tree parameters.
Additionally, what needs to be done in case it is a Dual Battery-based
product/architecture.
Change-Id: I6ecaf039087a7d83b26abe32c83f4ba96cc248ba
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1494396
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Add the battery profile header files to makefiles to build with correct
battery profile information
NO_PROP_NEEDED: change only necessary for smith battery. Does not affect
Olson
Change-Id: I73f32af18d91ffa573edb285d850cd3c450e9c7c
Signed-off-by: Andrew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1494276
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Add *.fs files from TI for smith batteries and the *.h files generated
by converting the raw *.fs files using convbqfs.pl
Add *.fs and *h files for defender from defender branch
Separate "raw" and "imported" battery profile files into subdirectories
NO_PROP_NEEDED: change adds battery profiles for defender and smith.
Olson does not use these battery profiles.
Change-Id: Ida5d1a937f8046b4d926d3dd8e851f5a205e0bdf
Signed-off-by: Andrew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1493722
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Using boost mode for long vibrations leads to desense issues.
The long vibration waveform will be modified to increase power
instead.
This reverts commit e5c9b40ce9f6d9abf83dfde7da4adbd0f52664ef.
Change-Id: Idb38ad2fd1f51578ee3c1610ef13c90628b5dbb1
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1505515
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key