Received: by 10.192.165.156 with SMTP id m28csp492889imm; Thu, 19 Apr 2018 02:35:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/ikMIXCAYzZvKPJUZL3ffWRroMX7DqDM2PIDz9fhtl2q4TOvbPXTEXqIea0sx5mNMPQmIw X-Received: by 10.98.68.86 with SMTP id r83mr5175988pfa.145.1524130535017; Thu, 19 Apr 2018 02:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524130534; cv=none; d=google.com; s=arc-20160816; b=uSvbOizgaKK30hBT7oJaM+ct7beq4w+9tRb8NsBpr5S8u1s1HunEpNnevCc60qtqrk x/VTbAlQ3BVWatBTSdH0vP/r++JLhUI4IGteR9wI5FQZzWC4nbDnX6go1ckcF8YfyvDR nLWYy+kjCJG7U6+otU8U/DLS78MjxtkUH6uLNofB4UC1Z0aYRMCRcBGUGNMlx5OW8z06 GRSb34vabj0VQptnkNYR8etvaE4MoKSOG9cp786X581cKliRqe0cuAaC2g4V+6f5ft3F vmG/eKqKo4XMLJMNWjZdtFBxgskAxIaEHkTZQ2CExl6pbLp/JNBdVqAtsGUk0hwaS7Yo iO9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=jW0AAnEWFv7f5Y9MpdGEtOHlFWj6qbYFcCMh54ykZAQ=; b=sMZQmeDTGeSSA6fTxzD5NF2/9CKMNsEqkfJpN6t3HIel7kejIN1sKZ3ccCekGtSThz ZhTfGk3b2IOhTBPE/zrqGJ172XCVonG0FvuS8Vn+lKZDfTYWjBQ+Iy3LCiYebTpWkg7u lR5tlTM08Vfqj/1XVjj44ir9xsKi6UtX8sLSyvkfzzkpzYKX906rh4KjgYJ64VmBmnKt g2hgVLgav+EsWo99yocqAvP5jPJsn9UoUMHHX8zD5leeFaxOvh2BxA4xqYgzxRWnT2CV dr47PTGCwjvNinM9EjFqP76ZaUvyHKZ58+bTxBfXOn6F/QVb9kvU6XNOPfx4k4MdnqKg cXpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3-v6si3017498pla.505.2018.04.19.02.35.20; Thu, 19 Apr 2018 02:35:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753048AbeDSJde (ORCPT + 99 others); Thu, 19 Apr 2018 05:33:34 -0400 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:35670 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752780AbeDSJce (ORCPT ); Thu, 19 Apr 2018 05:32:34 -0400 Received: by wens.csie.org (Postfix, from userid 1000) id 901AD5FCDF; Thu, 19 Apr 2018 17:32:29 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , David Airlie , Thierry Reding , Rob Herring , Mark Rutland Cc: Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jonathan Liu Subject: [PATCH 2/6] drm/sun4i: tcon: Rename Dithering related register macros Date: Thu, 19 Apr 2018 17:32:21 +0800 Message-Id: <20180419093225.614-3-wens@csie.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419093225.614-1-wens@csie.org> References: <20180419093225.614-1-wens@csie.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dithering is only supported for TCON channel 0. Throughout the datasheet all the names associated with these register are prefixed "TCON0", instead of "TCON". The only exception is the control register "TCON_FRM_CTL_REG". Rename the macros to reflect this. Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_tcon.h | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.h b/drivers/gpu/drm/sun4i/sun4i_tcon.h index f6a071cd5a6f..3d492c8be1fc 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tcon.h +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.h @@ -37,18 +37,21 @@ #define SUN4I_TCON_GINT1_REG 0x8 #define SUN4I_TCON_FRM_CTL_REG 0x10 -#define SUN4I_TCON_FRM_CTL_EN BIT(31) - -#define SUN4I_TCON_FRM_SEED_PR_REG 0x14 -#define SUN4I_TCON_FRM_SEED_PG_REG 0x18 -#define SUN4I_TCON_FRM_SEED_PB_REG 0x1c -#define SUN4I_TCON_FRM_SEED_LR_REG 0x20 -#define SUN4I_TCON_FRM_SEED_LG_REG 0x24 -#define SUN4I_TCON_FRM_SEED_LB_REG 0x28 -#define SUN4I_TCON_FRM_TBL0_REG 0x2c -#define SUN4I_TCON_FRM_TBL1_REG 0x30 -#define SUN4I_TCON_FRM_TBL2_REG 0x34 -#define SUN4I_TCON_FRM_TBL3_REG 0x38 +#define SUN4I_TCON0_FRM_CTL_EN BIT(31) +#define SUN4I_TCON0_FRM_CTL_MODE_R BIT(6) +#define SUN4I_TCON0_FRM_CTL_MODE_G BIT(5) +#define SUN4I_TCON0_FRM_CTL_MODE_B BIT(4) + +#define SUN4I_TCON0_FRM_SEED_PR_REG 0x14 +#define SUN4I_TCON0_FRM_SEED_PG_REG 0x18 +#define SUN4I_TCON0_FRM_SEED_PB_REG 0x1c +#define SUN4I_TCON0_FRM_SEED_LR_REG 0x20 +#define SUN4I_TCON0_FRM_SEED_LG_REG 0x24 +#define SUN4I_TCON0_FRM_SEED_LB_REG 0x28 +#define SUN4I_TCON0_FRM_TBL0_REG 0x2c +#define SUN4I_TCON0_FRM_TBL1_REG 0x30 +#define SUN4I_TCON0_FRM_TBL2_REG 0x34 +#define SUN4I_TCON0_FRM_TBL3_REG 0x38 #define SUN4I_TCON0_CTL_REG 0x40 #define SUN4I_TCON0_CTL_TCON_ENABLE BIT(31) -- 2.17.0