2022-04-11 11:23:57 -04:00
|
|
|
#
|
|
|
|
# Copyright (C) 2022 The LineageOS Project
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
dre: init: Update display panel firmware if newer
[TP0]touchpanel: tp_fw_update_work: fw_name = tp/19825/FW_S6SY792_SAMSUNG.bin
[TP0]touchpanel: fw_name_fae is tp/19825/FW_S6SY792_SAMSUNG_FAE.bin
sec-s6sy792 2-0048: Direct firmware load for tp/19825/FW_S6SY792_SAMSUNG_FAE.bin failed with error -2
sec-s6sy792 2-0048: Falling back to sysfs fallback for: tp/19825/FW_S6SY792_SAMSUNG_FAE.bin
[TP0]touchpanel: retry times 0
[TP]sec-s6sy792: sec_fw_update is called, force update:0
[TP]sec-s6sy792: img version in bin is 0x28240117, img version in ic is 0x28240117
[TP]sec-s6sy792: config version in bin is 0x28240108, config version in ic is 0x28240108
[TP]touch_interface: read block_1, free once.
[TP]touch_interface: read block_1, kzalloc success(len:1152, buf_size:1152).
[TP]sec-s6sy792: update firmware state: no need update!
[TP0]touchpanel: release all touch point and key, clear tp touch down flag
[TP]touch_interface: read block_2, kzalloc success(len:1, buf_size:256).
[TP]sec-s6sy792: sec_change_to_np_mode: change to np_mode time: 0 success!
[TP]sec-s6sy792: sec_enable_fingerprint_mode: touchhold_enable: 0 success!
[TP]sec-s6sy792: sec_enable_black_gesture, enable = 0
[TP]sec-s6sy792: sec_enable_black_gesture: 0 times change black gesture success
[TP]sec-s6sy792: limit_switch is 1
[TP]sec-s6sy792: sec_enable_charge_mode: state: 0 success!
[TP]sec-s6sy792: sec_enable_headset_mode: state: 0 success!
[TP0]touchpanel: add qos request in touch driver.
[TP0]touchpanel: fw update finished
Change-Id: Iba517b59fe2856ed6f991c07e0362b1be203af45
2022-06-18 09:34:54 -04:00
|
|
|
on fs
|
|
|
|
# Update touchpanel firmware in case we ship newer firmware in /odm
|
|
|
|
write /proc/touchpanel/tp_fw_update 0
|
|
|
|
|
2019-07-11 09:32:52 -04:00
|
|
|
on early-boot
|
|
|
|
# SSR
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys0/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys1/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys2/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys3/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys4/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys5/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys6/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys7/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys8/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys9/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys10/restart_level RELATED
|
|
|
|
write /sys/bus/msm_subsys/devices/subsys11/restart_level RELATED
|
|
|
|
|
2022-04-11 11:23:57 -04:00
|
|
|
on boot
|
|
|
|
# Display
|
|
|
|
chown system system /dev/oplus_display
|
|
|
|
chown system system /sys/kernel/oplus_display/dimlayer_bl_en
|
|
|
|
chown system system /sys/kernel/oplus_display/dynamic_osc_clock
|
|
|
|
chown system system /sys/kernel/oplus_display/hbm
|
|
|
|
chown system system /sys/kernel/oplus_display/notify_fppress
|
|
|
|
chown system system /sys/kernel/oplus_display/panel_serial_number
|
2022-04-11 11:44:39 -04:00
|
|
|
|
|
|
|
# Sensors
|
|
|
|
chown system system /sys/devices/platform/soc/soc:sensor_fb/adsp_notify
|
|
|
|
|
2022-04-12 09:00:37 -04:00
|
|
|
on property:ro.boot.prjname=*
|
|
|
|
# Display
|
|
|
|
setprop ro.separate.soft ${ro.boot.prjname}
|
|
|
|
|
2022-04-13 11:07:11 -04:00
|
|
|
on property:sys.boot_completed=1
|
|
|
|
# Display
|
|
|
|
copy /vendor/etc/Oppo_QC_LTM_Commercial_SM8250_2020_01_15.pfm /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-1186717196.pfm
|
|
|
|
chmod 0600 /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-1186717196.pfm
|
|
|
|
chown system system /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-1186717196.pfm
|
|
|
|
|
2022-12-08 10:35:52 -05:00
|
|
|
on property:vendor.post_boot.parsed=1
|
|
|
|
# IRQ Tuning
|
|
|
|
# IRQ 243: msm_drm
|
|
|
|
# IRQ 240: kgsl_3d0_irq
|
|
|
|
write /proc/irq/243/smp_affinity_list 2
|
|
|
|
write /proc/irq/240/smp_affinity_list 1
|
|
|
|
|
2022-04-11 14:41:43 -04:00
|
|
|
on property:sys.usb.config=adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2769
|
|
|
|
|
|
|
|
on property:sys.usb.config=mass_storage && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2768
|
|
|
|
|
|
|
|
on property:sys.usb.config=mtp && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2764
|
|
|
|
|
|
|
|
on property:sys.usb.config=mtp,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2765
|
|
|
|
|
|
|
|
on property:sys.usb.config=ptp && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2771
|
|
|
|
|
|
|
|
on property:sys.usb.config=ptp,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2772
|
|
|
|
|
|
|
|
on property:sys.usb.config=rndis,none && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x276A
|
|
|
|
|
|
|
|
on property:sys.usb.config=rndis,serial_cdev,diag && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2783
|
|
|
|
|
|
|
|
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x276C
|
|
|
|
|
|
|
|
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,diag_mdm,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x276E
|
|
|
|
|
|
|
|
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mass_storage,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2767
|
|
|
|
|
|
|
|
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,diag,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2775
|
|
|
|
|
|
|
|
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,none,adb && property:sys.usb.configfs=1
|
|
|
|
write /config/usb_gadget/g1/idVendor 0x22D9
|
|
|
|
write /config/usb_gadget/g1/idProduct 0x2766
|
|
|
|
|
2022-04-11 11:44:39 -04:00
|
|
|
service oplus_sensor_fb /odm/bin/oplus_sensor_fb
|
|
|
|
user system
|
|
|
|
group system
|
|
|
|
class late_start
|
|
|
|
oneshot
|