Commit b85f1736 authored by Dario Binacchi's avatar Dario Binacchi Committed by Helge Deller

fbdev: imxfb: move PCR bitfields near their offset

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: default avatarDario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 57588441
...@@ -41,13 +41,6 @@ ...@@ -41,13 +41,6 @@
#include <video/of_videomode.h> #include <video/of_videomode.h>
#include <video/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 imx_fb_videomode {
struct fb_videomode mode; struct fb_videomode mode;
u32 pcr; u32 pcr;
...@@ -88,6 +81,12 @@ struct imx_fb_videomode { ...@@ -88,6 +81,12 @@ struct imx_fb_videomode {
#define LCDC_LCHCC 0x14 #define LCDC_LCHCC 0x14
#define LCDC_PCR 0x18 #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 LCDC_HCR 0x1C
#define HCR_H_WIDTH(x) (((x) & 0x3f) << 26) #define HCR_H_WIDTH(x) (((x) & 0x3f) << 26)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment