From patchwork Sat Feb 23 21:19:28 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: 10828339 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 A525C1805 for ; Mon, 25 Feb 2019 08:35:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 952F22A93B for ; Mon, 25 Feb 2019 08:35:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85AC82AB83; Mon, 25 Feb 2019 08:35:06 +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 8F9A32A93B for ; Mon, 25 Feb 2019 08:35:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0F28489256; Mon, 25 Feb 2019 08:34:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5E9DA899A3 for ; Sat, 23 Feb 2019 21:19:32 +0000 (UTC) Received: by mail-lj1-x244.google.com with SMTP id z25so4360393ljk.8 for ; Sat, 23 Feb 2019 13:19:32 -0800 (PST) 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=jqsimREQMl4RN0K1131jaopl5Npl+AQzCtsvFg9G/OA=; b=n8wqkrrr08SQ/RYc2c0wakXPaEFkia+pY1XhgMeShyPu8XnPgD+sdIY8K4Nc46JNNw uEwEwtGA5IbiSwnpHToZAByoX1uhaSxOrsIlaerwF/ZcXC+cP8AeKcFIVrsDFiYf1phD gJF1YcAtDo7whGEGHePDB9Zo13UzbornLIG0wnpLWALfo4VXhRVlG+lQCudAieZCwKUg bJ8j/cqcTlB6UL/ZdIM+yWHb6vcUR/JhKJr6pPZsIVi0me7vcqyrQ51x3X7m3H672Wa9 foyJIJrKbAkOyj2sYnQrrmfcbVcO1dvtBkUEK43MObp5un5KMgUROJOl03aM1SkQZgL6 QYqA== X-Gm-Message-State: AHQUAuZJj5Xy21kapaHaVX8e3XqO5Dz13EV45yc1nry2TdDe0MGsEoEA w7FuZaFGHd5jYsbq7h22TcE= X-Google-Smtp-Source: AHgI3IYYQbE3ZedKywcuZXd0NRaC9PeE8Lh8tCIk9LQsJaDWNjCnl1uRBFPwk1t+6S7tKas9bDpM6Q== X-Received: by 2002:a2e:9d17:: with SMTP id t23-v6mr5869022lji.57.1550956770632; Sat, 23 Feb 2019 13:19:30 -0800 (PST) Received: from vostro.lan (179.178.94.90.dynamic.jazztel.es. [90.94.178.179]) by smtp.gmail.com with ESMTPSA id c27sm1600264lfh.76.2019.02.23.13.19.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Feb 2019 13:19:30 -0800 (PST) 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 RESEND] drm: panel-orientation-quirks: Add quirk for Lenovo Ideapad D330 Date: Sat, 23 Feb 2019 22:19:28 +0100 Message-Id: <20190223211928.9899-1-howl.nsp@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 25 Feb 2019 08:34:29 +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=jqsimREQMl4RN0K1131jaopl5Npl+AQzCtsvFg9G/OA=; b=kpgQRZOqkA0ZHT/uNJI1/ibu7sgg4EnhlN9TxRTfYKR+Na8oxwadcxqwWK3DxptMYZ mt7Xp/Lu07s1q/BoyzeBwaqVpaDsKFHaaFKf0h5SE7qjGD9P6adJaa/nS0H1+gj+yJly Dow1b1XFjf7W6nyYsx1ffNs64paNM76mCwhcPD1dRD8ADAGbNG9pfflsUq0h/Sy5nFHv ap6M5vS+ghHea/aYHbQ6oT3wlMwtT0YiAgiETAxHfsLpQIMeq1nFl2NIPDMoANNYHE7y WkuXNkj2kIZcRRqmUsSMQJEot+PHHpJ460OsAj3Y/9OSHPBRB144J7vhv96awuxOvafI cAGA== 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 output 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(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index 52e445bb1aa5..521aff99b08a 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[] = { { /* 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"),