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
+30
@@ -0,0 +1,30 @@
|
||||
#!/vendor/bin/sh
|
||||
|
||||
debug=$(getprop ro.boot.gbdebug 2> /dev/null)
|
||||
bootmode=$(getprop ro.bootmode 2> /dev/null)
|
||||
|
||||
# If androidboot.gbdebug is set on command line, skip inserting
|
||||
# the pre-installed modules.
|
||||
if [ "$debug" == "1" ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
insmod /vendor/lib/modules/greybus.ko
|
||||
|
||||
# Only support PTP and BATTERY in charge-only mode
|
||||
if [ "$bootmode" == "charger" ]; then
|
||||
insmod /vendor/lib/modules/gb-mods.ko
|
||||
insmod /vendor/lib/modules/gb-battery.ko
|
||||
insmod /vendor/lib/modules/gb-ptp.ko
|
||||
|
||||
return 0
|
||||
fi
|
||||
|
||||
gbmods="/vendor/lib/modules/gb-*"
|
||||
for mod in $gbmods
|
||||
do
|
||||
insmod $mod
|
||||
done
|
||||
|
||||
insmod /vendor/lib/modules/v4l2-hal.ko
|
||||
start vendor.mods_camd
|
||||
Reference in new issue
Block a user