From patchwork Thu May 11 23:02:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Puthikorn Voravootivat X-Patchwork-Id: 9723233 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 0F5A660236 for ; Thu, 11 May 2017 23:02:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 060BC28738 for ; Thu, 11 May 2017 23:02:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEB1E2873F; Thu, 11 May 2017 23:02:51 +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 B29D128738 for ; Thu, 11 May 2017 23:02:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D3CF56E612; Thu, 11 May 2017 23:02:46 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf0-x234.google.com (mail-pf0-x234.google.com [IPv6:2607:f8b0:400e:c00::234]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5A0666E5FD for ; Thu, 11 May 2017 23:02:41 +0000 (UTC) Received: by mail-pf0-x234.google.com with SMTP id n23so15726738pfb.2 for ; Thu, 11 May 2017 16:02:41 -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=LJB/n9oYZjAONbBiG8xX/aXriMBj3yPuC9V924VK1Y0=; b=HjbxS3bZy8RTxk63Et2NNgckpHkWlB8LYy6Gk0RgPkIRxqGb47kcyZeD4ubQxqXzHe /RgHDldrU+O018/UPQO/jqhcZ72xrXtHW2/cTQzn87CIXFKkJzU6U3psEf6jf9V+3i/a Qj0AwJ5LbEABzixDam+XE4XpyO1Mrsr2vp/7tpGU/VdsfpLjYVIQjMstqvXe6ioteN0I iy9OTDSxWpGzM83lChHpBtYmXnUxhZqxe3SG8PuNdVTXSMonZ+GhIZeISupDDp0MWIge swCuz/g/I6SkCpeBEKzYSLqfZqT7woCt6Yxb6hdOr9erYOdeOFRwMM8PXOUishdkfqmv 4DJg== 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=LJB/n9oYZjAONbBiG8xX/aXriMBj3yPuC9V924VK1Y0=; b=IVA4K24RLg0XX8TejIfnPLRxSNznx75SNtqKOEcstta0x7G4pVjPveHK8x8/rAqFm5 qwas3wIdL6HcVXY3rJk+ufgRY1y0RsMSvegpY0fBw06nPbSGDYw/DUdNKZKVLpmhYeNC 0gCadv9aRL+XAC+diIgGeYsnIrscp5YkW/Z0caEY/SYfjpk3b+f0ARml8b+KyZm/dw2B S9Q8TybO3bk7l3DSJNzESUOUTo8I/27rwvnKIwjGsW1yGWHaivW4rLmCJ5O8bx36IyTJ xWNcoBuZehcAA5arDBSEcyZs2DEpZ9tQf8MktjDqwwKNr+iprPJqvBRUcCHtAhjIMZd1 TMFQ== X-Gm-Message-State: AODbwcA65X61rQtEVfGfUqOKG+Rb6yWm1iOW/jIo259c5TjiUin4dBoZ +YAt/0hG8JNY+K3q X-Received: by 10.99.115.17 with SMTP id o17mr999771pgc.146.1494543760819; Thu, 11 May 2017 16:02:40 -0700 (PDT) Received: from puthik2.mtv.corp.google.com ([172.22.64.53]) by smtp.gmail.com with ESMTPSA id p76sm1846271pfa.53.2017.05.11.16.02.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 May 2017 16:02:40 -0700 (PDT) Received: by puthik2.mtv.corp.google.com (Postfix, from userid 218808) id 9D68A11F934; Thu, 11 May 2017 16:02:37 -0700 (PDT) From: Puthikorn Voravootivat To: intel-gfx@lists.freedesktop.org, Dhinakaran Pandiyan Date: Thu, 11 May 2017 16:02:24 -0700 Message-Id: <20170511230225.142870-9-puthik@chromium.org> X-Mailer: git-send-email 2.13.0.rc2.291.g57267f2277-goog In-Reply-To: <20170511230225.142870-1-puthik@chromium.org> References: <20170511230225.142870-1-puthik@chromium.org> Cc: Puthikorn Voravootivat , dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH v7 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 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