Merge pull request #2422 from kszaq/aml_attr

amlogic: Set colorspace to avoid no HDMI signal with non-4K output modes
This commit is contained in:
Radostan Riedel 2018-01-20 10:16:37 +01:00 committed by GitHub
commit 17f2e92022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -51,6 +51,9 @@ if [ -z "$BOOT_IMAGE" -o -z "$boot" -o -z "$disk" ]; then
echo "$cmdline" > /proc/cmdline
fi
# Set colorspace to avoid no HDMI signal with non-4K output modes
echo 422,8bit > /sys/class/amhdmitx/amhdmitx0/attr
# Enable HDMI output if cable is connected and not already enabled by u-boot
if [ "$(cat /sys/class/amhdmitx/amhdmitx0/hpd_state)" != "0" ] && [ "$display_mode" != "$hdmimode" ]; then
echo "$hdmimode" > /sys/class/display/mode

View File

@ -28,6 +28,9 @@ for arg in $(cat /proc/cmdline); do
esac
done
# Set colorspace to avoid no HDMI signal with non-4K output modes
echo 422,8bit > /sys/class/amhdmitx/amhdmitx0/attr
# Enable first framebuffer
echo 0 > /sys/class/graphics/fb0/blank

View File

@ -28,6 +28,9 @@ for arg in $(cat /proc/cmdline); do
esac
done
# Set colorspace to avoid no HDMI signal with non-4K output modes
echo 422,8bit > /sys/class/amhdmitx/amhdmitx0/attr
# Enable first framebuffer
echo 0 > /sys/class/graphics/fb0/blank