From patchwork Wed Aug 26 17:43:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 7078871 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EE434BEEC1 for ; Wed, 26 Aug 2015 17:43:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EE3C720949 for ; Wed, 26 Aug 2015 17:43:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD67C2094B for ; Wed, 26 Aug 2015 17:43:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752675AbbHZRnx (ORCPT ); Wed, 26 Aug 2015 13:43:53 -0400 Received: from mail-qk0-f174.google.com ([209.85.220.174]:36609 "EHLO mail-qk0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752307AbbHZRnw (ORCPT ); Wed, 26 Aug 2015 13:43:52 -0400 Received: by qkda128 with SMTP id a128so74120410qkd.3 for ; Wed, 26 Aug 2015 10:43:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Zw5GaRy0IepzWG1sWuqP5CnC4g6+IJysBCfe4eCMh3U=; b=L1zhrlT9KTVkFDKukdmQkW3k7IsdY5phi4GP3A3Xtiaj7ZIVyEdh1G98BCbNHZHU+7 KFM94bJ4/8xiRcAAz1+ETXdVPP473G7xxnBKpTAWkCHRdqkE3VsmT2/Qg7NWwNw1xWwo NKigHOv+z6i4cjUuqZn5rjWGq6E1bigPU+zctv9BfXHiLiG/i2bpqh4A35B0KqzgIN4Q lHANKVcSrdXYfYByn6eTF5L1PvxBzkdB3/o/XDlwC8Y2hFE0P9zdxJqPGViiKovbWZ1o 0YWMDG7T7zHxjb1LVlgC1Su+xIHTMcgiq1GqCy6vncU7+G8oJWwK5AJwBUHL+kdGQx9H vttg== X-Received: by 10.55.25.4 with SMTP id k4mr852418qkh.89.1440611032256; Wed, 26 Aug 2015 10:43:52 -0700 (PDT) Received: from jade.localdomain ([179.98.13.55]) by smtp.gmail.com with ESMTPSA id o96sm16856202qgd.23.2015.08.26.10.43.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Aug 2015 10:43:51 -0700 (PDT) From: Gustavo Padovan To: linux-samsung-soc@vger.kernel.org Cc: dri-devel@lists.freedesktop.org, inki.dae@samsung.com, jy0922.shim@samsung.com, tjakobi@math.uni-bielefeld.de, Gustavo Padovan Subject: [PATCH v2 06/11] drm/exynos: add macro to get the address of START_S reg Date: Wed, 26 Aug 2015 14:43:23 -0300 Message-Id: <1440611008-3473-8-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1440611008-3473-1-git-send-email-gustavo@padovan.org> References: <1440611008-3473-1-git-send-email-gustavo@padovan.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan This macro is need to get the value of the START shadow register, that will tell if an framebuffer is currently displayed on the screen or not. Signed-off-by: Gustavo Padovan --- include/video/samsung_fimd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/video/samsung_fimd.h b/include/video/samsung_fimd.h index 0530e5a..d8fc96e 100644 --- a/include/video/samsung_fimd.h +++ b/include/video/samsung_fimd.h @@ -296,6 +296,7 @@ /* Video buffer addresses */ #define VIDW_BUF_START(_buff) (0xA0 + ((_buff) * 8)) +#define VIDW_BUF_START_S(_buff) (0x40A0 + ((_buff) * 8)) #define VIDW_BUF_START1(_buff) (0xA4 + ((_buff) * 8)) #define VIDW_BUF_END(_buff) (0xD0 + ((_buff) * 8)) #define VIDW_BUF_END1(_buff) (0xD4 + ((_buff) * 8))