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: 9719025 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 BBDF76035D for ; Tue, 9 May 2017 23:41:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADC9928458 for ; Tue, 9 May 2017 23:41:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A16032847D; Tue, 9 May 2017 23:41:09 +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 5C42E28458 for ; Tue, 9 May 2017 23:41:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2353189DEC; Tue, 9 May 2017 23:41:05 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pg0-x22c.google.com (mail-pg0-x22c.google.com [IPv6:2607:f8b0:400e:c05::22c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0588189DAB for ; Tue, 9 May 2017 23:41:03 +0000 (UTC) Received: by mail-pg0-x22c.google.com with SMTP id 64so7208371pgb.3 for ; Tue, 09 May 2017 16:41:03 -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=Yw14R98BY7pI2vqy6/EFa2rEJEsH3iyN4N8GSzyFBs87ndMmTCxIdovxOQnT+wEfmI yQloYtfFZeZWHUL1hhhWYp1IQRqseWuazSRjX+Lub4ERMQy/aCFJt9bioWE+8rkmNkEn Gg4rypsBfAvEsoNWcK4qa/HEKBIYv2TVjAbkek3Lthxzsai/f2gK/HQMntOk7hmWQ1VH uHiewEC2d3fIaZAfEvJ+U+EPyCc9xCQnJneqRclO+jbz7ypxFOTL/PyvNUgAIuk4DYsq pItGMzx9FSkFn9LxVid6SI6DRLrfpyxcuGppQz4aumsDaIsa9Q0L30j5z6fsYN8Hpmgx ew7Q== X-Gm-Message-State: AODbwcDyuBxXrT24keTTGyasg4UXax6als8DKqwL57dLchXHlTRI68RJ tj/PVv0O03PTo+H4 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 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> Cc: Puthikorn Voravootivat , dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH v6 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..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