1.seperate aw params from acdb. stored in aw_skt.bin
use CONFIG_AW882XX_PARAMS_FROM_BIN macro
2.use profile for different scene.
3.need to match new skt algo V5.3.1.1
enable it for milanf
Change-Id: I0ddc5c916e4ce1e84787be259264b8ff5eba411d
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2095738
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
for build user version error, so need to
add some api to qcom gki white list
Change-Id: I0da80b6b41bbdb3e9cb416a8f7385c3d46c44976
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2093395
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
mfd_add_devices/mfd_remove_devices and devm_pwm_get
are in GKI Whitelist and they have been used by leds_lm3697.ko.
so add it to qcom whitelist for user build.
Change-Id: I73e25d25bbbcade53d5ca072c3175202188b40fb
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2090764
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
memset32 & regmap_raw_write are in GKI Whitelist and
they have been used by RT9426A_mmi_fg.ko.
so add it to qcom whitelist for user build.
Change-Id: Ic7a09e482808786eecb3a8c456307bdf76fa21eb
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2090736
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Submit-Approved: Jira Key
Hardware randomly unstable will trigger "dm-verity device corrupted"
and reboot the phone. Then it will not stamp the vbmeta partition with
the "AVE0" flag, which is persistent. Then it will boot up failed at
the next boot with AVB header check failed.
Moto has own Google verified boot process with the RED alert logo.
so we ignore this.
Change-Id: I631a601e5b0f6e2f4ef06f19bb53dd29b2534c7d
Reviewed-on: https://gerrit.mot.com/2079554
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
Recorded from QC SR: 05399803 as if the qseecom_supsend will only
cancel the workqueque when the crypto bus scaling is enabled. Hence
restrict the operation if without the configuration.
Change-Id: I8d6d347a6393da76641fc8fa4601016629b4a53c
Signed-off-by: quebs2 <quebs2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2072405
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This change is experimental in nature during development phase.
We need some soak data to decide if we could keep coresight off for use build.
Change-Id: Iec48446f1aded3e60fb5e110fd3664c9e4af2d70
Reviewed-on: https://gerrit.mot.com/2066960
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhongsheng Xia <xiazs1@motorola.com>
Reviewed-by: Yifu Lin <linyf@lenovo.com>
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
defconfig:
Remove novatek touch driver from corfur. Because corfur does not
support novatek touch, and use ko to load driver.
Change-Id: I1c060069985dcf6ff54cd60909a69f4a6920b512
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2046837
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
For some debug situations, we need to force adb function
enabled without charger notification. So we add the forcing
logic. And it is controlled by a dts
configuration("qcom,force-adb-enable")
Change-Id: I1a779c0e8b9f60cdbf978d555b3f1e537db4740f
Reviewed-on: https://gerrit.mot.com/2038917
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
This reverts commit 585af9cffc7ae94d3a33bcfe65b020618b944248.
Re-enable coresight in user build.
We need to enable coresight feature to supporting the collection of modem log
Change-Id: If4d109d8575e34388ef6d425b80ad59874921b6e
Reviewed-on: https://gerrit.mot.com/2034963
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
For add PD charging(include PPS/Fixed) policy in DLKM for single
charge path(only pmic charging), so need to remove pd2.0 policy
in smb5-lib.c
Change-Id: I10807a7c73eb6d5372019bfa9c1db0e99993cb89
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2029012
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Reduce the config on userdbug to improve the perforamce
CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_DEBUG_PAGEALLOC is not set
CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT is not set
CONFIG_DEBUG_KMEMLEAK is not set
CONFIG_DEBUG_VIRTUAL is not set
CONFIG_DEBUG_RT_MUTEXES is not set
CONFIG_DEBUG_SPINLOCK is not set
CONFIG_DEBUG_MUTEXES is not set
CONFIG_DEBUG_LOCK_ALLOC is not set
CONFIG_DEBUG_LOCKDEP is not set
CONFIG_DEBUG_ATOMIC_SLEEP is not set
CONFIG_DEBUG_FS is not set
CONFIG_RCU_TRACE is not set
CONFIG_PREEMPT_TRACER is not set
CONFIG_STACKDEPOT is not set
CONFIG_SCHED_STACK_END_CHECK is not set
CONFIG_PAGE_OWNER is not set
CONFIG_DM_DEBUG is not set
CONFIG_EXT4_DEBUG is not set
CONFIG_LOCK_STAT is not set
Change-Id: Ia918fa32e73984d6f93560bc24aa45052123207c
Reviewed-on: https://gerrit.mot.com/2029094
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghui Jia <jiayh2@motorola.com>
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Change the default output voltage through I2C bus at XBL. And store the default
value to EEPROM. So we can nod make I2C operation at kernel.
Only pull up/down gpio to enable/disable regulator.
Change-Id: Ie6c7a781257efe97aea8e7fe84a7efa20c6359aa
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2020886
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
coresight is not used by any module.
disable it to avoid irq wakeup issue.
https://gerrit.mot.com/#/c/1863643/ will enable coresight on debug
version.
Change-Id: I0d84be965ce088bd13e14b071b3a103b2bc5646e
Signed-off-by: zoujc <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1998604
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/2014590
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
GPIO17-----FPS INT
FPS bringup work on6375
remove GPIO17 from the reserved GPIO list
Otherwise the fingerprint driver cannot apply for this GPIO
Change-Id: I963f7dc55369f435bfb6bb0d58cc9bd42e51576a
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2011805
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
SS HID driver not check the result, will do ufs feature init continuely,
include tw, hpb and hid, if the ufs is ufs2.1 FW, l(CR) Micron
MT064GASA02U21(4+64), not suport hid, will cause kernel panic.
Change-Id: I4e683ca090dc84169ab16e4ee6added0a01898f3
Reviewed-on: https://gerrit.mot.com/2009108
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Remark:
enable Hynix hid feature for cyprus 5G and corfu 5G on mot4350 family.
disable for ibiza and denver,further project if reuse currently
baseline need define it accordingly.
Change-Id: I0e45c7096d3c9354a1c7580f5a8f4b151d7b5beb
Reviewed-on: https://gerrit.mot.com/2004803
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
For make Hynix HID driver disable for other vendors, we use macroes
to restrict its power.
note:
"manual_gc_status" is moved from
"/sys/device/platform/soc/4804000.ufshc/attributes" to
"/sys/device/platform/soc/4804000.ufshc/attributes_hid", APP or Script
need update this path.
Change-Id: Ic9d8350bac14945acb29fba8d00ad90994c2d062
Reviewed-on: https://gerrit.mot.com/2004779
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
For the market device is sm4350 pro, we disable HID deature on
cypfg device.
However, this is a bug, For Micron MT064GASA02U21(4+64) is not support HID, if enable HID
fearture on Micron device, will casue panic.
we wil fixed it on cypfq.
Change-Id: I6e78d4bc32dde6b089d8918ecdc0055c490f05cf
Reviewed-on: https://gerrit.mot.com/2006650
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Remark:
enable SS hid feature for cyprus 5G and corfu 5G on mot4350 family.
disable for ibiza and denver,further project if reuse currently
baseline need define it accordingly.
Change-Id: I5ced032ca6e22e7e36386a6124c4765bbae6b2b7
Reviewed-on: https://gerrit.mot.com/2003424
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
this patch is supply by SS, and based on sm4350, we also add macros to
compatible with other vendors.
Change-Id: Iea082bfbc8463f7cb23bad5afe2bb0b6118dab92
Reviewed-on: https://gerrit.mot.com/2002941
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
For cypfq:
tps65132 and ocp2131 will output VSN and VSP to panel.
And tps65132 and ocp2131 are compatible completely.
So we will use a driver for them.
Change-Id: Ib41ce6a18ff70f3b9bf3c2bd318698188e272e88
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1996970
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This is a workarround to reduce the vibrator strength for long vib.
Add attribute "qcom,vib-dis-short-long" in device-tree to enable the
function.
Change-Id: I91e2612f878e6e6614d46797bcd7987cd46b9fba
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1995828
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Zhenghai Pan <panzh2@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Salcom qc3+ charge adapter have a issue:connect salcom to
phone,while phone tirgger 16 Dp/Dm pluse then remove usb
cable, salcom charge adaper side will not reset Dp/Dm
counter. So then connect salcom charge adapter to
phone again. salcom will become qc3.0 mode.
So need SW workaround salcom charge adapter issue:if phone
side detect qc30 will run APSD.
Change-Id: I2cc913125ec70223abfaedc75dc156079e55c355
Reviewed-on: https://gerrit.mot.com/1993349
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
This patch added manual_gc_status attriute to host.
Through manual_gc_status attribute, host will get hagc status
hint and can trigger hagc when device are dirty status.
Mot-CRs-fixed: (CR)
Change-Id: Ie8fad3c34c48dc9fe01cf8a7ecb8d19e110bd0c8
Reviewed-on: https://gerrit.mot.com/1987900
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This reverts commit 1957601e86ae219cdbf83594bff8d1db9c418400.
We will fix the issue by adding related dts configuration on i2c_7.
Change-Id: I197b88025ad89f5a73c87a0c95fe3a2fb2218dec
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1985492
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Since qcom baseline upgrade import the change which will
return -EACCESS when system in suspend to transfer spi message,
and this will conflict with single tap feature. For keep performance
and logic consistent with before, remove the new logic introduced
by Qcom after discussion with Qcom(SR: 05267011)
Change-Id: I6cbf9ca51b62dd9ca9519c762147f83cf3f47831
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1979369
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key