Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2600001ybx; Fri, 8 Nov 2019 06:41:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxHoxwGhhRGXCU8XBQnFYVH1TrBNWxzgCfZuV0Pxa6XXcSf+0YfGSytvjXpfj/8IgyAy8ut X-Received: by 2002:a50:fc02:: with SMTP id i2mr10886728edr.284.1573224104139; Fri, 08 Nov 2019 06:41:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573224104; cv=none; d=google.com; s=arc-20160816; b=ze7vdSUgC2qUNXq0eCUFbhzfSr5nJOEeU0Nsq1iliIRJz5qW/ssEvy0t7ZzcZCZtUO wztp+o01jknX7E1via4oPKBXR+dgA+m04i4fyhOyFit0oRtfXxpS/aAvytr8nDsnDrJH GJ9feiSwNEL5Ktg/2rfdb/2nrNAbEg3x8XSJNJj2HdP4SKTKG8wd9red3ngw8U8UcLFj giuXarrXp4LzUyZLL/0ALjX+lP5GZNFlvsqoA+5Pxi29mz74yLpIYQ9XCZUPPN+UJM3q Ct8OeD0p49j/HKAgBApRZ26f9wELe9ywca9MrQxhG7bHkVj3YPIGgkTFfQeFs9tXoCNb 8KuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=Sdo2OlAKk5lZJHeBDxDNsoSau4WynKqL14NN7P1ChJw=; b=iI0BpFUdQr8hPFfDOOfNxeyiIe7BgkjOoVb84xVuxCl3hWMGsLi5YxkUQO/E8NcMu5 5JOKjH3b/VzB9H888fuFeudsvnLyVlbTginRDksgy+zlWnsFrl3pjLBH4I0jAGqounvE +XwZFg1qZGfQ5cUdwlaXjEGI8VVG4HYEQ71HmvZ08jCPXwgcwZs4pqBv91NrFsjYdFyi Ziacc8Sog0IdYj3Wzs9IIv4pBtUyb+g0DygO88pZYZCk7oiwMgyS5mXOOW6lg8TE4DPQ zs+oXpWun/4Q/xz5sRRH6u6f5nxes2BMpHaBM6sppDZhPbQKzYSg0gcDDaMo/f8Uuc77 Zkzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=pTCRjZCU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17si3776039ejd.401.2019.11.08.06.41.20; Fri, 08 Nov 2019 06:41:44 -0800 (PST) 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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=pTCRjZCU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727159AbfKHOkR (ORCPT + 99 others); Fri, 8 Nov 2019 09:40:17 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:43686 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbfKHOkQ (ORCPT ); Fri, 8 Nov 2019 09:40:16 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20191108144015euoutp01623c67aa09012e43b96bf7e1f0d76b66~VNugyy2eB3121831218euoutp01n for ; Fri, 8 Nov 2019 14:40:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20191108144015euoutp01623c67aa09012e43b96bf7e1f0d76b66~VNugyy2eB3121831218euoutp01n DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1573224015; bh=Sdo2OlAKk5lZJHeBDxDNsoSau4WynKqL14NN7P1ChJw=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=pTCRjZCUJjwLv6krIAaClpZu7cGN3XL2TE8T2i4Gl/VvcWn0kY1kruGYvPxkWTSG/ XcMWhxGwmtMtso1N9Gv3zwliM8ntYuR/LkZvpIW71q0C2UCJCo/JG7rCKHocpxfd8D rGaGrMvoV/TweGJkuoNSyJy7kiIJL1zBc+Y/3lE4= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20191108144015eucas1p22977d97cbb1593efd33c49cab956c467~VNugljkrP2371823718eucas1p2Z; Fri, 8 Nov 2019 14:40:15 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id DF.4F.04374.F4E75CD5; Fri, 8 Nov 2019 14:40:15 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20191108144015eucas1p2f7d66a7ec555e974f0020af44fad8182~VNugSGFCp2371823718eucas1p2Y; Fri, 8 Nov 2019 14:40:15 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20191108144015eusmtrp16509fb7a09e92da6264339de0556434b~VNugRdlYi1383413834eusmtrp1F; Fri, 8 Nov 2019 14:40:15 +0000 (GMT) X-AuditID: cbfec7f5-4f7ff70000001116-ce-5dc57e4fd382 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F1.A9.04117.F4E75CD5; Fri, 8 Nov 2019 14:40:15 +0000 (GMT) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20191108144014eusmtip1f2509ea7ea40a7a330a80f3088cf449d~VNufrQ6qc0673806738eusmtip1r; Fri, 8 Nov 2019 14:40:14 +0000 (GMT) Subject: Re: [PATCH 08/46] ARM: pxa: move regs-lcd.h into driver To: Arnd Bergmann Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org From: Bartlomiej Zolnierkiewicz Message-ID: Date: Fri, 8 Nov 2019 15:40:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191018154201.1276638-8-arnd@arndb.de> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDKsWRmVeSWpSXmKPExsWy7djP87r+dUdjDc58lLX4O+kYu0XT31cs Fle+vmezuLDO3GLKn+VMFpseX2O1ONH3gdXi8q45bBaz3gg7cHr8/jWJ0aN/3WdWj52z7rJ7 3Lm2h83jfvdxJo/NS+o9Pm+S89i+ezlLAEcUl01Kak5mWWqRvl0CV8ba3iPMBQ+VK/Zelmhg PC7bxcjBISFgIrHvqmoXIxeHkMAKRon1s74zdzFyAjlfGCWu9MpDJD4zSvy63gSWAGlYfWM/ M0RiOaPEgkcHGCGct4wS2zZvZgKpEhZwkJhx4jiYLSKgKDH1xTOwDmaB1UwSZxu+sYIk2ASs JCa2r2IEuYNXwE6iYa4nSJhFQEWi/dBXsG2iAhESnx4cBivnFRCUODnzCQuIzSlgKtF17g9Y DbOAuMStJ/OZIGx5ie1v50Bdeotd4ui5Mog3XSQWnZWACAtLvDq+hR3ClpE4PbmHBeQ0CYF1 jBJ/O14wQzjbGSWWT/7HBlFlLXH4+EVWkEHMApoS63fpQ8x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qD4aK8SaWFZcmXuIUYKDWUmEl7PlSKwQb0piZVVqUX58UWlOavEhRlOg 5yYyS4km5wNTR15JvKGpobmFpaG5sbmxmYWSOG+HwMEYIYH0xJLU7NTUgtQimD4mDk6pBkbJ 6dv33DP7ffzZuoaLK3S+3s60tDjYecc1Mfp/6dT9uezJHUdi9/3oCjPVPt+7YV92177LM0KV ku7kOO1NOR6a/S/jick3I4ZpjyRv/mM8Vx+Qd/yRkazsmyj2SUyGMpNO1U013TqdR9LXMUFZ tj2i5vCNKcVtp77mmV5039tzfd0hXcsghQwlluKMREMt5qLiRAA+mMGJ5QIAAA== X-CMS-MailID: 20191108144015eucas1p2f7d66a7ec555e974f0020af44fad8182 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20191018154227epcas4p26ef3afdc09b34ce4db31b1a8c6ef54d7 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20191018154227epcas4p26ef3afdc09b34ce4db31b1a8c6ef54d7 References: <20191018154052.1276506-1-arnd@arndb.de> <20191018154201.1276638-8-arnd@arndb.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/18/19 5:41 PM, Arnd Bergmann wrote: > Only the pxafb driver uses this header, so move it into the > same directory. The SMART_* macros are required by some > platform data definitions and can go into the > linux/platform_data/video-pxafb.h header. > > Cc: Bartlomiej Zolnierkiewicz > Cc: dri-devel@lists.freedesktop.org > Cc: linux-fbdev@vger.kernel.org > Signed-off-by: Arnd Bergmann Acked-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > --- > .../video/fbdev/pxa3xx-regs.h | 19 ---------------- > drivers/video/fbdev/pxafb.c | 1 + > include/linux/platform_data/video-pxafb.h | 22 ++++++++++++++++++- > 3 files changed, 22 insertions(+), 20 deletions(-) > rename arch/arm/mach-pxa/include/mach/regs-lcd.h => drivers/video/fbdev/pxa3xx-regs.h (90%) > > diff --git a/arch/arm/mach-pxa/include/mach/regs-lcd.h b/drivers/video/fbdev/pxa3xx-regs.h > similarity index 90% > rename from arch/arm/mach-pxa/include/mach/regs-lcd.h > rename to drivers/video/fbdev/pxa3xx-regs.h > index 6a434675f84a..6a96610ef9b5 100644 > --- a/arch/arm/mach-pxa/include/mach/regs-lcd.h > +++ b/drivers/video/fbdev/pxa3xx-regs.h > @@ -177,23 +177,4 @@ > #define PRSR_ST_OK (1 << 9) /* Status OK */ > #define PRSR_CON_NT (1 << 10) /* Continue to Next Command */ > > -#define SMART_CMD_A0 (0x1 << 8) > -#define SMART_CMD_READ_STATUS_REG (0x0 << 9) > -#define SMART_CMD_READ_FRAME_BUFFER ((0x0 << 9) | SMART_CMD_A0) > -#define SMART_CMD_WRITE_COMMAND (0x1 << 9) > -#define SMART_CMD_WRITE_DATA ((0x1 << 9) | SMART_CMD_A0) > -#define SMART_CMD_WRITE_FRAME ((0x2 << 9) | SMART_CMD_A0) > -#define SMART_CMD_WAIT_FOR_VSYNC (0x3 << 9) > -#define SMART_CMD_NOOP (0x4 << 9) > -#define SMART_CMD_INTERRUPT (0x5 << 9) > - > -#define SMART_CMD(x) (SMART_CMD_WRITE_COMMAND | ((x) & 0xff)) > -#define SMART_DAT(x) (SMART_CMD_WRITE_DATA | ((x) & 0xff)) > - > -/* SMART_DELAY() is introduced for software controlled delay primitive which > - * can be inserted between command sequences, unused command 0x6 is used here > - * and delay ranges from 0ms ~ 255ms > - */ > -#define SMART_CMD_DELAY (0x6 << 9) > -#define SMART_DELAY(ms) (SMART_CMD_DELAY | ((ms) & 0xff)) > #endif /* __ASM_ARCH_REGS_LCD_H */ > diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c > index e68b8a69db92..a65453c6c390 100644 > --- a/drivers/video/fbdev/pxafb.c > +++ b/drivers/video/fbdev/pxafb.c > @@ -72,6 +72,7 @@ > #define DEBUG_VAR 1 > > #include "pxafb.h" > +#include "pxa3xx-regs.h" > > /* Bits which should not be set in machine configuration structures */ > #define LCCR0_INVALID_CONFIG_MASK (LCCR0_OUM | LCCR0_BM | LCCR0_QDM |\ > diff --git a/include/linux/platform_data/video-pxafb.h b/include/linux/platform_data/video-pxafb.h > index b3d574778326..6333bac166a5 100644 > --- a/include/linux/platform_data/video-pxafb.h > +++ b/include/linux/platform_data/video-pxafb.h > @@ -8,7 +8,6 @@ > */ > > #include > -#include > > /* > * Supported LCD connections > @@ -153,6 +152,27 @@ struct pxafb_mach_info { > void pxa_set_fb_info(struct device *, struct pxafb_mach_info *); > unsigned long pxafb_get_hsync_time(struct device *dev); > > +/* smartpanel related */ > +#define SMART_CMD_A0 (0x1 << 8) > +#define SMART_CMD_READ_STATUS_REG (0x0 << 9) > +#define SMART_CMD_READ_FRAME_BUFFER ((0x0 << 9) | SMART_CMD_A0) > +#define SMART_CMD_WRITE_COMMAND (0x1 << 9) > +#define SMART_CMD_WRITE_DATA ((0x1 << 9) | SMART_CMD_A0) > +#define SMART_CMD_WRITE_FRAME ((0x2 << 9) | SMART_CMD_A0) > +#define SMART_CMD_WAIT_FOR_VSYNC (0x3 << 9) > +#define SMART_CMD_NOOP (0x4 << 9) > +#define SMART_CMD_INTERRUPT (0x5 << 9) > + > +#define SMART_CMD(x) (SMART_CMD_WRITE_COMMAND | ((x) & 0xff)) > +#define SMART_DAT(x) (SMART_CMD_WRITE_DATA | ((x) & 0xff)) > + > +/* SMART_DELAY() is introduced for software controlled delay primitive which > + * can be inserted between command sequences, unused command 0x6 is used here > + * and delay ranges from 0ms ~ 255ms > + */ > +#define SMART_CMD_DELAY (0x6 << 9) > +#define SMART_DELAY(ms) (SMART_CMD_DELAY | ((ms) & 0xff)) > + > #ifdef CONFIG_FB_PXA_SMARTPANEL > extern int pxafb_smart_queue(struct fb_info *info, uint16_t *cmds, int); > extern int pxafb_smart_flush(struct fb_info *info); >