From patchwork Tue May 9 23:40:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Puthikorn Voravootivat X-Patchwork-Id: 9719059 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 45C7F60364 for ; Wed, 10 May 2017 00:20:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 379672845D for ; Wed, 10 May 2017 00:20:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C77928497; Wed, 10 May 2017 00:20:49 +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=unavailable 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 D35E92845D for ; Wed, 10 May 2017 00:20:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 75BD56E1E1; Wed, 10 May 2017 00:20:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg0-x233.google.com (mail-pg0-x233.google.com [IPv6:2607:f8b0:400e:c05::233]) by gabe.freedesktop.org (Postfix) with ESMTPS id E931B89DA6 for ; Tue, 9 May 2017 23:41:02 +0000 (UTC) Received: by mail-pg0-x233.google.com with SMTP id u28so7242666pgn.1 for ; Tue, 09 May 2017 16:41:02 -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=Fww0VxRG47J5gzwWrY/73fMxxLvb0N7dmLyAW/dkTs4=; b=kkqFOTCbf3BFu7BV6a+gsvKCZuKeMd3sSinMcWxXJs8y7Nbahlr6Pzd2rS8SaiUMeJ pdK23rCagx0ixrojjE4CYmu8/sf76V11u1BT9tL99OMLkIFdlpolTaIUasHPqD1drjuL a7cuti9UKminzIlrtKtGJE9ku1XNXXCvhoCItxMOAalqsF+BQiVJlnParqXqpUaMMqg7 zvsfTPjfOvlZXSracqKqWD08VFbB//hLDd1DK9a7g21qwUytCluNZXA4b3YtZijTXsUF tA6ddYa+ZAKd+mpKMCkt9XpKq53JcBc2DjHZamK79L22jrIXSIyBbS9EA//si9zWnamf H7/w== 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=Fww0VxRG47J5gzwWrY/73fMxxLvb0N7dmLyAW/dkTs4=; b=VJcacAA62GcTbtadZfm3wZa/gLOfD55WLDj25p3sKpahzKwf+iVw3qRWANFWPb+dhT d/vb/iQwlMjpYyfuA9LwBgljeKW9UTa4M1gPRQErH0UoL9PfZYvz5biUY/djc8BMRLVq WsXvx4BzcYEVqyTpkTapcAtqyJxBSCN+p8NyAYQtXMZE43z0FgukNpQgpFCUOLSTu85J Mt4WGj4LAl011VQACFljm2EJzt0gWK6XKqGVWR37ZgAhlwhnspT2FUssJdj/xxP1jgME roNGzyabmRZFyjfQqa58BDe4W/a5IjR2tgEY9ouOw+a5w5Mw1ktOethFHuWAgPmSfcvx Blfg== X-Gm-Message-State: AODbwcC1bosJShTyictNTmUxOpzGHlo3U9l7PJEwa57R+IW9VxVZ+lgS dDM/Jc3kPKARLnnn X-Received: by 10.98.57.80 with SMTP id g77mr2837821pfa.111.1494373262281; Tue, 09 May 2017 16:41:02 -0700 (PDT) Received: from puthik2.mtv.corp.google.com ([172.22.64.53]) by smtp.gmail.com with ESMTPSA id b126sm2108682pga.3.2017.05.09.16.41.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 May 2017 16:41:01 -0700 (PDT) Received: by puthik2.mtv.corp.google.com (Postfix, from userid 218808) id EF14A11F918; Tue, 9 May 2017 16:40:59 -0700 (PDT) From: Puthikorn Voravootivat To: intel-gfx@lists.freedesktop.org, Dhinakaran Pandiyan Subject: [PATCH v6 8/9] drm: Add definition for eDP backlight frequency Date: Tue, 9 May 2017 16:40:51 -0700 Message-Id: <20170509234052.189575-9-puthik@chromium.org> X-Mailer: git-send-email 2.13.0.rc2.291.g57267f2277-goog In-Reply-To: <20170509234052.189575-1-puthik@chromium.org> References: <20170509234052.189575-1-puthik@chromium.org> X-Mailman-Approved-At: Wed, 10 May 2017 00:20:18 +0000 Cc: Manasi Navare , Stephane Marchesin , Puthikorn Voravootivat , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Reviewed-by: Dhinakaran Pandiyan --- 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