From patchwork Wed Mar 22 22:54:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Puthikorn Voravootivat X-Patchwork-Id: 9640235 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 0A818602D6 for ; Wed, 22 Mar 2017 22:54:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1A0A26E91 for ; Wed, 22 Mar 2017 22:54:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E693D284EE; Wed, 22 Mar 2017 22:54:57 +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 AEB1C26E91 for ; Wed, 22 Mar 2017 22:54:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 44B146E9E4; Wed, 22 Mar 2017 22:54:57 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pg0-x22d.google.com (mail-pg0-x22d.google.com [IPv6:2607:f8b0:400e:c05::22d]) by gabe.freedesktop.org (Postfix) with ESMTPS id B231A6E9C9 for ; Wed, 22 Mar 2017 22:54:50 +0000 (UTC) Received: by mail-pg0-x22d.google.com with SMTP id 21so80518410pgg.1 for ; Wed, 22 Mar 2017 15:54: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=fc2Ywg04xn5EKVQ2xpXVS8k2drQ/2jJzcfENY4uc3+A=; b=XslQcoS+PnMkSj0JyRpkTCW749hLFGwo6JZjG7XL9UM7iiP+iVi40IOSrL6qms3X+Y 91R1FduNRJR4zjYwGhUF6NSQIekr0lh80zal32SHz4uTfXr2+rFtQBwcTH9Fg0p7v9kB f5AwZcxPZtDRTIxKORZOxM5f0Q08VlBioZDF3ffv+fG6Gi5NJw2cvA6xZZBE0C5nWDt6 xQ/2oT5W7iRAylq6FHLO886+ZoURaw9nhLtwVNy/0MDhKttcwRUZ1zS3CCzGhC/W7D8f 365Z93A0v12PO/aGBJ0o5s+h+IwdGM7P3tW2yKL5+dQwoScLK2otMN2wSsb/slnp4uZ1 QiAA== 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=fc2Ywg04xn5EKVQ2xpXVS8k2drQ/2jJzcfENY4uc3+A=; b=kM4oAM+9Tg9AqAeKOgFpjqpFfFqRx2UGYwJQLBWVLDyoiH4VJTnhPsVuD1m98+BjAT TWLRXDX+hUCbJnifopXU3vOB+/x9zB5L8UisGTdNv/Xs5iElG6lMwyaQCklv8BDAxRIs bv+yk1D9lEzV71wmz8ljNlcQjv5IRiGQYsOA9MkNUK8caHwu9gspH1EkOggGTRVMwKgq LGVvMNRh65LRk7146j0P+yVredQqeRyLfQg+E8umzhcov5A7+yF198ZJd+5a5qGQ2L+J HAbafTuE8FvVOQZneWKd0bl1zhz5FDMLdgWyKhXnW66r4OJ5v7ugHRWvVey9jhyRnXYd RKKg== X-Gm-Message-State: AFeK/H37A2ntjlAJbakCjscgZThyBukf1EHYmvyR9MLanq34AZwVHqznqMcqOcT1F7pdFJka X-Received: by 10.98.138.132 with SMTP id o4mr49925816pfk.70.1490223290162; Wed, 22 Mar 2017 15:54:50 -0700 (PDT) Received: from puthik2.mtv.corp.google.com ([172.22.64.53]) by smtp.gmail.com with ESMTPSA id l126sm5877344pfl.56.2017.03.22.15.54.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Mar 2017 15:54:49 -0700 (PDT) Received: by puthik2.mtv.corp.google.com (Postfix, from userid 218808) id B8C6511F8B2; Wed, 22 Mar 2017 15:54:46 -0700 (PDT) From: Puthikorn Voravootivat To: intel-gfx@lists.freedesktop.org, Jani Nikula Date: Wed, 22 Mar 2017 15:54:42 -0700 Message-Id: <20170322225443.79343-6-puthik@chromium.org> X-Mailer: git-send-email 2.12.1.500.gab5fba24ee-goog In-Reply-To: <20170322225443.79343-1-puthik@chromium.org> References: <20170322225443.79343-1-puthik@chromium.org> Cc: Puthikorn Voravootivat Subject: [Intel-gfx] [PATCH v4 5/6] 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. Cc: Jani Nikula 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 ba89295c8651..8fba8c6e6231 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 (31 << 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