From patchwork Wed May 17 00:34:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Puthikorn Voravootivat X-Patchwork-Id: 9729827 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 37A2F60138 for ; Wed, 17 May 2017 00:34:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AAD7201F3 for ; Wed, 17 May 2017 00:34:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F4DB286C4; Wed, 17 May 2017 00:34:28 +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 C64F6201F3 for ; Wed, 17 May 2017 00:34:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1074E6E38E; Wed, 17 May 2017 00:34:25 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf0-x229.google.com (mail-pf0-x229.google.com [IPv6:2607:f8b0:400e:c00::229]) by gabe.freedesktop.org (Postfix) with ESMTPS id CC73B6E38C for ; Wed, 17 May 2017 00:34:23 +0000 (UTC) Received: by mail-pf0-x229.google.com with SMTP id 9so48508956pfj.1 for ; Tue, 16 May 2017 17:34:23 -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=Er0GsaNoNDLXikFwbWuBmnvjZqQ0bEASEwDxf0eBnE8=; b=NMBGB1/V02ChFUSGt3tCh9/GrQTpyzY50I4B16pTG/0nj2IlYh8BEq6ntxk6bFqyRP 14MCmgIQ1WtJhYh05CBb7g6oGWCM1OK/QN4ZtUMxGYdWvJlBtWsLP1qBBxnGr6qUSe2N 8ufbz/9q8/Bo24g7IuUwsPtPz7131FLJWGkdHOSbRWRZoUPcbeMqoh0+oL2KB+t7UPee PG4pAi1aDBQjQWLY5Oz32xJDUKfvt1prOE3BUJiAQKXD+arK8dgn6i0bf3uOLDduk7lq 92w5DFKAqae42IVlcBtgHolmA9jQOhXBh40mCUgclyjDkUdzBMY2v3aghnmjsgIgSi8U 3+kQ== 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=Er0GsaNoNDLXikFwbWuBmnvjZqQ0bEASEwDxf0eBnE8=; b=D6va7oeC+biCZyuxHhAU18NEwxJOk1OahovwzL7RNNlWfyCbbFGudtWSSD4O5uDBU+ bYZifDH095SID7Mg/06WPclcYcLmKVv+mfQaFV7L0PKKtMOX3PAcwTl1SZ+vmJGXGozZ sXjX+N7X8tMP+DoLNS+FHka80dN6jtTV54W5KAr1m/bdWZIsXlIj9MURVj9wVVrR/KK6 +OYCZWWMACtUXudddTaCfHzxE8L0Ll3AWMVMqfSVFnU+ZAzLjuij58BoRptSZ3JN0G+I uENsyRK+wcP6kzqneA4KLynZeU+PZ4N10nZVUWGuebxpZDUQs7/EJ/JiYPmDxPpOflv1 2yiw== X-Gm-Message-State: AODbwcDXd+Bmq/ZpKrTmdQPWJjY2HdgIhMAMWOhv72nRXLCHTKMgJWub DKMu//8JpetCqSql X-Received: by 10.99.178.8 with SMTP id x8mr794528pge.80.1494981263083; Tue, 16 May 2017 17:34:23 -0700 (PDT) Received: from puthik2.mtv.corp.google.com ([172.22.64.53]) by smtp.gmail.com with ESMTPSA id c12sm334416pgn.21.2017.05.16.17.34.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 May 2017 17:34:21 -0700 (PDT) Received: by puthik2.mtv.corp.google.com (Postfix, from userid 218808) id 34CB811F922; Tue, 16 May 2017 17:34:20 -0700 (PDT) From: Puthikorn Voravootivat To: intel-gfx@lists.freedesktop.org, Dhinakaran Pandiyan Date: Tue, 16 May 2017 17:34:02 -0700 Message-Id: <20170517003403.152680-5-puthik@chromium.org> X-Mailer: git-send-email 2.13.0.303.g4ebf302169-goog In-Reply-To: <20170517003403.152680-1-puthik@chromium.org> References: <20170517003403.152680-1-puthik@chromium.org> Cc: Puthikorn Voravootivat , dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH v8 4/5] 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 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..eaa307f6ae8c 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_KHZ 27000 #define DP_EDP_BACKLIGHT_FREQ_CAP_MIN_MSB 0x72a #define DP_EDP_BACKLIGHT_FREQ_CAP_MIN_MID 0x72b