Message ID | 20231111104225.136512-3-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBIFVXWVAMGQE3PFJ2DI@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EAD943F057 for <linux-amarula@patchwork.amarulasolutions.com>; Sat, 11 Nov 2023 11:42:40 +0100 (CET) Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-9a62adedadbsf215451066b.1 for <linux-amarula@patchwork.amarulasolutions.com>; Sat, 11 Nov 2023 02:42:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699699360; cv=pass; d=google.com; s=arc-20160816; b=IkkTXiGi2WvNhhY5u3rOPDiNM6NzoL049N3n29/8UcBn1hn9GXSalIoVe235YzBqdS e7dwBhJtrQSMSW64ugPaQFFFnw2SORdUMab77bnGkYSA8/9lrORr6d2dn1mdjDQbpPl8 7Ek9bt9w+KT9EEyn5vOgC8Of2kEHYALpf+II+4vZv6tvshHo5L2XIv13tV36tAWUrFb3 4pq9Mpb6FxH/jpR4lOfsVw3bBFhyqfm7kjk7xmJqMQcBntFta/yocuHIU5ZYPClEYixr 8n+aq25ZNHXYaWNsk/HeFWWeEP2BmRxwiTTYAfXz3FLu4WFj1ss9RQDYofyNQpZf9J7F PonA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=jNBGLsLR8f+JTNtNqSdQJHKORiE5JjwyvNZshyd8r38=; fh=CRQFspQ+XVmz3jTpDmawxjgq3paXQGVEDP+3Wpr+FXU=; b=OKaMA/wM1W3gSUgAV30cHShKelPtaHh+snsTSN8DFmXn6UGEw4wBOhDTHU7s/SL0lx 8cj8lTnVn5142vG5v6Lqz3/tz2h+1pd7jZhKW85x2kIu1Rk5kRI7bPh0CM/in4TKxXRd nxloN/QbOtC72F5RwOqbph0SJDT0ulB1Q+Ro514War6LuNtC0LVZfDHsisk8H9O+iKux 78sB5W9j06Iximg26oRJQ6o2t4KofPd7Z9UuQqziB4RfV0Pem8SUhRtm2Meaq428byCl JsRKftFBK+WxLf9ay7voxgJY9CNff08Piyq9TxDZXlvcItJhPk5RMAfPYsbMuMOUcQMo CTRA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mqVVFw4e; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1699699360; x=1700304160; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=jNBGLsLR8f+JTNtNqSdQJHKORiE5JjwyvNZshyd8r38=; b=E0GYWd+cdQksuzMK/7evkoAiviDzPKmraa6EnQ5H4D69TrrwiTziMnVOZNAWkmPcYD 4dvTFdQ6mETsQ0oNx1F/Foq/LpJsgnK8aj4FaNSPwSyVZJI1jJs5nkD6nWGeob/DcWN0 bU7SX6lEJaB21Dm93P5HUXWrpxIy8wg1iay70= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699699360; x=1700304160; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jNBGLsLR8f+JTNtNqSdQJHKORiE5JjwyvNZshyd8r38=; b=JNgDlBujWULgMXCvTBXo5oVBc1yzaFlRxEh+yRoqIBNNrJKxv7HhK5dauPNi3Goxht Tv7XDdlG5Lb2q0vEZXJFJuuCczp0TuIDG254alPTuqlpZRPy8RiVwugBu3YbuQMsf940 36vU86m3Q4zpC9C1Mi4xK1aICPCynkIST8JMhjHgp38ZFt1ev7QIEsLQs1W74tLBYOKD 5juOyGQPERs31ROHybeW9aeeb4osjYq4p4m5T6vIb2VtpSpqlZaap1XM+hCBluUh5t3V AmacI82Wxss2VGGEWNVX2y1xRCK5ysEdLZ8Tl/z9IZoBj9UQqnyGPyWbtUqpLuzAPPSP qcAQ== X-Gm-Message-State: AOJu0YwtYEi5T82ZN3o60nYpd0rSThm/6/YTpAZmv8UFVMeMQP6K1U6Q 5nQq+CQJT3ecuyBIdnELIDAzH9eJ X-Google-Smtp-Source: AGHT+IFjsWcHR1lM1F2BS+z2+iCvsDoFOyakKvl+6IRNXerKXZ4mT9wQXDjynp+M0kStMFahRA0SOg== X-Received: by 2002:a05:6402:1116:b0:543:858b:9d94 with SMTP id u22-20020a056402111600b00543858b9d94mr998812edv.41.1699699360435; Sat, 11 Nov 2023 02:42:40 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:4cf:b0:540:e958:cfd8 with SMTP id n15-20020a05640204cf00b00540e958cfd8ls762612edw.2.-pod-prod-01-eu; Sat, 11 Nov 2023 02:42:39 -0800 (PST) X-Received: by 2002:a17:906:770d:b0:9e3:b513:7004 with SMTP id q13-20020a170906770d00b009e3b5137004mr1056133ejm.47.1699699358870; Sat, 11 Nov 2023 02:42:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699699358; cv=none; d=google.com; s=arc-20160816; b=toTpy8gdERU57g7QPnX5ktlwPglCmNQMjSp5sMHvWviS+wnwOfZXMehqZoxvSbd7S2 vSOywF7Do6kkB2x4eaoqf0QKm3AlHtEpurn1nRBEKoVOyz22UULeiGWNh/dpvQeMHuxz 0LZbLI1PAdwGHjy5/0RZJiYucYg3o8dJisPxn1rCoKvs1W6j4jhODs1hPBJLVYbYPpZE ouiDLouCGKRfdMaqTGBZQWu6vC5B4TbfDvBSXgvFuSMtJ1cx7FXbZY0NiI6Iw8VKeJ7L GyCv5sBx3VdOZfpKG6th/dPCZVWMTHgjelMTSykD1Vd4K8AZVGcYTyqRxZUabbTcia9/ lg8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=cv+Nw99h5TQ+ZdPAOUHCJ7Is/AuyKPzv38qwm03SYTY=; fh=CRQFspQ+XVmz3jTpDmawxjgq3paXQGVEDP+3Wpr+FXU=; b=SEp2cliQXZUQ/iAnGx9yO4spZSXqN8oubVRQPcKnh8xIRVIAr0dA3tMZyLVcKkjquj fI2oZg5c9aadzZWGKn7ppRfKMRQ0glxmKa8YYyeXjX26p+/gV/Y7lE6bBb4k8u04yICV lg57b6ci/2FSPFE4i79cDHRnOI7U6dVTSMeqWsLfrZksS+gksziG8jr6TbcG/kgxlyV5 WXbAMKx3xumUgevLrVV3q4KBN8gv0VDAiq94OOrBan3cBwA7B8tX9XW26dqsbNmln9/g yqYb8fGl8dDBkYypkQ32W59yK5BnLn95QYQ0LaXzNkvIO7el8Il1Vo7umM9lYcIsGIgi d+CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mqVVFw4e; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id y8-20020a1709063a8800b009bd915885a8sor260045ejd.17.2023.11.11.02.42.38 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sat, 11 Nov 2023 02:42:38 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:906:fc0a:b0:9e0:5d5c:aa81 with SMTP id ov10-20020a170906fc0a00b009e05d5caa81mr1063698ejb.27.1699699358600; Sat, 11 Nov 2023 02:42:38 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-20-97-182.retail.telecomitalia.it. [79.20.97.182]) by smtp.gmail.com with ESMTPSA id ga33-20020a1709070c2100b0099e12a49c8fsm872183ejc.173.2023.11.11.02.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 02:42:38 -0800 (PST) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Fabio Estevam <festevam@gmail.com>, Helge Deller <deller@gmx.de>, NXP Linux Team <linux-imx@nxp.com>, Pengutronix Kernel Team <kernel@pengutronix.de>, Sascha Hauer <s.hauer@pengutronix.de>, Shawn Guo <shawnguo@kernel.org>, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org Subject: [PATCH 02/10] fbdev: imxfb: move PCR bitfields near their offset Date: Sat, 11 Nov 2023 11:41:51 +0100 Message-ID: <20231111104225.136512-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231111104225.136512-1-dario.binacchi@amarulasolutions.com> References: <20231111104225.136512-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mqVVFw4e; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/video/fbdev/imxfb.c b/drivers/video/fbdev/imxfb.c index 7042a43b81d8..6af5f09d9c85 100644 --- a/drivers/video/fbdev/imxfb.c +++ b/drivers/video/fbdev/imxfb.c @@ -41,13 +41,6 @@ #include <video/of_videomode.h> #include <video/videomode.h> -#define PCR_TFT (1 << 31) -#define PCR_COLOR (1 << 30) -#define PCR_BPIX_8 (3 << 25) -#define PCR_BPIX_12 (4 << 25) -#define PCR_BPIX_16 (5 << 25) -#define PCR_BPIX_18 (6 << 25) - struct imx_fb_videomode { struct fb_videomode mode; u32 pcr; @@ -88,6 +81,12 @@ struct imx_fb_videomode { #define LCDC_LCHCC 0x14 #define LCDC_PCR 0x18 +#define PCR_TFT (1 << 31) +#define PCR_COLOR (1 << 30) +#define PCR_BPIX_8 (3 << 25) +#define PCR_BPIX_12 (4 << 25) +#define PCR_BPIX_16 (5 << 25) +#define PCR_BPIX_18 (6 << 25) #define LCDC_HCR 0x1C #define HCR_H_WIDTH(x) (((x) & 0x3f) << 26)
The patch moves the bitfields of the PCR register near the macro that defines its offset, just like for all the other registers. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- drivers/video/fbdev/imxfb.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)