sm8250-common -> sm7325-common

This commit is contained in:
SGCMarkus 2022-03-26 23:16:05 +01:00
commit 95b667c5b9
74 changed files with 4207 additions and 3939 deletions

View file

@ -30,6 +30,8 @@ firmware_path=/vendor/firmware
param_path=/data/vendor/param/touch
factory_property=ro.vendor.build.motfactory
bootmode_property=ro.bootmode
touch_firmware_property=ro.vendor.touch.fw_version
touch_vendor_property=ro.vendor.touch.supplier_vendor
let dec_cfg_id_boot=0
let dec_cfg_id_latest=0
# Whether to search for TP firmware in the parameter path
@ -56,7 +58,7 @@ debug()
notice()
{
echo "$*"
log -t "$scriptname" -p i "$*"
echo "$scriptname: $*" > /dev/kmsg
}
sanity_check()
@ -376,6 +378,8 @@ query_panel_info()
read_panel_property "controller_drv_ver"
panel_ver=${property#${property%?}}
debug "panel supplier: $supplier, ver $panel_ver"
setprop $touch_vendor_property "$supplier-$touch_vendor"
notice "touch_vendor_property = $touch_vendor_property, $supplier-$touch_vendor"
else
debug "driver does not report panel supplier"
fi
@ -588,6 +592,9 @@ process_touch_instance()
notice "property [$touch_status_prop] set to [`getprop $touch_status_prop`]"
notice "Handling touch ID [$touch_instance] permissions"
fi
read_touch_property buildid
setprop $touch_firmware_property ${property}
notice "Touch firmware property is $touch_firmware_property"
setup_permissions
}