From patchwork Tue May 23 22:38:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Puthikorn Voravootivat X-Patchwork-Id: 9744395 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 130C66032B for ; Tue, 23 May 2017 22:38:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06DDD28818 for ; Tue, 23 May 2017 22:38:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EFE542885E; Tue, 23 May 2017 22:38:25 +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 9806028818 for ; Tue, 23 May 2017 22:38:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E06546E3A3; Tue, 23 May 2017 22:38:21 +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 02BAA6E396 for ; Tue, 23 May 2017 22:38:16 +0000 (UTC) Received: by mail-pf0-x229.google.com with SMTP id n23so127573144pfb.2 for ; Tue, 23 May 2017 15:38:16 -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=TmlgMygFKMisaSBjiWwJmLxYHn207N6UwUrO3NvlRNA=; b=dDfhZCcpk3vsF0UCO7yHXi6IbNwnMm78VB6MFUDzLSkpOVKGxQ3vQQ/D8MFoiJRiuQ OSRPXMJNj7X9WhqEgJDqL8fE54iQArdeXZpyjvbzCum1V8OV6Z86fubiQ5OehUEoaQo3 dDCcdnyFfLqP5whgnPSVKcPAqaAU/lEWmTMtCKTBDHBdYn21R6UiBCMsy3w8PMc8IcRx 3AXIXvYeeHGLU7dgNSiagXZML2sbR1KHw+e8dfB4d8jH6PM2JU+jaRz1MhLS8R6InM7k vaAm13PV7cPnZRwIYHLp0vuA6FisgD6wzmAh15gTjCX1mp1fHKjzEXp+MG8Ov1qJRzMH x+hg== 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=TmlgMygFKMisaSBjiWwJmLxYHn207N6UwUrO3NvlRNA=; b=Gvy3VgacS6t5rSly8U447e0AZJxEonBSddrP9ZZZ0cSFbt938ZWm9EaCefx0F3MP5r UCckuic/GfkFz1yTZPa/fc/v2bAKwYzgkb5CyVqzYg0gLLTYffcltizMWoJaW93ofq5t 0eP3NUToNZ9jQHXD4rYRmaKPX3hDlPw9mFnCKFISlWebAKgzh1n0AKpuLh7aNDWpzuFT JGTRjdlzkm/HEwQZ7GvwhASS5/r2CsCTsbAEe1P6qpIm1W2/Qe8kEHh3T5JYLudMT4l9 qTHitKl8z7iQH7uLMExA7Mj3eGkvU+CO3dHuRnJIECcHrYqjtxff/iJy24E3ChMBclzb k3hg== X-Gm-Message-State: AODbwcDjKGN+1wq7axCq9FWiNYFObHqVobwNMyApCR3w8NcUduxvna6V 3xtnHy7qCMDP3lN4 X-Received: by 10.99.113.75 with SMTP id b11mr34664140pgn.173.1495579095477; Tue, 23 May 2017 15:38:15 -0700 (PDT) Received: from puthik2.mtv.corp.google.com ([172.22.64.53]) by smtp.gmail.com with ESMTPSA id 67sm3446714pfn.84.2017.05.23.15.38.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 15:38:14 -0700 (PDT) Received: by puthik2.mtv.corp.google.com (Postfix, from userid 218808) id 7DEED11F924; Tue, 23 May 2017 15:38:12 -0700 (PDT) From: Puthikorn Voravootivat To: intel-gfx@lists.freedesktop.org, Dhinakaran Pandiyan , Jani Nikula Date: Tue, 23 May 2017 15:38:04 -0700 Message-Id: <20170523223805.46372-5-puthik@chromium.org> X-Mailer: git-send-email 2.13.0.219.gdb65acc882-goog In-Reply-To: <20170523223805.46372-1-puthik@chromium.org> References: <20170523223805.46372-1-puthik@chromium.org> Cc: Puthikorn Voravootivat , dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH v9 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