From f4b1c659d99386b5b3a8e02608988d55e86ff4b7 Mon Sep 17 00:00:00 2001 From: Alexander Koskovich Date: Sat, 18 Jun 2022 06:34:54 -0700 Subject: [PATCH] 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 --- init/init.oplus.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init/init.oplus.rc b/init/init.oplus.rc index 649069f..f320e27 100644 --- a/init/init.oplus.rc +++ b/init/init.oplus.rc @@ -4,6 +4,10 @@ # SPDX-License-Identifier: Apache-2.0 # +on fs + # Update touchpanel firmware in case we ship newer firmware in /odm + write /proc/touchpanel/tp_fw_update 0 + on early-boot # SSR write /sys/bus/msm_subsys/devices/subsys0/restart_level RELATED