sm6375-common: Import vendor files for the Linux 6.1 port
Extracted from malmo_g W1UOS36H.35-39-8 and device-specific compatibility overrides. Device extraction scripts preserve the build compatibility fixups.
This commit is contained in:
commit
5d0291f99e
936 files changed
+60890
No files matched your search
+28
@@ -0,0 +1,28 @@
|
||||
#!/vendor/bin/sh
|
||||
|
||||
scriptname=${0##*/}
|
||||
|
||||
notice()
|
||||
{
|
||||
echo "$*"
|
||||
echo "$scriptname: $*" > /dev/kmsg
|
||||
}
|
||||
|
||||
set_ro_hw_properties_dislayport()
|
||||
{
|
||||
local dp_path=/sys/class/drm/card0-DP-1
|
||||
local wait_cnt=0
|
||||
while [ "$wait_cnt" -lt 5 ]; do
|
||||
if [ -e $dp_path ]; then
|
||||
setprop ro.vendor.hw.displayport true
|
||||
notice "setprop ro.vendor.hw.displayport as true"
|
||||
break;
|
||||
fi
|
||||
notice "waiting for dp, wait_cnt is $wait_cnt"
|
||||
sleep 1;
|
||||
wait_cnt=$((wait_cnt+1))
|
||||
done
|
||||
}
|
||||
|
||||
# Main starts here
|
||||
set_ro_hw_properties_dislayport
|
||||
Reference in new issue
Block a user