GKI2.0 doens't allow to export kernel_read and kernel_write api,
so we get the block device path in bootconfig from device tree.
Change-Id: I8601a35f88344eb5ba7601fc302eb1b846e945a0
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2072437
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
GKI2.0 doens't allow to export kernel_read and kernel_write api,
so use regular bio intefaces to read and write utag block device.
Ugprade products which kernel is 5.4, can use the BIO to replaced
kernel_read/kernel_write block device interface with kernel config
CONFIG_MMI_UTAG_RW_BIO.
Change-Id: I74780733c05ae6d992d3ae07dc33bd1e352590d8
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/2056920
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Submit-Approved: Jira Key
lm3697 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
Change-Id: Ib6ac8dc3bb36389ba2c885c3e4b986ac9316bdc4
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2045773
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
TP:
1. support matching limit files of multiple panels.
2. save the test results, and the file name contains the test time
and panel name.
Change-Id: Ife15047d24b39680a1c0c94f9c405796c35be47d
Reviewed-on: https://gerrit.mot.com/2068602
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
need to detect hw chip id before do any action,
such as another ic also need gpio resource.
Change-Id: I0f6526a9dfd4e0e4216ac6b0c706274f6e02caf2
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2069805
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Shicheng Gong <gongsc1@motorola.com>
The REGN wake-up time is 500ms, and REGN will provide power for
CBL_PWR_N, so press PWR key will make system reboot all the time.
This walkaround is add 500ms at the end of rt9467 shutdown function
to create a release window for I2C of rt9467.
Change-Id: Ib428c31a718ac27bfc0ce077d5e7aa481e7fe648
Reviewed-on: https://gerrit.mot.com/2067201
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
When I2C bus is unavailable, waiting for ready state will fail due to
I2C error and not just time out. In that case probe shall fail
gracefully and exit immediately.
Change-Id: Ida7e1877de0893d2d0e0941dbc3ef082ef7ba36f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2066631
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
This reverts commit 993a25647b7c117aa576684ea553a62c00fe7b66.
This change does not match the purpose of mmi_charger design, it will
get mmi_charger controlling logic mess and break the exist factory
test rule and method.
Mot-CRs-fixed: (CR)
Change-Id: I8b44d53f4f2a24bc9b3035a2e776f91503b3de23
Reviewed-on: https://gerrit.mot.com/2066277
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
batt_psy needs to get mmi_battery, rather than 'battery'. This fails
probe due to unfound batt_psy_check, and therefore no mmi_battery/
device nodes are created.
Change-Id: I50abe327b36f7dcd914e488bd31fa4ea351acf3e
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2065404
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Ling Jin <lingjin@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
TP:
Support loading different configuration files according to
the panel name.
Change-Id: Ibe6d99c99f08951b35100921c4eaa587048aee1f
Reviewed-on: https://gerrit.mot.com/2062784
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
It takes long time to include all DLKM's makefile even if the
product does not need this module.
Time of "make bootimage" on user build:
- without change: 23 mins
- with change: 9 mins
Change-Id: Icf0cd01b318a17457336dc7627cbf1ab3a8c78b8
Reviewed-on: https://gerrit.mot.com/2057699
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Added sysfs interface to control in run time the amount of debug
messages generated by the driver.
Change-Id: Ie07140e460a4e7f7b2d8a3033226e7900a594cd2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2063420
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Adding missing components to support firmware update from the file
Change-Id: I5b36476e0e3d6320d2961542ca08b02ee0f3bc4b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2059355
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Silead fingerprint sensor is a new chipset and vendor
Add new driver to support it.
Change-Id: Ibbad53b820b527e4d4e42af9c6f7ec5718d1d6dd
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2062795
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Zhong <zhongl1@motorola.com>
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
From factory test requirement
Add sysfs node to get wireless chip id
Change-Id: Ic24b4ac33a2231f2f580917fcfa9ca0f9fd4e65e
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2062214
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
Save lpd and vbus present state in charger info data
structure.
Change-Id: Ic2ee432ff24669ae9d9412c8efdc58297fecb40c
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2061925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
For Milan 5G, it is first time to use and external LDO
to driver the vibrator instead of PMIC.
Add new driver to support it.
Change-Id: Id9d3ecfc408c71747f5ea536b404a9ef707e59f0
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2056348
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
qti_glink_charger is moto common module, it is used by several
moto projects(berlin/yukon/rouge)
the new property type must be add to the end, otherwise it will
affect other projects.
Change-Id: Icaa0e121b3efdf11dbf712eb06011ad5941f6929
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2061419
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
GKI kernel build may error since spi_set_cs_timing
is not in google whitelist
upgrade as kernel verion
Change-Id: I1ea0b1e23c15fd218ff0a2aee5f584f2cbf0dcc4
Reviewed-on: https://gerrit.mot.com/2060952
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
It takes long time to include all DLKM's makefile even if the
product does not need this module.
Change-Id: I8629ac29a3f7e115c04dc24d2508366314716dac
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2059989
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
Add fet control to enable low-z batt2 path after both batteries
have had tome to equalize under the balance_en_n setting.
EVB does not have an adc-in to read batt2 level directly, support
will be added on EVT1 hw. So until then, check for vbatt_main at
mid Voltage to cutover the battplus_en path, while current is low
i.e. < 250mA.
Change-Id: I53f5c13c881dd0cf0cf93af8c153f866dfcfad6d
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2057382
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
add usb property
for other modules to get usb state
Change-Id: I7c6c15ebd1612990f07738ce4c6374857013b44e
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2059196
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Add support for a vendor specific SCSI pass through command to
trigger reboot.
SC_REBOOT (0xd7) - triggers reboot into fastboot mode
SC_REBOOT_1 (0xd8) - triggers reboot into normal mode.
Propagated from (CR)
Change-Id: I4fc4839968135a63c594dca69b1dc93699e4a9bc
Reviewed-on: https://gerrit.mot.com/1750946
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/2053807
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Modify the mass storage driver to build as a Motorola module
following Android GKI rule.
Change-Id: I278ce964d1689fb8dbf0df7b7e098e210d664565
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2053806
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Submit-Approved: Jira Key
Copy the mass_storage driver from Kernel source as initial version
of Motorola mass storage base.
Change-Id: I0d95b47de5c1463164843d9e8cebce06e9492e52
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2053805
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key