From patchwork Tue Apr 18 23:48:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Puthikorn Voravootivat X-Patchwork-Id: 9686707 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 936DE602C2 for ; Tue, 18 Apr 2017 23:48:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85F9828354 for ; Tue, 18 Apr 2017 23:48:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7AD632838E; Tue, 18 Apr 2017 23:48:43 +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 4214828354 for ; Tue, 18 Apr 2017 23:48:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4DB146E231; Tue, 18 Apr 2017 23:48:42 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf0-x231.google.com (mail-pf0-x231.google.com [IPv6:2607:f8b0:400e:c00::231]) by gabe.freedesktop.org (Postfix) with ESMTPS id EE4056E239 for ; Tue, 18 Apr 2017 23:48:40 +0000 (UTC) Received: by mail-pf0-x231.google.com with SMTP id v14so28001pfd.2 for ; Tue, 18 Apr 2017 16:48:40 -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=z/xab5nDU1KfRCrozcFLUJoZ7OeodCkaksoXpZG/m6U=; b=V35g/JfQD+D1aLroL0NkbGKlJHJk+peiiKq0UeMf2PY6tZk8iK1BJBA4uZwKdPM4N7 l3RBpCX8saiaxnHNsHiOee/F7hp4P/QCwID6iQMrygvedQ7LNRhiqA7pDaRvVYAG8Njv ITQ+Wcj8qZHITfeGOD9TThlouGM6rxIKb0CVKw1mPZgj1rXDMg5SkpLEQbg5VFF8OLjX pJFk+K0YQFt+nv37PJtaJWiZXT8J0SCrKid7JM8JQHcJIANArNhL73fjhEiPubOuskv2 mBiybRTcswgm8NvrULdw724AuTR+bqJ8+ofKioCINfjjZfrF8dMEkzsvpfJQiA9burtd 4Psw== 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=z/xab5nDU1KfRCrozcFLUJoZ7OeodCkaksoXpZG/m6U=; b=sJDgb63yE+v9rqDCuwtAqXxLVgO3iLWF9y31CF55xYsg0B2Eb8i6Th1D/BZiRVjppf t9HqhZB+W+9UZaYlf9RYRM25CYolC/GyuvGjhy3sTjA0jxq6QF7I2ImtdmPTJv561R2P uWe4nRCMJccS2igYdMsLk3NC1V9cO3+xJ2W9bV05Ae8u7kgMJ4uS1/9+NiNCh1CiyqxI hr7OWPTUOJV56coBCGmJU8JpylVL8fnz/xh2sZ3/PO5LnDvFx82sLStxPq7zhG3hfcP9 mxkrLXnVka0yz6aea923K4W3gNdERSYT6kQr0oEB6a4PyJ1kZ7nsDV4oswPDo61qihTa cN7w== X-Gm-Message-State: AN3rC/7Gk8KacDniE0SOzpc0TGC9KlZbxGe9qZWzPe++kn7buQe6aSb0 ZHRZH9Oq/vCBO0Yo X-Received: by 10.98.60.93 with SMTP id j90mr55563pfa.72.1492559320467; Tue, 18 Apr 2017 16:48:40 -0700 (PDT) Received: from puthik2.mtv.corp.google.com ([172.22.64.53]) by smtp.gmail.com with ESMTPSA id p90sm537134pfa.119.2017.04.18.16.48.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Apr 2017 16:48:38 -0700 (PDT) Received: by puthik2.mtv.corp.google.com (Postfix, from userid 218808) id 961DE11F901; Tue, 18 Apr 2017 16:48:37 -0700 (PDT) From: Puthikorn Voravootivat To: intel-gfx@lists.freedesktop.org, Jani Nikula Date: Tue, 18 Apr 2017 16:48:23 -0700 Message-Id: <20170418234824.157355-6-puthik@chromium.org> X-Mailer: git-send-email 2.12.2.816.g2cccc81164-goog In-Reply-To: <20170418234824.157355-1-puthik@chromium.org> References: <20170418234824.157355-1-puthik@chromium.org> Cc: Puthikorn Voravootivat Subject: [Intel-gfx] [PATCH RESEND v4 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 c0bd0d7651a9..9aee65ebc54c 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