[PATCH] video/console: Add rotated LCD-panel DMI quirk for the VIOS LTH17

Subsystems: console subsystem, framebuffer layer, the rest

STALE3256d

2 messages, 2 authors, 2017-09-05 · open the first message on its own page

[PATCH] video/console: Add rotated LCD-panel DMI quirk for the VIOS LTH17

From: Hans de Goede <hidden>
Date: 2017-09-04 14:26:01

The VIOS LTH17 Cherry Trail bases netbook has its LCD panel mounted
rotated 90 degrees, add a DMI quirk for this.

Cc: Daniel Drake <redacted>
Signed-off-by: Hans de Goede <redacted>
---
 drivers/video/console/fbcon_dmi_quirks.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
diff --git a/drivers/video/console/fbcon_dmi_quirks.c b/drivers/video/console/fbcon_dmi_quirks.c
index 9027f044a0e1..3fd40568070b 100644
--- a/drivers/video/console/fbcon_dmi_quirks.c
+++ b/drivers/video/console/fbcon_dmi_quirks.c
@@ -58,6 +58,12 @@ static const struct fbcon_dmi_rotate_data rotate_data_itworks_tw891 = {
 	.rotate = FB_ROTATE_CW,
 };
 
+static const struct fbcon_dmi_rotate_data rotate_data_vios_lth17 = {
+	.width = 800,
+	.height = 1280,
+	.rotate = FB_ROTATE_CW,
+};
+
 static const struct dmi_system_id rotate_data[] = {
 	{	/* Asus T100HA */
 		.matches = {
@@ -94,6 +100,14 @@ static const struct dmi_system_id rotate_data[] = {
 		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "TW891"),
 		},
 		.driver_data = (void *)&rotate_data_itworks_tw891,
+	}, {	/* VIOS LTH17 */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "LTH17"),
+		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "VIOS"),
+		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "LTH17"),
+		},
+		.driver_data = (void *)&rotate_data_vios_lth17,
 	},
 	{}
 };
-- 
2.13.4

Re: [PATCH] video/console: Add rotated LCD-panel DMI quirk for the VIOS LTH17

From: Bartlomiej Zolnierkiewicz <hidden>
Date: 2017-09-05 13:23:07

On Monday, September 04, 2017 04:26:01 PM Hans de Goede wrote:
The VIOS LTH17 Cherry Trail bases netbook has its LCD panel mounted
rotated 90 degrees, add a DMI quirk for this.

Cc: Daniel Drake <redacted>
Signed-off-by: Hans de Goede <redacted>
Patch queued for 4.14, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help