From patchwork Sun Feb 10 23:16:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?David_Santamar=C3=ADa_Rogado?= X-Patchwork-Id: 10805231 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C20D913B4 for ; Mon, 11 Feb 2019 08:15:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B37AA29348 for ; Mon, 11 Feb 2019 08:15:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A77EC299DF; Mon, 11 Feb 2019 08:15:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6CA6129348 for ; Mon, 11 Feb 2019 08:15:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 00D5D6E1B1; Mon, 11 Feb 2019 08:15:26 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by gabe.freedesktop.org (Postfix) with ESMTPS id 569D56E121 for ; Sun, 10 Feb 2019 23:17:02 +0000 (UTC) Received: by mail-ed1-x541.google.com with SMTP id d9so2465728edh.12 for ; Sun, 10 Feb 2019 15:17:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=O5wtsiWD/HLd0y5ELEnyBxWjUSw0eaBih7ERdgSqH4k=; b=LZDOWiL2s69KHtHWbvi1yZBj7n79Z+VOpzwNuE4lWENguwvV4HiTpz2hkXq7T5R/xI wVA/qw2P+DMorghyK8tu96DErRhtcAG2COocOndH3MLy+gQqzcC22zv63PIyui5nFuT5 3gLGFdIdI0nIEY4Gr9YDv18SotIaeNri0Py653EO82Qs+OYaOQkr2HMKseDIHf6S7F3V BI2BAPDNgxCIc3oaIIcAqhiuDx1GQZ8VmMFO/iuk7wPOKMMdaxCZBrytNC+3Lusn7i3+ GLTaG28bI3CEXv2YhbwxxkS4AXrYizmNNPDxx11HdRG50K2j5TiXpIFREDVpe0lzoYWh xbCQ== X-Gm-Message-State: AHQUAuasoBVM8X+sIsH+uwkpa3zx0FCaM6VOt4jYYLSO49cqpRkERMhe 3Zms0BhDHKZBo1KNBXBgAODy5x6ggTKqVxMA6r8= X-Google-Smtp-Source: AHgI3Ib7RpM54WdoSA+CAXIngkECq8iKa101thCdnW7vgh3A+mo6hk9f/O0un1sLXgF7osO7wvXy7GUPBuqxW7lXfSM= X-Received: by 2002:aa7:c906:: with SMTP id b6mr26723118edt.17.1549840620949; Sun, 10 Feb 2019 15:17:00 -0800 (PST) MIME-Version: 1.0 From: =?utf-8?q?David_Santamar=C3=ADa_Rogado?= Date: Mon, 11 Feb 2019 00:16:50 +0100 Message-ID: Subject: [PATCH RESEND] drm: panel-orientation-quirks: Add quirk for Lenovo Ideapad D330 To: David Airlie , Daniel Vetter , Thierry Reding , dri-devel@lists.freedesktop.org X-Mailman-Approved-At: Mon, 11 Feb 2019 08:15:25 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Lenovo Ideapad D330 Pentium CPU version has 1920x1200 LCD. Console ouput gets rotated at boot as Miix 310. Signed-off-by: David SantamarĂ­a Rogado --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) { /* Acer One 10 (S1003) */ .matches = { @@ -148,6 +154,13 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"), }, .driver_data = (void *)&lcd800x1280_rightside_up, + }, { /* Lenovo Ideapad D330 */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "81H3"), + DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"), + }, + .driver_data = (void *)&lcd1200x1920_rightside_up, }, { /* VIOS LTH17 */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"), diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index 52e445bb1aa58..521aff99b08a6 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -80,6 +80,12 @@ static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = { .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, }; +static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = { + .width = 1200, + .height = 1920, + .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, +}; + static const struct dmi_system_id orientation_data[] = {