From 8303ba5d9da2f6ded402824a0da4dad15333b056 Mon Sep 17 00:00:00 2001 From: Sylwester Nawrocki Date: Wed, 2 Dec 2020 16:32:54 +0100 Subject: [PATCH] tizen: amlogic: Add hdmimode env variable The hdmimode variable set to "1080p60hz" value allows the HDMI driver to switch to default full HD timings for QHD/UHD monitors and such monitors can still be used in lower resolution mode. This a workaround until proper support for QHD/UHD is implemented in the VPU driver. The new variable is also used in kernel bootargs. Change-Id: Ib1b58ee9173fa380c1c79bf819b0ffaca1a6aab9 Signed-off-by: Sylwester Nawrocki --- include/samsung/tizen_amlogic.h | 3 ++- tizen/bootscript/tizen-boot-amlogic-64b.scr | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/samsung/tizen_amlogic.h b/include/samsung/tizen_amlogic.h index f4a4e6c..300a526 100644 --- a/include/samsung/tizen_amlogic.h +++ b/include/samsung/tizen_amlogic.h @@ -150,7 +150,8 @@ "splashimage=0x2000000\0" \ "splashsource=mmc_fs\0" \ "splashfile=tizen_logo.bmp.gz\0" \ - "splashpos=m,m\0" + "splashpos=m,m\0" \ + "hdmimode=1080p60hz\0" #define CONFIG_TIZEN diff --git a/tizen/bootscript/tizen-boot-amlogic-64b.scr b/tizen/bootscript/tizen-boot-amlogic-64b.scr index aaa5d16..e10732b 100644 --- a/tizen/bootscript/tizen-boot-amlogic-64b.scr +++ b/tizen/bootscript/tizen-boot-amlogic-64b.scr @@ -88,7 +88,7 @@ echo "console: ${console}" kernel=Image.gz # To use comdline for using serial console. /* Normal mode */ -setenv bootargs \"root=/dev/${rootdev} rootwait rw no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=1080p60hz cvbsmode=576cvbs voutmode=${voutmode} ${cmode} usb-xhci.tablesize=2 logo=osd0,loaded ${console} ${boot_args}\" +setenv bootargs \"root=/dev/${rootdev} rootwait rw no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs voutmode=${voutmode} ${cmode} usb-xhci.tablesize=2 logo=osd0,loaded ${console} ${boot_args}\" # Find the ramdisk offset and block count part start $bootdev $mmcrootdev $ramdiskpart ramdisk_start -- 2.7.4