From patchwork Thu May 4 00:28:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Puthikorn Voravootivat X-Patchwork-Id: 9710649 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 493D360385 for ; Thu, 4 May 2017 00:28:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B85A28648 for ; Thu, 4 May 2017 00:28:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F3172867A; Thu, 4 May 2017 00:28:55 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 F058D28648 for ; Thu, 4 May 2017 00:28:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 53FB96E3CF; Thu, 4 May 2017 00:28:51 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf0-x232.google.com (mail-pf0-x232.google.com [IPv6:2607:f8b0:400e:c00::232]) by gabe.freedesktop.org (Postfix) with ESMTPS id CA8E86E3CE for ; Thu, 4 May 2017 00:28:50 +0000 (UTC) Received: by mail-pf0-x232.google.com with SMTP id q66so2472222pfi.3 for ; Wed, 03 May 2017 17:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=iSsPqc71s4XfwehXeqtkkXdWm02muwP6nydgJ5hbpTE=; b=cSbjUd1eHoJbelaVgkQ5y1gQuB4DpFBk5Nohz6DL050Vn47kpomm74Haz898+o/mGD G6sythn/3pN4wN69vGNKl0iCI+wZYdYwBum1cHuYxzyqtP0Q6StIC9Yol1dOhi9WZDbm AvB3GuuHNyMb3UziBP7M6jkWWleFWUrN/wZCr3FSPOJ+5V3UwJN+X/oxmMoPwnvarKvO 33YoTZSPixZyAo5rHrE+OJs1IEBlfX6fxPt5Q8Uh+byYDCpPJju5TM5/Gq52rtz8ypQc 3XlnzmlJ4FYvHGKW6wE8+BPgBwuJ4iHoUgqrvPsVKXWya2bokICWQK07aGcpW/m1hx3S 4k7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=iSsPqc71s4XfwehXeqtkkXdWm02muwP6nydgJ5hbpTE=; b=TPzcGJy/6eyGEw3qclOniMzNfKOBzrl7pSpEUC6y//xHyzBOu7QYVNvRXKOgWgos2w 3Gat7Rbddc75JLjAjqDHhRBLaup2mV1TZhjjaWgNS3X+0w371fNB8esY/GEJYhkeuetw BRzsewzvpnoyx2k27xuD92CDPAFjUxoernfkuv2XtkM7yEiKE6dLh3SPVWDSRzvHblW9 N12HC6YAsCP8UPT9pQfMUrtwjtJPzNiZsW7qahrhHkheDH12ZG0QbQE9JKXBL0Uk11HA rQuuz9NmwyTnCDibNV5lHJpLiXV8Az+aoQn6TE7VJyH2vIcjokRlrtnY3izb85UZ0FCh Xhuw== X-Gm-Message-State: AN3rC/4uVrW7vcAwT1Uif46bMDDX2ICr33DVa2GVlc7HTZyH5it+3aNv Ry4a0u8vr/bh5Tvs X-Received: by 10.98.131.197 with SMTP id h188mr7584223pfe.99.1493857730264; Wed, 03 May 2017 17:28:50 -0700 (PDT) Received: from puthik2.mtv.corp.google.com ([2620:0:1000:1301:8cfe:b3:9bd6:49ad]) by smtp.gmail.com with ESMTPSA id q24sm453679pgn.58.2017.05.03.17.28.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 May 2017 17:28:49 -0700 (PDT) Received: by puthik2.mtv.corp.google.com (Postfix, from userid 218808) id 4E90C11F8E9; Wed, 3 May 2017 17:28:46 -0700 (PDT) From: Puthikorn Voravootivat To: intel-gfx@lists.freedesktop.org Date: Wed, 3 May 2017 17:28:35 -0700 Message-Id: <20170504002836.120988-9-puthik@chromium.org> X-Mailer: git-send-email 2.13.0.rc1.294.g07d810a77f-goog In-Reply-To: <20170504002836.120988-1-puthik@chromium.org> References: <20170504002836.120988-1-puthik@chromium.org> Cc: dri-devel@lists.freedesktop.org, Puthikorn Voravootivat , Dhinakaran Pandiyan Subject: [Intel-gfx] [PATCH v5 8/9] drm: Add definition for eDP backlight frequency X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the following definition - Bit mask for EDP_PWMGEN_BIT_COUNT and min/max cap register which only use bit 0:4 - Base frequency (27 MHz) for backlight PWM frequency generator. Signed-off-by: Puthikorn Voravootivat --- include/drm/drm_dp_helper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index c0bd0d7651a9..810b7d5d9f2b 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -572,10 +572,12 @@ #define DP_EDP_PWMGEN_BIT_COUNT 0x724 #define DP_EDP_PWMGEN_BIT_COUNT_CAP_MIN 0x725 #define DP_EDP_PWMGEN_BIT_COUNT_CAP_MAX 0x726 +# define DP_EDP_PWMGEN_BIT_COUNT_MASK (0x1f << 0) #define DP_EDP_BACKLIGHT_CONTROL_STATUS 0x727 #define DP_EDP_BACKLIGHT_FREQ_SET 0x728 +# define DP_EDP_BACKLIGHT_FREQ_BASE 27000000 #define DP_EDP_BACKLIGHT_FREQ_CAP_MIN_MSB 0x72a #define DP_EDP_BACKLIGHT_FREQ_CAP_MIN_MID 0x72b