diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/Kconfig | 1 | ||||
-rw-r--r-- | drivers/video/backlight/corgi_bl.c | 1 | ||||
-rw-r--r-- | drivers/video/cyblafb.c | 11 | ||||
-rw-r--r-- | drivers/video/i810/i810-i2c.c | 16 | ||||
-rw-r--r-- | drivers/video/imxfb.c | 1 | ||||
-rw-r--r-- | drivers/video/intelfb/intelfbdrv.c | 21 | ||||
-rw-r--r-- | drivers/video/pxafb.c | 108 | ||||
-rw-r--r-- | drivers/video/pxafb.h | 9 | ||||
-rw-r--r-- | drivers/video/s3c2410fb.c | 4 |
9 files changed, 81 insertions, 91 deletions
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 773ae11b4a19..1cd942abb580 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig | |||
@@ -768,6 +768,7 @@ config FB_INTEL | |||
768 | select FB_CFB_FILLRECT | 768 | select FB_CFB_FILLRECT |
769 | select FB_CFB_COPYAREA | 769 | select FB_CFB_COPYAREA |
770 | select FB_CFB_IMAGEBLIT | 770 | select FB_CFB_IMAGEBLIT |
771 | select FB_SOFT_CURSOR | ||
771 | help | 772 | help |
772 | This driver supports the on-board graphics built in to the Intel | 773 | This driver supports the on-board graphics built in to the Intel |
773 | 830M/845G/852GM/855GM/865G chipsets. | 774 | 830M/845G/852GM/855GM/865G chipsets. |
diff --git a/drivers/video/backlight/corgi_bl.c b/drivers/video/backlight/corgi_bl.c index 630f2dfa9699..3c72c627e65e 100644 --- a/drivers/video/backlight/corgi_bl.c +++ b/drivers/video/backlight/corgi_bl.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <linux/fb.h> | 19 | #include <linux/fb.h> |
20 | #include <linux/backlight.h> | 20 | #include <linux/backlight.h> |
21 | 21 | ||
22 | #include <asm/mach-types.h> | ||
23 | #include <asm/arch/sharpsl.h> | 22 | #include <asm/arch/sharpsl.h> |
24 | 23 | ||
25 | #define CORGI_DEFAULT_INTENSITY 0x1f | 24 | #define CORGI_DEFAULT_INTENSITY 0x1f |
diff --git a/drivers/video/cyblafb.c b/drivers/video/cyblafb.c index ae2762cb5608..6992100a508c 100644 --- a/drivers/video/cyblafb.c +++ b/drivers/video/cyblafb.c | |||
@@ -410,20 +410,21 @@ static void cyblafb_imageblit(struct fb_info *info, | |||
410 | out32(GE0C,point(image->dx+image->width-1,image->dy+image->height-1)); | 410 | out32(GE0C,point(image->dx+image->width-1,image->dy+image->height-1)); |
411 | 411 | ||
412 | while(index < index_end) { | 412 | while(index < index_end) { |
413 | const char *p = image->data + index; | ||
413 | for(i=0;i<width_dds;i++) { | 414 | for(i=0;i<width_dds;i++) { |
414 | out32(GE9C,*((u32*) ((u32)image->data + index))); | 415 | out32(GE9C,*(u32*)p); |
416 | p+=4; | ||
415 | index+=4; | 417 | index+=4; |
416 | } | 418 | } |
417 | switch(width_dbs) { | 419 | switch(width_dbs) { |
418 | case 0: break; | 420 | case 0: break; |
419 | case 8: out32(GE9C,*((u8*)((u32)image->data+index))); | 421 | case 8: out32(GE9C,*(u8*)p); |
420 | index+=1; | 422 | index+=1; |
421 | break; | 423 | break; |
422 | case 16: out32(GE9C,*((u16*)((u32)image->data+index))); | 424 | case 16: out32(GE9C,*(u16*)p); |
423 | index+=2; | 425 | index+=2; |
424 | break; | 426 | break; |
425 | case 24: out32(GE9C,(u32)(*((u16*)((u32)image->data+index))) | | 427 | case 24: out32(GE9C,*(u16*)p | *(u8*)(p+2)<<16); |
426 | (u32)(*((u8*)((u32)image->data+index+2)))<<16); | ||
427 | index+=3; | 428 | index+=3; |
428 | break; | 429 | break; |
429 | } | 430 | } |
diff --git a/drivers/video/i810/i810-i2c.c b/drivers/video/i810/i810-i2c.c index fda53aac1fc1..689d2586366d 100644 --- a/drivers/video/i810/i810-i2c.c +++ b/drivers/video/i810/i810-i2c.c | |||
@@ -44,7 +44,7 @@ static void i810i2c_setscl(void *data, int state) | |||
44 | { | 44 | { |
45 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; | 45 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; |
46 | struct i810fb_par *par = chan->par; | 46 | struct i810fb_par *par = chan->par; |
47 | u8 *mmio = par->mmio_start_virtual; | 47 | u8 __iomem *mmio = par->mmio_start_virtual; |
48 | 48 | ||
49 | i810_writel(mmio, GPIOB, (state ? SCL_VAL_OUT : 0) | SCL_DIR | | 49 | i810_writel(mmio, GPIOB, (state ? SCL_VAL_OUT : 0) | SCL_DIR | |
50 | SCL_DIR_MASK | SCL_VAL_MASK); | 50 | SCL_DIR_MASK | SCL_VAL_MASK); |
@@ -55,7 +55,7 @@ static void i810i2c_setsda(void *data, int state) | |||
55 | { | 55 | { |
56 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; | 56 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; |
57 | struct i810fb_par *par = chan->par; | 57 | struct i810fb_par *par = chan->par; |
58 | u8 *mmio = par->mmio_start_virtual; | 58 | u8 __iomem *mmio = par->mmio_start_virtual; |
59 | 59 | ||
60 | i810_writel(mmio, GPIOB, (state ? SDA_VAL_OUT : 0) | SDA_DIR | | 60 | i810_writel(mmio, GPIOB, (state ? SDA_VAL_OUT : 0) | SDA_DIR | |
61 | SDA_DIR_MASK | SDA_VAL_MASK); | 61 | SDA_DIR_MASK | SDA_VAL_MASK); |
@@ -66,7 +66,7 @@ static int i810i2c_getscl(void *data) | |||
66 | { | 66 | { |
67 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; | 67 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; |
68 | struct i810fb_par *par = chan->par; | 68 | struct i810fb_par *par = chan->par; |
69 | u8 *mmio = par->mmio_start_virtual; | 69 | u8 __iomem *mmio = par->mmio_start_virtual; |
70 | 70 | ||
71 | i810_writel(mmio, GPIOB, SCL_DIR_MASK); | 71 | i810_writel(mmio, GPIOB, SCL_DIR_MASK); |
72 | i810_writel(mmio, GPIOB, 0); | 72 | i810_writel(mmio, GPIOB, 0); |
@@ -77,7 +77,7 @@ static int i810i2c_getsda(void *data) | |||
77 | { | 77 | { |
78 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; | 78 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; |
79 | struct i810fb_par *par = chan->par; | 79 | struct i810fb_par *par = chan->par; |
80 | u8 *mmio = par->mmio_start_virtual; | 80 | u8 __iomem *mmio = par->mmio_start_virtual; |
81 | 81 | ||
82 | i810_writel(mmio, GPIOB, SDA_DIR_MASK); | 82 | i810_writel(mmio, GPIOB, SDA_DIR_MASK); |
83 | i810_writel(mmio, GPIOB, 0); | 83 | i810_writel(mmio, GPIOB, 0); |
@@ -88,7 +88,7 @@ static void i810ddc_setscl(void *data, int state) | |||
88 | { | 88 | { |
89 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; | 89 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; |
90 | struct i810fb_par *par = chan->par; | 90 | struct i810fb_par *par = chan->par; |
91 | u8 *mmio = par->mmio_start_virtual; | 91 | u8 __iomem *mmio = par->mmio_start_virtual; |
92 | 92 | ||
93 | i810_writel(mmio, GPIOA, (state ? SCL_VAL_OUT : 0) | SCL_DIR | | 93 | i810_writel(mmio, GPIOA, (state ? SCL_VAL_OUT : 0) | SCL_DIR | |
94 | SCL_DIR_MASK | SCL_VAL_MASK); | 94 | SCL_DIR_MASK | SCL_VAL_MASK); |
@@ -99,7 +99,7 @@ static void i810ddc_setsda(void *data, int state) | |||
99 | { | 99 | { |
100 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; | 100 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; |
101 | struct i810fb_par *par = chan->par; | 101 | struct i810fb_par *par = chan->par; |
102 | u8 *mmio = par->mmio_start_virtual; | 102 | u8 __iomem *mmio = par->mmio_start_virtual; |
103 | 103 | ||
104 | i810_writel(mmio, GPIOA, (state ? SDA_VAL_OUT : 0) | SDA_DIR | | 104 | i810_writel(mmio, GPIOA, (state ? SDA_VAL_OUT : 0) | SDA_DIR | |
105 | SDA_DIR_MASK | SDA_VAL_MASK); | 105 | SDA_DIR_MASK | SDA_VAL_MASK); |
@@ -110,7 +110,7 @@ static int i810ddc_getscl(void *data) | |||
110 | { | 110 | { |
111 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; | 111 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; |
112 | struct i810fb_par *par = chan->par; | 112 | struct i810fb_par *par = chan->par; |
113 | u8 *mmio = par->mmio_start_virtual; | 113 | u8 __iomem *mmio = par->mmio_start_virtual; |
114 | 114 | ||
115 | i810_writel(mmio, GPIOA, SCL_DIR_MASK); | 115 | i810_writel(mmio, GPIOA, SCL_DIR_MASK); |
116 | i810_writel(mmio, GPIOA, 0); | 116 | i810_writel(mmio, GPIOA, 0); |
@@ -121,7 +121,7 @@ static int i810ddc_getsda(void *data) | |||
121 | { | 121 | { |
122 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; | 122 | struct i810fb_i2c_chan *chan = (struct i810fb_i2c_chan *)data; |
123 | struct i810fb_par *par = chan->par; | 123 | struct i810fb_par *par = chan->par; |
124 | u8 *mmio = par->mmio_start_virtual; | 124 | u8 __iomem *mmio = par->mmio_start_virtual; |
125 | 125 | ||
126 | i810_writel(mmio, GPIOA, SDA_DIR_MASK); | 126 | i810_writel(mmio, GPIOA, SDA_DIR_MASK); |
127 | i810_writel(mmio, GPIOA, 0); | 127 | i810_writel(mmio, GPIOA, 0); |
diff --git a/drivers/video/imxfb.c b/drivers/video/imxfb.c index 6c2244cf0e74..1d54d3d6960b 100644 --- a/drivers/video/imxfb.c +++ b/drivers/video/imxfb.c | |||
@@ -36,7 +36,6 @@ | |||
36 | 36 | ||
37 | #include <asm/hardware.h> | 37 | #include <asm/hardware.h> |
38 | #include <asm/io.h> | 38 | #include <asm/io.h> |
39 | #include <asm/mach-types.h> | ||
40 | #include <asm/uaccess.h> | 39 | #include <asm/uaccess.h> |
41 | #include <asm/arch/imxfb.h> | 40 | #include <asm/arch/imxfb.h> |
42 | 41 | ||
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c index bf62e6ed0382..80a09344f1aa 100644 --- a/drivers/video/intelfb/intelfbdrv.c +++ b/drivers/video/intelfb/intelfbdrv.c | |||
@@ -226,7 +226,7 @@ MODULE_DEVICE_TABLE(pci, intelfb_pci_table); | |||
226 | 226 | ||
227 | static int accel = 1; | 227 | static int accel = 1; |
228 | static int vram = 4; | 228 | static int vram = 4; |
229 | static int hwcursor = 1; | 229 | static int hwcursor = 0; |
230 | static int mtrr = 1; | 230 | static int mtrr = 1; |
231 | static int fixed = 0; | 231 | static int fixed = 0; |
232 | static int noinit = 0; | 232 | static int noinit = 0; |
@@ -609,15 +609,9 @@ intelfb_pci_register(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
609 | dinfo->accel = 0; | 609 | dinfo->accel = 0; |
610 | } | 610 | } |
611 | 611 | ||
612 | if (MB(voffset) < stolen_size) | ||
613 | offset = (stolen_size >> 12); | ||
614 | else | ||
615 | offset = ROUND_UP_TO_PAGE(MB(voffset))/GTT_PAGE_SIZE; | ||
616 | |||
617 | /* Framebuffer parameters - Use all the stolen memory if >= vram */ | 612 | /* Framebuffer parameters - Use all the stolen memory if >= vram */ |
618 | if (ROUND_UP_TO_PAGE(stolen_size) >= ((offset << 12) + MB(vram))) { | 613 | if (ROUND_UP_TO_PAGE(stolen_size) >= MB(vram)) { |
619 | dinfo->fb.size = ROUND_UP_TO_PAGE(stolen_size); | 614 | dinfo->fb.size = ROUND_UP_TO_PAGE(stolen_size); |
620 | dinfo->fb.offset = 0; | ||
621 | dinfo->fbmem_gart = 0; | 615 | dinfo->fbmem_gart = 0; |
622 | } else { | 616 | } else { |
623 | dinfo->fb.size = MB(vram); | 617 | dinfo->fb.size = MB(vram); |
@@ -648,6 +642,11 @@ intelfb_pci_register(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
648 | return -ENODEV; | 642 | return -ENODEV; |
649 | } | 643 | } |
650 | 644 | ||
645 | if (MB(voffset) < stolen_size) | ||
646 | offset = (stolen_size >> 12); | ||
647 | else | ||
648 | offset = ROUND_UP_TO_PAGE(MB(voffset))/GTT_PAGE_SIZE; | ||
649 | |||
651 | /* set the mem offsets - set them after the already used pages */ | 650 | /* set the mem offsets - set them after the already used pages */ |
652 | if (dinfo->accel) { | 651 | if (dinfo->accel) { |
653 | dinfo->ring.offset = offset + gtt_info.current_memory; | 652 | dinfo->ring.offset = offset + gtt_info.current_memory; |
@@ -662,10 +661,11 @@ intelfb_pci_register(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
662 | + (dinfo->cursor.size >> 12); | 661 | + (dinfo->cursor.size >> 12); |
663 | } | 662 | } |
664 | 663 | ||
664 | /* Allocate memories (which aren't stolen) */ | ||
665 | /* Map the fb and MMIO regions */ | 665 | /* Map the fb and MMIO regions */ |
666 | /* ioremap only up to the end of used aperture */ | 666 | /* ioremap only up to the end of used aperture */ |
667 | dinfo->aperture.virtual = (u8 __iomem *)ioremap_nocache | 667 | dinfo->aperture.virtual = (u8 __iomem *)ioremap_nocache |
668 | (dinfo->aperture.physical, (dinfo->fb.offset << 12) | 668 | (dinfo->aperture.physical, ((offset + dinfo->fb.offset) << 12) |
669 | + dinfo->fb.size); | 669 | + dinfo->fb.size); |
670 | if (!dinfo->aperture.virtual) { | 670 | if (!dinfo->aperture.virtual) { |
671 | ERR_MSG("Cannot remap FB region.\n"); | 671 | ERR_MSG("Cannot remap FB region.\n"); |
@@ -682,7 +682,6 @@ intelfb_pci_register(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
682 | return -ENODEV; | 682 | return -ENODEV; |
683 | } | 683 | } |
684 | 684 | ||
685 | /* Allocate memories (which aren't stolen) */ | ||
686 | if (dinfo->accel) { | 685 | if (dinfo->accel) { |
687 | if (!(dinfo->gtt_ring_mem = | 686 | if (!(dinfo->gtt_ring_mem = |
688 | agp_allocate_memory(bridge, dinfo->ring.size >> 12, | 687 | agp_allocate_memory(bridge, dinfo->ring.size >> 12, |
@@ -1484,7 +1483,7 @@ intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor) | |||
1484 | #endif | 1483 | #endif |
1485 | 1484 | ||
1486 | if (!dinfo->hwcursor) | 1485 | if (!dinfo->hwcursor) |
1487 | return -ENXIO; | 1486 | return soft_cursor(info, cursor); |
1488 | 1487 | ||
1489 | intelfbhw_cursor_hide(dinfo); | 1488 | intelfbhw_cursor_hide(dinfo); |
1490 | 1489 | ||
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index 34d4dcc0320a..194eed0a238c 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c | |||
@@ -260,9 +260,9 @@ static int pxafb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) | |||
260 | } | 260 | } |
261 | 261 | ||
262 | #ifdef CONFIG_CPU_FREQ | 262 | #ifdef CONFIG_CPU_FREQ |
263 | DPRINTK("dma period = %d ps, clock = %d kHz\n", | 263 | pr_debug("pxafb: dma period = %d ps, clock = %d kHz\n", |
264 | pxafb_display_dma_period(var), | 264 | pxafb_display_dma_period(var), |
265 | get_clk_frequency_khz(0)); | 265 | get_clk_frequency_khz(0)); |
266 | #endif | 266 | #endif |
267 | 267 | ||
268 | return 0; | 268 | return 0; |
@@ -270,7 +270,7 @@ static int pxafb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) | |||
270 | 270 | ||
271 | static inline void pxafb_set_truecolor(u_int is_true_color) | 271 | static inline void pxafb_set_truecolor(u_int is_true_color) |
272 | { | 272 | { |
273 | DPRINTK("true_color = %d\n", is_true_color); | 273 | pr_debug("pxafb: true_color = %d\n", is_true_color); |
274 | // do your machine-specific setup if needed | 274 | // do your machine-specific setup if needed |
275 | } | 275 | } |
276 | 276 | ||
@@ -284,7 +284,7 @@ static int pxafb_set_par(struct fb_info *info) | |||
284 | struct fb_var_screeninfo *var = &info->var; | 284 | struct fb_var_screeninfo *var = &info->var; |
285 | unsigned long palette_mem_size; | 285 | unsigned long palette_mem_size; |
286 | 286 | ||
287 | DPRINTK("set_par\n"); | 287 | pr_debug("pxafb: set_par\n"); |
288 | 288 | ||
289 | if (var->bits_per_pixel == 16) | 289 | if (var->bits_per_pixel == 16) |
290 | fbi->fb.fix.visual = FB_VISUAL_TRUECOLOR; | 290 | fbi->fb.fix.visual = FB_VISUAL_TRUECOLOR; |
@@ -308,7 +308,7 @@ static int pxafb_set_par(struct fb_info *info) | |||
308 | 308 | ||
309 | palette_mem_size = fbi->palette_size * sizeof(u16); | 309 | palette_mem_size = fbi->palette_size * sizeof(u16); |
310 | 310 | ||
311 | DPRINTK("palette_mem_size = 0x%08lx\n", (u_long) palette_mem_size); | 311 | pr_debug("pxafb: palette_mem_size = 0x%08lx\n", palette_mem_size); |
312 | 312 | ||
313 | fbi->palette_cpu = (u16 *)(fbi->map_cpu + PAGE_SIZE - palette_mem_size); | 313 | fbi->palette_cpu = (u16 *)(fbi->map_cpu + PAGE_SIZE - palette_mem_size); |
314 | fbi->palette_dma = fbi->map_dma + PAGE_SIZE - palette_mem_size; | 314 | fbi->palette_dma = fbi->map_dma + PAGE_SIZE - palette_mem_size; |
@@ -369,7 +369,7 @@ static int pxafb_blank(int blank, struct fb_info *info) | |||
369 | struct pxafb_info *fbi = (struct pxafb_info *)info; | 369 | struct pxafb_info *fbi = (struct pxafb_info *)info; |
370 | int i; | 370 | int i; |
371 | 371 | ||
372 | DPRINTK("pxafb_blank: blank=%d\n", blank); | 372 | pr_debug("pxafb: blank=%d\n", blank); |
373 | 373 | ||
374 | switch (blank) { | 374 | switch (blank) { |
375 | case FB_BLANK_POWERDOWN: | 375 | case FB_BLANK_POWERDOWN: |
@@ -508,15 +508,15 @@ static int pxafb_activate_var(struct fb_var_screeninfo *var, struct pxafb_info * | |||
508 | u_long flags; | 508 | u_long flags; |
509 | u_int lines_per_panel, pcd = get_pcd(var->pixclock); | 509 | u_int lines_per_panel, pcd = get_pcd(var->pixclock); |
510 | 510 | ||
511 | DPRINTK("Configuring PXA LCD\n"); | 511 | pr_debug("pxafb: Configuring PXA LCD\n"); |
512 | 512 | ||
513 | DPRINTK("var: xres=%d hslen=%d lm=%d rm=%d\n", | 513 | pr_debug("var: xres=%d hslen=%d lm=%d rm=%d\n", |
514 | var->xres, var->hsync_len, | 514 | var->xres, var->hsync_len, |
515 | var->left_margin, var->right_margin); | 515 | var->left_margin, var->right_margin); |
516 | DPRINTK("var: yres=%d vslen=%d um=%d bm=%d\n", | 516 | pr_debug("var: yres=%d vslen=%d um=%d bm=%d\n", |
517 | var->yres, var->vsync_len, | 517 | var->yres, var->vsync_len, |
518 | var->upper_margin, var->lower_margin); | 518 | var->upper_margin, var->lower_margin); |
519 | DPRINTK("var: pixclock=%d pcd=%d\n", var->pixclock, pcd); | 519 | pr_debug("var: pixclock=%d pcd=%d\n", var->pixclock, pcd); |
520 | 520 | ||
521 | #if DEBUG_VAR | 521 | #if DEBUG_VAR |
522 | if (var->xres < 16 || var->xres > 1024) | 522 | if (var->xres < 16 || var->xres > 1024) |
@@ -589,10 +589,10 @@ static int pxafb_activate_var(struct fb_var_screeninfo *var, struct pxafb_info * | |||
589 | if (pcd) | 589 | if (pcd) |
590 | new_regs.lccr3 |= LCCR3_PixClkDiv(pcd); | 590 | new_regs.lccr3 |= LCCR3_PixClkDiv(pcd); |
591 | 591 | ||
592 | DPRINTK("nlccr0 = 0x%08x\n", new_regs.lccr0); | 592 | pr_debug("nlccr0 = 0x%08x\n", new_regs.lccr0); |
593 | DPRINTK("nlccr1 = 0x%08x\n", new_regs.lccr1); | 593 | pr_debug("nlccr1 = 0x%08x\n", new_regs.lccr1); |
594 | DPRINTK("nlccr2 = 0x%08x\n", new_regs.lccr2); | 594 | pr_debug("nlccr2 = 0x%08x\n", new_regs.lccr2); |
595 | DPRINTK("nlccr3 = 0x%08x\n", new_regs.lccr3); | 595 | pr_debug("nlccr3 = 0x%08x\n", new_regs.lccr3); |
596 | 596 | ||
597 | /* Update shadow copy atomically */ | 597 | /* Update shadow copy atomically */ |
598 | local_irq_save(flags); | 598 | local_irq_save(flags); |
@@ -637,24 +637,24 @@ static int pxafb_activate_var(struct fb_var_screeninfo *var, struct pxafb_info * | |||
637 | } | 637 | } |
638 | 638 | ||
639 | #if 0 | 639 | #if 0 |
640 | DPRINTK("fbi->dmadesc_fblow_cpu = 0x%p\n", fbi->dmadesc_fblow_cpu); | 640 | pr_debug("fbi->dmadesc_fblow_cpu = 0x%p\n", fbi->dmadesc_fblow_cpu); |
641 | DPRINTK("fbi->dmadesc_fbhigh_cpu = 0x%p\n", fbi->dmadesc_fbhigh_cpu); | 641 | pr_debug("fbi->dmadesc_fbhigh_cpu = 0x%p\n", fbi->dmadesc_fbhigh_cpu); |
642 | DPRINTK("fbi->dmadesc_palette_cpu = 0x%p\n", fbi->dmadesc_palette_cpu); | 642 | pr_debug("fbi->dmadesc_palette_cpu = 0x%p\n", fbi->dmadesc_palette_cpu); |
643 | DPRINTK("fbi->dmadesc_fblow_dma = 0x%x\n", fbi->dmadesc_fblow_dma); | 643 | pr_debug("fbi->dmadesc_fblow_dma = 0x%x\n", fbi->dmadesc_fblow_dma); |
644 | DPRINTK("fbi->dmadesc_fbhigh_dma = 0x%x\n", fbi->dmadesc_fbhigh_dma); | 644 | pr_debug("fbi->dmadesc_fbhigh_dma = 0x%x\n", fbi->dmadesc_fbhigh_dma); |
645 | DPRINTK("fbi->dmadesc_palette_dma = 0x%x\n", fbi->dmadesc_palette_dma); | 645 | pr_debug("fbi->dmadesc_palette_dma = 0x%x\n", fbi->dmadesc_palette_dma); |
646 | 646 | ||
647 | DPRINTK("fbi->dmadesc_fblow_cpu->fdadr = 0x%x\n", fbi->dmadesc_fblow_cpu->fdadr); | 647 | pr_debug("fbi->dmadesc_fblow_cpu->fdadr = 0x%x\n", fbi->dmadesc_fblow_cpu->fdadr); |
648 | DPRINTK("fbi->dmadesc_fbhigh_cpu->fdadr = 0x%x\n", fbi->dmadesc_fbhigh_cpu->fdadr); | 648 | pr_debug("fbi->dmadesc_fbhigh_cpu->fdadr = 0x%x\n", fbi->dmadesc_fbhigh_cpu->fdadr); |
649 | DPRINTK("fbi->dmadesc_palette_cpu->fdadr = 0x%x\n", fbi->dmadesc_palette_cpu->fdadr); | 649 | pr_debug("fbi->dmadesc_palette_cpu->fdadr = 0x%x\n", fbi->dmadesc_palette_cpu->fdadr); |
650 | 650 | ||
651 | DPRINTK("fbi->dmadesc_fblow_cpu->fsadr = 0x%x\n", fbi->dmadesc_fblow_cpu->fsadr); | 651 | pr_debug("fbi->dmadesc_fblow_cpu->fsadr = 0x%x\n", fbi->dmadesc_fblow_cpu->fsadr); |
652 | DPRINTK("fbi->dmadesc_fbhigh_cpu->fsadr = 0x%x\n", fbi->dmadesc_fbhigh_cpu->fsadr); | 652 | pr_debug("fbi->dmadesc_fbhigh_cpu->fsadr = 0x%x\n", fbi->dmadesc_fbhigh_cpu->fsadr); |
653 | DPRINTK("fbi->dmadesc_palette_cpu->fsadr = 0x%x\n", fbi->dmadesc_palette_cpu->fsadr); | 653 | pr_debug("fbi->dmadesc_palette_cpu->fsadr = 0x%x\n", fbi->dmadesc_palette_cpu->fsadr); |
654 | 654 | ||
655 | DPRINTK("fbi->dmadesc_fblow_cpu->ldcmd = 0x%x\n", fbi->dmadesc_fblow_cpu->ldcmd); | 655 | pr_debug("fbi->dmadesc_fblow_cpu->ldcmd = 0x%x\n", fbi->dmadesc_fblow_cpu->ldcmd); |
656 | DPRINTK("fbi->dmadesc_fbhigh_cpu->ldcmd = 0x%x\n", fbi->dmadesc_fbhigh_cpu->ldcmd); | 656 | pr_debug("fbi->dmadesc_fbhigh_cpu->ldcmd = 0x%x\n", fbi->dmadesc_fbhigh_cpu->ldcmd); |
657 | DPRINTK("fbi->dmadesc_palette_cpu->ldcmd = 0x%x\n", fbi->dmadesc_palette_cpu->ldcmd); | 657 | pr_debug("fbi->dmadesc_palette_cpu->ldcmd = 0x%x\n", fbi->dmadesc_palette_cpu->ldcmd); |
658 | #endif | 658 | #endif |
659 | 659 | ||
660 | fbi->reg_lccr0 = new_regs.lccr0; | 660 | fbi->reg_lccr0 = new_regs.lccr0; |
@@ -684,7 +684,7 @@ static int pxafb_activate_var(struct fb_var_screeninfo *var, struct pxafb_info * | |||
684 | */ | 684 | */ |
685 | static inline void __pxafb_backlight_power(struct pxafb_info *fbi, int on) | 685 | static inline void __pxafb_backlight_power(struct pxafb_info *fbi, int on) |
686 | { | 686 | { |
687 | DPRINTK("backlight o%s\n", on ? "n" : "ff"); | 687 | pr_debug("pxafb: backlight o%s\n", on ? "n" : "ff"); |
688 | 688 | ||
689 | if (pxafb_backlight_power) | 689 | if (pxafb_backlight_power) |
690 | pxafb_backlight_power(on); | 690 | pxafb_backlight_power(on); |
@@ -692,7 +692,7 @@ static inline void __pxafb_backlight_power(struct pxafb_info *fbi, int on) | |||
692 | 692 | ||
693 | static inline void __pxafb_lcd_power(struct pxafb_info *fbi, int on) | 693 | static inline void __pxafb_lcd_power(struct pxafb_info *fbi, int on) |
694 | { | 694 | { |
695 | DPRINTK("LCD power o%s\n", on ? "n" : "ff"); | 695 | pr_debug("pxafb: LCD power o%s\n", on ? "n" : "ff"); |
696 | 696 | ||
697 | if (pxafb_lcd_power) | 697 | if (pxafb_lcd_power) |
698 | pxafb_lcd_power(on); | 698 | pxafb_lcd_power(on); |
@@ -740,13 +740,13 @@ static void pxafb_setup_gpio(struct pxafb_info *fbi) | |||
740 | 740 | ||
741 | static void pxafb_enable_controller(struct pxafb_info *fbi) | 741 | static void pxafb_enable_controller(struct pxafb_info *fbi) |
742 | { | 742 | { |
743 | DPRINTK("Enabling LCD controller\n"); | 743 | pr_debug("pxafb: Enabling LCD controller\n"); |
744 | DPRINTK("fdadr0 0x%08x\n", (unsigned int) fbi->fdadr0); | 744 | pr_debug("fdadr0 0x%08x\n", (unsigned int) fbi->fdadr0); |
745 | DPRINTK("fdadr1 0x%08x\n", (unsigned int) fbi->fdadr1); | 745 | pr_debug("fdadr1 0x%08x\n", (unsigned int) fbi->fdadr1); |
746 | DPRINTK("reg_lccr0 0x%08x\n", (unsigned int) fbi->reg_lccr0); | 746 | pr_debug("reg_lccr0 0x%08x\n", (unsigned int) fbi->reg_lccr0); |
747 | DPRINTK("reg_lccr1 0x%08x\n", (unsigned int) fbi->reg_lccr1); | 747 | pr_debug("reg_lccr1 0x%08x\n", (unsigned int) fbi->reg_lccr1); |
748 | DPRINTK("reg_lccr2 0x%08x\n", (unsigned int) fbi->reg_lccr2); | 748 | pr_debug("reg_lccr2 0x%08x\n", (unsigned int) fbi->reg_lccr2); |
749 | DPRINTK("reg_lccr3 0x%08x\n", (unsigned int) fbi->reg_lccr3); | 749 | pr_debug("reg_lccr3 0x%08x\n", (unsigned int) fbi->reg_lccr3); |
750 | 750 | ||
751 | /* enable LCD controller clock */ | 751 | /* enable LCD controller clock */ |
752 | pxa_set_cken(CKEN16_LCD, 1); | 752 | pxa_set_cken(CKEN16_LCD, 1); |
@@ -761,19 +761,19 @@ static void pxafb_enable_controller(struct pxafb_info *fbi) | |||
761 | FDADR1 = fbi->fdadr1; | 761 | FDADR1 = fbi->fdadr1; |
762 | LCCR0 |= LCCR0_ENB; | 762 | LCCR0 |= LCCR0_ENB; |
763 | 763 | ||
764 | DPRINTK("FDADR0 0x%08x\n", (unsigned int) FDADR0); | 764 | pr_debug("FDADR0 0x%08x\n", (unsigned int) FDADR0); |
765 | DPRINTK("FDADR1 0x%08x\n", (unsigned int) FDADR1); | 765 | pr_debug("FDADR1 0x%08x\n", (unsigned int) FDADR1); |
766 | DPRINTK("LCCR0 0x%08x\n", (unsigned int) LCCR0); | 766 | pr_debug("LCCR0 0x%08x\n", (unsigned int) LCCR0); |
767 | DPRINTK("LCCR1 0x%08x\n", (unsigned int) LCCR1); | 767 | pr_debug("LCCR1 0x%08x\n", (unsigned int) LCCR1); |
768 | DPRINTK("LCCR2 0x%08x\n", (unsigned int) LCCR2); | 768 | pr_debug("LCCR2 0x%08x\n", (unsigned int) LCCR2); |
769 | DPRINTK("LCCR3 0x%08x\n", (unsigned int) LCCR3); | 769 | pr_debug("LCCR3 0x%08x\n", (unsigned int) LCCR3); |
770 | } | 770 | } |
771 | 771 | ||
772 | static void pxafb_disable_controller(struct pxafb_info *fbi) | 772 | static void pxafb_disable_controller(struct pxafb_info *fbi) |
773 | { | 773 | { |
774 | DECLARE_WAITQUEUE(wait, current); | 774 | DECLARE_WAITQUEUE(wait, current); |
775 | 775 | ||
776 | DPRINTK("Disabling LCD controller\n"); | 776 | pr_debug("pxafb: disabling LCD controller\n"); |
777 | 777 | ||
778 | set_current_state(TASK_UNINTERRUPTIBLE); | 778 | set_current_state(TASK_UNINTERRUPTIBLE); |
779 | add_wait_queue(&fbi->ctrlr_wait, &wait); | 779 | add_wait_queue(&fbi->ctrlr_wait, &wait); |
@@ -1039,7 +1039,7 @@ static int __init pxafb_map_video_memory(struct pxafb_info *fbi) | |||
1039 | fbi->palette_size = fbi->fb.var.bits_per_pixel == 8 ? 256 : 16; | 1039 | fbi->palette_size = fbi->fb.var.bits_per_pixel == 8 ? 256 : 16; |
1040 | 1040 | ||
1041 | palette_mem_size = fbi->palette_size * sizeof(u16); | 1041 | palette_mem_size = fbi->palette_size * sizeof(u16); |
1042 | DPRINTK("palette_mem_size = 0x%08lx\n", (u_long) palette_mem_size); | 1042 | pr_debug("pxafb: palette_mem_size = 0x%08lx\n", palette_mem_size); |
1043 | 1043 | ||
1044 | fbi->palette_cpu = (u16 *)(fbi->map_cpu + PAGE_SIZE - palette_mem_size); | 1044 | fbi->palette_cpu = (u16 *)(fbi->map_cpu + PAGE_SIZE - palette_mem_size); |
1045 | fbi->palette_dma = fbi->map_dma + PAGE_SIZE - palette_mem_size; | 1045 | fbi->palette_dma = fbi->map_dma + PAGE_SIZE - palette_mem_size; |
diff --git a/drivers/video/pxafb.h b/drivers/video/pxafb.h index 22c00be786a8..47f41f70db7a 100644 --- a/drivers/video/pxafb.h +++ b/drivers/video/pxafb.h | |||
@@ -114,15 +114,6 @@ struct pxafb_info { | |||
114 | #define PXA_NAME "PXA" | 114 | #define PXA_NAME "PXA" |
115 | 115 | ||
116 | /* | 116 | /* |
117 | * Debug macros | ||
118 | */ | ||
119 | #if DEBUG | ||
120 | # define DPRINTK(fmt, args...) printk("%s: " fmt, __FUNCTION__ , ## args) | ||
121 | #else | ||
122 | # define DPRINTK(fmt, args...) | ||
123 | #endif | ||
124 | |||
125 | /* | ||
126 | * Minimum X and Y resolutions | 117 | * Minimum X and Y resolutions |
127 | */ | 118 | */ |
128 | #define MIN_XRES 64 | 119 | #define MIN_XRES 64 |
diff --git a/drivers/video/s3c2410fb.c b/drivers/video/s3c2410fb.c index 00c0223a352e..5ab79afb53b7 100644 --- a/drivers/video/s3c2410fb.c +++ b/drivers/video/s3c2410fb.c | |||
@@ -228,8 +228,8 @@ static int s3c2410fb_check_var(struct fb_var_screeninfo *var, | |||
228 | * information | 228 | * information |
229 | */ | 229 | */ |
230 | 230 | ||
231 | static int s3c2410fb_activate_var(struct s3c2410fb_info *fbi, | 231 | static void s3c2410fb_activate_var(struct s3c2410fb_info *fbi, |
232 | struct fb_var_screeninfo *var) | 232 | struct fb_var_screeninfo *var) |
233 | { | 233 | { |
234 | fbi->regs.lcdcon1 &= ~S3C2410_LCDCON1_MODEMASK; | 234 | fbi->regs.lcdcon1 &= ~S3C2410_LCDCON1_MODEMASK; |
235 | 235 | ||