msm8953-common: Initial Common tree

* based on motorola sdm632-common

Co-authored-by: Jorg3Lucas <jorgelucas@pixelexperience.org>
This commit is contained in:
jeangraff30
2020-09-06 15:31:00 +02:00
commit 1220e128cd
154 changed files with 23679 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
# Chipset-specific init settings
on boot
# Change permission for type C params
chown root oem_5004 /sys/devices/soc/78b6000.i2c/i2c-2/2-0022/CC_state
chown root oem_5004 /sys/devices/soc/78b6000.i2c/i2c-2/2-0022/enable_vconn
# Change ownership and permission for AMPS factory testing
chown root oem_5004 /sys/class/i2c-adapter/i2c-2/2-002d/enable
chmod 0660 /sys/class/i2c-adapter/i2c-2/2-002d/enable
chown root oem_5004 /sys/class/i2c-adapter/i2c-2/2-002d/hsic_vdd
chmod 0660 /sys/class/i2c-adapter/i2c-2/2-002d/hsic_vdd
# Change permission for fingerprint sensor
chown system oem_5004 /sys/devices/soc/soc:fpc_fpc1020/nav
chown system oem_5004 /sys/devices/soc/soc:fpc_fpc1020/dev_enable
chown system oem_5004 /sys/devices/soc/soc:fpc_fpc1020/irq
chown system oem_5004 /sys/devices/soc/soc:fpc_fpc1020/irq_cnt
chmod 0440 /sys/devices/soc/soc:fpc_fpc1020/irq_cnt
on post-fs-data
#setup folder for WLAN WAPI
chmod 0770 /data/wapi_certificate
# This dir only for preinstall app so libs
mkdir /data/app-lib2 0771 system system
on moto-charger
setprop ro.board.platform msm8953
load_system_props
trigger firmware_mounts_complete
start qcom-post-boot
start vendor.gbmodinstall
start vendor.charge_only_mode
start vendor.batt_health
start vendor.thermal-com
start system_suspend
# Set hub drive strength to +5%
on property:ro.bootmode=normal
write /sys/module/usb3813_hub/parameters/boost_val 3