Commit 1ec26db1 authored by Eric Miao's avatar Eric Miao

pxafb: introduce LCD_TYPE_MASK and use it.

Signed-off-by: default avatarDaniel Mack <daniel@caiaq.de>
Signed-off-by: default avatarEric Miao <eric.miao@marvell.com>
parent 3ad4f597
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#define LCD_CONN_TYPE(_x) ((_x) & 0x0f) #define LCD_CONN_TYPE(_x) ((_x) & 0x0f)
#define LCD_CONN_WIDTH(_x) (((_x) >> 4) & 0x1f) #define LCD_CONN_WIDTH(_x) (((_x) >> 4) & 0x1f)
#define LCD_TYPE_MASK 0xf
#define LCD_TYPE_UNKNOWN 0 #define LCD_TYPE_UNKNOWN 0
#define LCD_TYPE_MONO_STN 1 #define LCD_TYPE_MONO_STN 1
#define LCD_TYPE_MONO_DSTN 2 #define LCD_TYPE_MONO_DSTN 2
......
...@@ -1372,7 +1372,7 @@ static void pxafb_decode_mach_info(struct pxafb_info *fbi, ...@@ -1372,7 +1372,7 @@ static void pxafb_decode_mach_info(struct pxafb_info *fbi,
fbi->cmap_inverse = inf->cmap_inverse; fbi->cmap_inverse = inf->cmap_inverse;
fbi->cmap_static = inf->cmap_static; fbi->cmap_static = inf->cmap_static;
switch (lcd_conn & 0xf) { switch (lcd_conn & LCD_TYPE_MASK) {
case LCD_TYPE_MONO_STN: case LCD_TYPE_MONO_STN:
fbi->lccr0 = LCCR0_CMS; fbi->lccr0 = LCCR0_CMS;
break; break;
......
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