diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-07-11 01:38:20 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-07-11 01:38:20 +0000 |
commit | 14984c195e34a1e4e553d2f75261521214454125 (patch) | |
tree | 754d5b04c622bcd278a309395e75704652569283 | |
parent | 1770788b2537fa3618847b93f01ffbe3694a1f2c (diff) |
drm: panel-orientation-quirks: Add quirk for GPD MicroPC
From Hans de Goede
027e043f9c78c06d3c3e0fa657a831d7f3d82e9c in linux 4.19.y/4.19.58
652b8b086538c8a10de5aa5cbdaef79333b46358 in mainline linux
-rw-r--r-- | sys/dev/pci/drm/drm_panel_orientation_quirks.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drm_panel_orientation_quirks.c b/sys/dev/pci/drm/drm_panel_orientation_quirks.c index 08836367594..b44bed55421 100644 --- a/sys/dev/pci/drm/drm_panel_orientation_quirks.c +++ b/sys/dev/pci/drm/drm_panel_orientation_quirks.c @@ -42,6 +42,14 @@ static const struct drm_dmi_panel_orientation_data asus_t100ha = { .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP, }; +static const struct drm_dmi_panel_orientation_data gpd_micropc = { + .width = 720, + .height = 1280, + .bios_dates = (const char * const []){ "04/26/2019", + NULL }, + .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, +}; + static const struct drm_dmi_panel_orientation_data gpd_pocket = { .width = 1200, .height = 1920, @@ -93,6 +101,14 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100HAN"), }, .driver_data = (void *)&asus_t100ha, + }, { /* GPD MicroPC (generic strings, also match on bios date) */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Default string"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"), + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Default string"), + DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"), + }, + .driver_data = (void *)&gpd_micropc, }, { /* * GPD Pocket, note that the the DMI data is less generic then * it seems, devices with a board-vendor of "AMI Corporation" |