From patchwork Wed Feb 13 10:14:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: kernel test robot via dri-devel X-Patchwork-Id: 10812005 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 C73171399 for ; Thu, 14 Feb 2019 08:23:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B85012D8C5 for ; Thu, 14 Feb 2019 08:23:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ACA592D8CB; Thu, 14 Feb 2019 08:23:22 +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,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 6B6CF2D8C9 for ; Thu, 14 Feb 2019 08:23:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5C75889EB7; Thu, 14 Feb 2019 08:23:06 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by gabe.freedesktop.org (Postfix) with ESMTPS id A09606E6BA for ; Wed, 13 Feb 2019 10:15:03 +0000 (UTC) Received: by mail-ed1-x544.google.com with SMTP id r15so1412258eds.9 for ; Wed, 13 Feb 2019 02:15:03 -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=45pyAuVoRKi2d5xE+o328tZ5q6Ms16zaXHhUOeBiVYE=; b=uCXAkQm6WN1yufRTgBIxZ08FoIxLjXPuNzGfSyd9I1p2TZJOZFLphOM5Ji4rc/gcM6 2UAne9ndGeS9b/6+vnLvuvWHY1I+qW0htsXTriiMHDEFF0aDKTabM6tx/EACYCLv6NFu XwBpC1E535x5UbOB5nVyurKVkFmtFAXMrcIrJ89RFsE4sfsqQ2NUSKCMc5TXa5FHIsNu Pi8dobKbe+4FHvcS0utAh2RBqfZc276IuaapfQJWy4p2yZUny+t/QdreUHr1jGyizcRj pEyKSn3C1ToCNuIEs85uz6tRjVJ2WmXAX7tXD0YwuZUIKHXFbsowcSzze/FE4ZIyGE0p 1j/A== X-Gm-Message-State: AHQUAuaApiDP713wK348d/aUeZEseSjP/0Nu3lhSO92ePR48PjiYSB/r 0iOBtONBd63n3U/RpDrW6WhyUA7N299kIfU66kQ= X-Google-Smtp-Source: AHgI3IbPkpqm5TxP+gJf8EyZdCuj5IbNSyf1EoSPmypQbscEpeN5H1MIC4Ah61VT8iKXfjbq7SDYBkUYEWTVX+yg8EQ= X-Received: by 2002:a17:906:4ad9:: with SMTP id u25mr6018032ejt.176.1550052902248; Wed, 13 Feb 2019 02:15:02 -0800 (PST) MIME-Version: 1.0 Date: Wed, 13 Feb 2019 11:14:51 +0100 Message-ID: Subject: [PATCH] drm: panel-orientation-quirks: Add quirk for Lenovo Ideapad D330 To: Jani Nikula , David Airlie , Daniel Vetter , Thierry Reding , dri-devel@lists.freedesktop.org X-Mailman-Approved-At: Thu, 14 Feb 2019 08:22:46 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=45pyAuVoRKi2d5xE+o328tZ5q6Ms16zaXHhUOeBiVYE=; b=qTltRqoyP1sGw6PY6nQp+CYwccGbZRuSHMB2in3NVendgJ3fA9hmPy3SYim7OTrp32 J2OLwBLJx9Q5a04NT8py8cpIq1HIrilMIW1ZTSsamR8VnjFuZtgA8G4SRxWWg9myGXeB C4l2vygYv9PuKIEYC6TU1uIEIxT52sNk3E2NVfiThAq6y9Uei9pcAoosOruDmj2hfLpi Re69xZF0rKjvq/0sFy6GMt0uVlbAf2iHxYmvbv+FFLsvpHAmvTbiheDWIw6Ka7tA+hk0 w5W1Vu0vrhO8sOyHnFB72jffPCrzRTfgEtkI4RBe4kC2N6F0InoSKqkNkBn6WAIHkL6D e8wQ== 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: , X-Patchwork-Original-From: =?utf-8?q?David_Santamar=C3=ADa_Rogado?= via dri-devel From: kernel test robot via dri-devel Reply-To: =?utf-8?q?David_Santamar=C3=ADa_Rogado?= 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 = { @@ -130,6 +136,13 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_BOARD_NAME, "TW891"), }, .driver_data = &itworks_tw891, + }, { /* 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 = &lcd1200x1920_rightside_up, }, { /* * Lenovo Ideapad Miix 310 laptop, only some production batches * have a portrait screen, the resolution checks makes the quirk diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index 61d3361381b73..835574e2d5bf7 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[] = {