]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
fbdev: imxfb: move PCR bitfields near their offset
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Sat, 11 Nov 2023 10:41:51 +0000 (11:41 +0100)
committerHelge Deller <deller@gmx.de>
Thu, 11 Jan 2024 16:09:01 +0000 (17:09 +0100)
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>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/imxfb.c

index 7042a43b81d8564502e073143ae8bcf0834c9553..6af5f09d9c855bcfb1e496b7a0a8f590c6e2074d 100644 (file)
 #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)