From patchwork Thu Jan 3 20:40:05 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: 10748117 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 61A9914DE for ; Fri, 4 Jan 2019 08:01:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 562C526E69 for ; Fri, 4 Jan 2019 08:01:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A59827F88; Fri, 4 Jan 2019 08:01:28 +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 0CA3026E69 for ; Fri, 4 Jan 2019 08:01:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A95C16EBDC; Fri, 4 Jan 2019 08:01:01 +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 70BDC6E5B4 for ; Thu, 3 Jan 2019 20:40:18 +0000 (UTC) Received: by mail-ed1-x541.google.com with SMTP id b14so30076810edt.6 for ; Thu, 03 Jan 2019 12:40:18 -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=a3WXxlPLFBNgMA9buU0Qy8zbnKKgEOnJ9KY979xCGWyWzgBCMP+gvZGdBdcH4M9SwQ fSlbHwT/JAISKGphy3S67yWJeolhNH6+ru9quAAeUyYXwWdOcss8P755JSQ69i97hvvf fFqHkAZRtM9J67palXu+QT7E7yuliMkvW/CxZr0x6yBNIaVhwrwLLW+5JDHK5DkEYWKW uBBc16jM7GCBiuBagI2NZR31z4n/lDHfeG5L8kqT0aqzN0NJ8TbrSTQspFmERFY8PlKE ZCYHRhx1bezMb7zPwSo39EERJeHrb7YZSblJwu/+tJhYLlfT+tZRqwpBG56bZJcQmL9h Gw1A== X-Gm-Message-State: AA+aEWY6SRsrgEUA4xYSUGwIrdeIdETrG0IPFdES8HCWOhZfT3jBGVSB pHkHfs3VY4qb5trEBQ/bvXaiTncPOxtF31eOuPNdJ5hh X-Google-Smtp-Source: AFSGD/WbIKtewk/GJ5MPF1Mt2cHu9o/yj73L+/WYBXqFQgWlWSVzv0TvwIgt5EwR4yEu1c3gv9Zhzsr8jm1E72yo/4g= X-Received: by 2002:a17:906:754e:: with SMTP id a14-v6mr37456195ejn.145.1546548017068; Thu, 03 Jan 2019 12:40:17 -0800 (PST) MIME-Version: 1.0 From: =?utf-8?q?David_Santamar=C3=ADa_Rogado?= Date: Thu, 3 Jan 2019 21:40:05 +0100 Message-ID: Subject: [PATCH] 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: Fri, 04 Jan 2019 08:00:57 +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[] = {