rockchip: add pwm-backlight support for DSI panel

Signed-off-by: hmz007 <hmz007@gmail.com>
master
hmz007 9 months ago
parent 59e36d4fa5
commit 0d7528d8e4

@ -0,0 +1,12 @@
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<display-settings>
<config identifier="0" />
<display
name="local:0"
backlightPath="/sys/class/backlight/pwm-backlight/brightness" />
<display
name="local:1"
shouldShowSystemDecors="false"
shouldShowIme="true"
forcedDensity="240" />
</display-settings>

@ -821,10 +821,10 @@ endif
PRODUCT_PACKAGES += \
libbaseparameter
USE_PRODUCT_DISPLAY_SETTINGS := $(shell test -f $(TARGET_DEVICE_DIR)/displays/display_settings.xml && echo true)
USE_PRODUCT_DISPLAY_SETTINGS := $(shell test -f $(TARGET_DEVICE_DIR)/display_settings.xml && echo true)
ifeq ($(strip $(USE_PRODUCT_DISPLAY_SETTINGS)), true)
PRODUCT_COPY_FILES += \
$(TARGET_DEVICE_DIR)/displays/display_settings.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display_settings.xml
$(TARGET_DEVICE_DIR)/display_settings.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display_settings.xml
else
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/display_settings.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display_settings.xml

@ -129,6 +129,7 @@ on boot
# backlight
chown system system /sys/class/backlight/rk28_bl/brightness
chown system system /sys/class/backlight/backlight/brightness
chown system system /sys/class/backlight/pwm-backlight/brightness
# for hdmi
chown root system /sys/class/display/HDMI/enable
@ -143,8 +144,8 @@ on boot
chmod 0664 /sys/class/graphics/fb0/bcsh
chmod 0664 /sys/class/graphics/fb0/dsp_lut
chown system graphics /sys/class/graphics/fb0/scale
chmod 0664 /sys/class/graphics/fb0/scale
chown system graphics /sys/class/graphics/fb0/scale
chmod 0664 /sys/class/graphics/fb0/scale
chown system system /sys/mali400_utility/utility
chmod 0664 /sys/mali400_utility/utility
@ -320,7 +321,7 @@ service shutdownanim /system/bin/bootanimation shutdown
service rk_store_keybox /vendor/bin/rk_store_keybox
class main
oneshot
oneshot
#vts audio property
on property:vts.native_server.on=1

Loading…
Cancel
Save