Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
device_xiaomi_onclite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LMODroid-Devices
device_xiaomi_onclite
Commits
60da96a1
Commit
60da96a1
authored
5 years ago
by
Dhina17
Browse files
Options
Downloads
Patches
Plain Diff
onclite: Update init.qcom.early_boot.sh from LA.UM.8.6.r1-02300-89xx.0
Signed-off-by:
Dhina17
<
dhinalogu@gmail.com
>
parent
539d627b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rootdir/etc/init.qcom.early_boot.sh
+72
-36
72 additions, 36 deletions
rootdir/etc/init.qcom.early_boot.sh
with
72 additions
and
36 deletions
rootdir/etc/init.qcom.early_boot.sh
+
72
−
36
View file @
60da96a1
#! /vendor/bin/sh
# Copyright (c) 2012-2013,2016,2018 The Linux Foundation. All rights reserved.
# Copyright (c) 2012-2013,2016,2018
,2019
The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
...
...
@@ -50,7 +50,7 @@ if [ -f /sys/class/drm/card0-DSI-1/modes ]; then
echo
"detect"
>
/sys/class/drm/card0-DSI-1/status
mode_file
=
/sys/class/drm/card0-DSI-1/modes
while
read
line
;
do
fb_width
=
${
line
%x*
}
;
fb_width
=
${
line
%
%
x*
}
;
break
;
done
<
$mode_file
elif
[
-f
/sys/class/graphics/fb0/virtual_size
]
;
then
...
...
@@ -107,7 +107,26 @@ case "$target" in
;;
esac
;;
"sm6150"
)
case
"
$soc_hwplatform
"
in
"ADP"
)
setprop vendor.display.lcd_density 160
;;
esac
case
"
$soc_hwid
"
in
365|366
)
sku_ver
=
`
cat
/sys/devices/platform/soc/aa00000.qcom,vidc1/sku_version
`
2> /dev/null
setprop vendor.media.target.version 1
if
[
$sku_ver
-eq
1
]
;
then
setprop vendor.media.target.version 2
fi
;;
355|369|377|384
)
setprop vendor.chre.enabled 0
;;
*
)
esac
;;
"msm8660"
)
case
"
$soc_hwplatform
"
in
"Fluid"
)
...
...
@@ -119,26 +138,6 @@ case "$target" in
esac
;;
"talos"
)
case
"
$soc_hwplatform
"
in
"ADP"
)
setprop vendor.display.lcd_density 160
;;
esac
case
"
$soc_hwid
"
in
365|366
)
sku_ver
=
`
cat
/sys/devices/platform/soc/aa00000.qcom,vidc1/sku_version
`
2> /dev/null
if
[
$sku_ver
-eq
1
]
;
then
setprop vendor.media.sm7150.version 1
fi
;;
355
)
setprop vendor.media.sm6150.version 1
;;
*
)
esac
;;
"msm8960"
)
# lcd density is write-once. Hence the separate switch case
case
"
$soc_hwplatform
"
in
...
...
@@ -259,7 +258,7 @@ case "$target" in
setprop vendor.opengles.version 196610
if
[
$soc_hwid
=
354
]
then
setprop vendor.media.
msm8937
.version 1
setprop vendor.media.
target
.version 1
log
-t
BOOT
-p
i
"SDM429 early_boot prop set for: HwID '
$soc_hwid
'"
fi
;;
...
...
@@ -309,12 +308,33 @@ case "$target" in
;;
esac
;;
"kona"
)
case
"
$soc_hwplatform
"
in
*
)
if
[
$fb_width
-le
1600
]
;
then
setprop vendor.display.lcd_density 560
else
setprop vendor.display.lcd_density 640
fi
;;
esac
;;
"lito"
)
case
"
$soc_hwplatform
"
in
*
)
sku_ver
=
`
cat
/sys/devices/platform/soc/aa00000.qcom,vidc1/sku_version
`
2> /dev/null
if
[
$sku_ver
-eq
1
]
;
then
setprop vendor.media.target.version 1
fi
;;
esac
;;
"sdm710"
|
"msmpeafowl"
)
case
"
$soc_hwplatform
"
in
*
)
sku_ver
=
`
cat
/sys/devices/platform/soc/aa00000.qcom,vidc1/sku_version
`
2> /dev/null
if
[
$sku_ver
-eq
1
]
;
then
setprop vendor.media.
sdm710
.version 1
setprop vendor.media.
target
.version 1
fi
;;
esac
...
...
@@ -328,7 +348,7 @@ case "$target" in
fi
if
[
$cap_ver
-eq
1
]
;
then
setprop vendor.media.
msm8953
.version 1
setprop vendor.media.
target
.version 1
fi
;;
#Set property to differentiate SDM660 & SDM455
...
...
@@ -336,7 +356,7 @@ case "$target" in
"sdm660"
)
case
"
$soc_hwid
"
in
385
)
setprop vendor.media.
sdm660
.version 1
setprop vendor.media.
target
.version 1
esac
;;
esac
...
...
@@ -363,26 +383,38 @@ product=`getprop ro.build.product`
case
"
$product
"
in
"msmnile_au"
)
setprop vendor.display.lcd_density 160
echo
13440
00000
>
/sys/class/devfreq/soc:qcom,cpu0-cpu-l3-lat/min_freq
echo
1
3440
00000
>
/sys/class/devfreq/soc:qcom,cpu0-cpu-l3-lat/max_freq
echo
13440
00000
>
/sys/class/devfreq/soc:qcom,cpu4-cpu-l3-lat/min_freq
echo
1
3440
00000
>
/sys/class/devfreq/soc:qcom,cpu4-cpu-l3-lat/max_freq
echo
9024
00000
>
/sys/class/devfreq/soc:qcom,cpu0-cpu-l3-lat/min_freq
echo
1
6128
00000
>
/sys/class/devfreq/soc:qcom,cpu0-cpu-l3-lat/max_freq
echo
9024
00000
>
/sys/class/devfreq/soc:qcom,cpu4-cpu-l3-lat/min_freq
echo
1
6128
00000
>
/sys/class/devfreq/soc:qcom,cpu4-cpu-l3-lat/max_freq
;;
*
)
;;
esac
case
"
$product
"
in
"
m
sm
nile_gvmq
"
)
"sm
6150_au
"
)
setprop vendor.display.lcd_density 160
echo
1344000000
>
/sys/class/devfreq/soc:qcom,cpu0-cpu-l3-lat/min_freq
echo
1344000000
>
/sys/class/devfreq/soc:qcom,cpu0-cpu-l3-lat/max_freq
echo
1344000000
>
/sys/class/devfreq/soc:qcom,cpu4-cpu-l3-lat/min_freq
echo
1344000000
>
/sys/class/devfreq/soc:qcom,cpu4-cpu-l3-lat/max_freq
;;
*
)
;;
esac
case
"
$product
"
in
"sdmshrike_au"
)
setprop vendor.display.lcd_density 160
echo
940800000
>
/sys/class/devfreq/soc:qcom,cpu0-cpu-l3-lat/min_freq
echo
940800000
>
/sys/class/devfreq/soc:qcom,cpu4-cpu-l3-lat/min_freq
;;
*
)
;;
esac
case
"
$product
"
in
"msmnile_gvmq"
)
setprop vendor.display.lcd_density 160
;;
*
)
;;
esac
# Setup display nodes & permissions
# HDMI can be fb1 or fb2
# Loop through the sysfs nodes and determine
...
...
@@ -415,6 +447,10 @@ else
set_perms /sys/devices/virtual/hdcp/msm_hdcp/min_level_change system.graphics 0660
fi
# allow system_graphics group to access pmic secure_mode node
set_perms /sys/class/lcd_bias/secure_mode system.graphics 0660
set_perms /sys/class/leds/wled/secure_mode system.graphics 0660
boot_reason
=
`
cat
/proc/sys/kernel/boot_reason
`
reboot_reason
=
`
getprop ro.boot.alarmboot
`
if
[
"
$boot_reason
"
=
"3"
]
||
[
"
$reboot_reason
"
=
"true"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment