From patchwork Wed Mar 15 23:41:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Puthikorn Voravootivat X-Patchwork-Id: 9626855 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 7711C604A9 for ; Wed, 15 Mar 2017 23:41:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68ECC285ED for ; Wed, 15 Mar 2017 23:41:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DB2B285FC; Wed, 15 Mar 2017 23:41:24 +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 21660285ED for ; Wed, 15 Mar 2017 23:41:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 167146E984; Wed, 15 Mar 2017 23:41:23 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pg0-x22f.google.com (mail-pg0-x22f.google.com [IPv6:2607:f8b0:400e:c05::22f]) by gabe.freedesktop.org (Postfix) with ESMTPS id A2A226E2F8 for ; Wed, 15 Mar 2017 23:41:19 +0000 (UTC) Received: by mail-pg0-x22f.google.com with SMTP id n190so16034911pga.0 for ; Wed, 15 Mar 2017 16:41:19 -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=Vt1/wP7BUSj6gEn2OfdtkaYWK+QSvHcVYcBT/UC7RqA=; b=jbuj4+oc/jv/Hvyt8ikS+xedA+rkFpm4raYhxmFWPl7K0AE4TybdG27PHLCKPiI7uQ 8r3xmVKZl7HFq8Jx+6Mjef5pDnT7Ru4W/FeJ9ckKl6qL3jEwhL56Jp7IxDC5fTHSXMJo Oa4AEtRvvq+cuIPeu7voEoZILT1S+nIU/UdWVtIRstkbnuvnwqL1XAKTU5tRyZvUCX8Y 12SaOeMkzwpmBroSneq0veH5J02pVWGTw0os2jYErR5SFbQ7amT1sQcFTb33sOk3WomO ey12snEs8QdPvKcdv26OYHuPxhkVzktWdopF4+UQwUyRWE7fsHdd2cfQ+w+b85PBKVot RGuw== 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=Vt1/wP7BUSj6gEn2OfdtkaYWK+QSvHcVYcBT/UC7RqA=; b=tQbeOYaalBnbhVbHDtNzj01wqsLHZbTJC5dS1fFpBYS661vTc1rXg8MN/0z5dAccWA Axcmy6CrKLLd40xAMJ+f2S9iveRIy7Los1GxJjw5FQp1bsiTwuHYVb0+QmDKgk579Otc aDdXGFS31REJvMHngWASB7tdnZqIheH/zssbTcqPcRu1le8jm3Dp9ORY0vw/o0bQHWLG ongGCBTIeqaBOsR4c0casf4pMFOSi2jL4bTPg7pysXMZ0JZ4PAzis1YVbfL+EwRqWKCG RXP9ZCPC0DbdF9q4CyIEfykwrtk4T2GM7PSauxk+Xh3oRGCziDx6YhEHlaehQY6Tm6Nn K7Mw== X-Gm-Message-State: AFeK/H3nLK9U6BermwAPNTIO0LVYcemZ26YUGoy3f6PXtd6AdxS7DCbTV21R/DlPixlLVZc/ X-Received: by 10.99.101.199 with SMTP id z190mr6487022pgb.219.1489621279188; Wed, 15 Mar 2017 16:41:19 -0700 (PDT) Received: from puthik2.mtv.corp.google.com ([2620:0:1000:1301:d489:2ecd:5d1e:a97]) by smtp.gmail.com with ESMTPSA id r71sm6258556pfa.104.2017.03.15.16.41.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Mar 2017 16:41:18 -0700 (PDT) Received: by puthik2.mtv.corp.google.com (Postfix, from userid 218808) id 05DFF11F9E8; Wed, 15 Mar 2017 16:41:15 -0700 (PDT) From: Puthikorn Voravootivat To: intel-gfx@lists.freedesktop.org, Jani Nikula Date: Wed, 15 Mar 2017 16:41:10 -0700 Message-Id: <20170315234111.57204-6-puthik@chromium.org> X-Mailer: git-send-email 2.12.0.367.g23dc2f6d3c-goog In-Reply-To: <20170315234111.57204-1-puthik@chromium.org> References: <20170315234111.57204-1-puthik@chromium.org> Cc: Puthikorn Voravootivat Subject: [Intel-gfx] [PATCH v3 5/6] 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 --- 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 ba89295c8651..8fba8c6e6231 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 (31 << 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