From patchwork Tue Jul 30 19:49:11 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: 11067145 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 931F2112C for ; Wed, 31 Jul 2019 07:13:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C52E28847 for ; Wed, 31 Jul 2019 07:13:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7073E28869; Wed, 31 Jul 2019 07:13:35 +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 8FB9628847 for ; Wed, 31 Jul 2019 07:13:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D8E416E681; Wed, 31 Jul 2019 07:13:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id D5EF46E602 for ; Tue, 30 Jul 2019 19:49:15 +0000 (UTC) Received: by mail-lj1-x242.google.com with SMTP id v24so63366709ljg.13 for ; Tue, 30 Jul 2019 12:49:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=ijchHjsc04USS6jZ7Gr5KW0FT9mbH0Y1GGS8zErdl+M=; b=cOXrVbmeAv9WodX95gpAyvegDk2tVcMoADSBAfYr664BtU/ARaZIbBqc7TkDND+MY0 CT4WA2X9JPXXIftKGlp+iJnhMvrwOKxCUTBfQe8pPGBATfHDvhEUtShAA3KcDTLWMUJ0 O4gxcHU2FnUXNbnXqTmV3WyLxqBqR/k8WCFMpNReUBcMk2vGE+6T9T+IJdnOjrW/BjLm DR1JIFZkKZZmvy0TlfhHDwuhBR967PexIflEoA42Ntj1VHfvLVzV/BXYOMpQcaPBdPZa p6YyYrCsDHY0+0QBjdnlC3JKZQkdt4GHMxYPIu532+yoZARifxrPAM0gPFuK9jTggXxA 1I2Q== X-Gm-Message-State: APjAAAUPRqlGkn8xXEfP6bdaAgFgnSTIoCey089flsYvyUWzEoQE7m1M fae8p1vLjyhSrySDTvDUQYY= X-Google-Smtp-Source: APXvYqwRDgOqDUOiW6wMxjvX+WOKzpnMUrdhcagMob93JB3/mueXtJNV94VaJTTANtEX6ljR9nc/6A== X-Received: by 2002:a2e:a415:: with SMTP id p21mr61979381ljn.111.1564516154243; Tue, 30 Jul 2019 12:49:14 -0700 (PDT) Received: from vostro.lan (18.177.94.90.dynamic.jazztel.es. [90.94.177.18]) by smtp.gmail.com with ESMTPSA id c15sm13405255lja.79.2019.07.30.12.49.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 30 Jul 2019 12:49:13 -0700 (PDT) From: =?utf-8?q?David_Santamar=C3=ADa_Rogado?= To: Jani Nikula , David Airlie , Daniel Vetter , Thierry Reding , dri-devel@lists.freedesktop.org Subject: [PATCH] drm: panel-orientation-quirks: 320 FHD and D330 HD Date: Tue, 30 Jul 2019 21:49:11 +0200 Message-Id: <20190730194911.28453-1-howl.nsp@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 31 Jul 2019 07:13:21 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=ijchHjsc04USS6jZ7Gr5KW0FT9mbH0Y1GGS8zErdl+M=; b=oO8AZ2hYAjXa1bdPal3d4ttxzmltvGFsE0uKpRX4HjHjepe0t56qJ2+HIQfXjaICsr crBHMD7NRWRet83/rfewnHlt66ms+nYFKaaSRhteFyYWFOWkUFFEdLv+de02FrcnrI2G HNitDO2jBYgD4pTbVb8RtDbeBfb1bCm9yCSXhklsK6ZqwmtBqHV/BT9NQNkcstIU4uEd CgZ95uyue4HOB33JXuduZ5NAOTn0gtzrYczgYLDG+5LRRfBDuqYxS0tIn+0mi/+kYXsl 7Y7jMlMRS5Cx/fa1Z/W4hMEs1PrCwUMzp1+f0wpnrcW4sx9twzdwS3wRmXoyVIEhteEw qppQ== 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 This adds the HD version of Lenovo Ideapad D330 and FHD version of Lenovo Ideapad Miix 320. This should work despite the dmi data is the same because the resolution checks. Signed-off-by: David SantamarĂ­a Rogado Reviewed-by: Hans de Goede --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index ffd95bfeaa94..896c783ce135 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -191,14 +191,28 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "MIIX 310-10ICR"), }, .driver_data = (void *)&lcd800x1280_rightside_up, - }, { /* Lenovo Ideapad Miix 320 */ + }, { /* Lenovo Ideapad Miix 320 (HD) */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80XF"), DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"), }, .driver_data = (void *)&lcd800x1280_rightside_up, - }, { /* Lenovo Ideapad D330 */ + }, { /* Lenovo Ideapad Miix 320 (FHD) */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80XF"), + DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"), + }, + .driver_data = (void *)&lcd1200x1920_rightside_up, + }, { /* Lenovo Ideapad D330 (HD) */ + .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 *)&lcd800x1280_rightside_up, + }, { /* Lenovo Ideapad D330 (FHD) */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "81H3"),