tangled
alpha
login
or
join now
tjh.dev
/
kernel
Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1
fork
atom
overview
issues
pulls
pipelines
Merge master.kernel.org:/home/rmk/linux-2.6-arm
Linus Torvalds
20 years ago
1dd465ca
a2218cac
+82
-113
39 changed files
expand all
collapse all
unified
split
arch
arm
common
gic.c
locomo.c
mach-imx
leds-mx1ads.c
mach-iop3xx
common.c
iop321-time.c
iop331-time.c
iq31244-mm.c
iq80321-mm.c
iq80331-mm.c
iq80332-mm.c
mach-ixp2000
core.c
pci.c
mach-l7200
core.c
mach-pxa
corgi_lcd.c
generic.c
mach-s3c2410
usb-simtec.c
mach-versatile
core.c
pci.c
mm
cache-v6.S
flush.c
plat-omap
common.c
cpu-omap.c
usb.c
drivers
mtd
maps
bast-flash.c
ixp2000.c
ixp4xx.c
omap_nor.c
sa1100-flash.c
nand
s3c2410.c
pcmcia
omap_cf.c
serial
s3c2410.c
usb
host
ohci-lh7a404.c
ohci-omap.c
ohci-s3c2410.c
video
backlight
corgi_bl.c
imxfb.c
pxafb.c
pxafb.h
include
asm-arm
elf.h
+2
arch/arm/common/gic.c
···
68
68
writel(mask, gic_dist_base + GIC_DIST_ENABLE_SET + (irq / 32) * 4);
69
69
}
70
70
71
71
+
#ifdef CONFIG_SMP
71
72
static void gic_set_cpu(struct irqdesc *desc, unsigned int irq, unsigned int cpu)
72
73
{
73
74
void __iomem *reg = gic_dist_base + GIC_DIST_TARGET + (irq & ~3);
···
79
78
val |= 1 << (cpu + shift);
80
79
writel(val, reg);
81
80
}
81
81
+
#endif
82
82
83
83
static struct irqchip gic_chip = {
84
84
.ack = gic_ack_irq,
-1
arch/arm/common/locomo.c
···
27
27
#include <linux/spinlock.h>
28
28
29
29
#include <asm/hardware.h>
30
30
-
#include <asm/mach-types.h>
31
30
#include <asm/io.h>
32
31
#include <asm/irq.h>
33
32
#include <asm/mach/irq.h>
-1
arch/arm/mach-imx/leds-mx1ads.c
···
17
17
#include <asm/system.h>
18
18
#include <asm/io.h>
19
19
#include <asm/leds.h>
20
20
-
#include <asm/mach-types.h>
21
20
#include "leds.h"
22
21
23
22
/*
-1
arch/arm/mach-iop3xx/common.c
···
27
27
/*
28
28
* Default power-off for EP80219
29
29
*/
30
30
-
#include <asm/mach-types.h>
31
30
32
31
static inline void ep80219_send_to_pic(__u8 c) {
33
32
}
-1
arch/arm/mach-iop3xx/iop321-time.c
···
23
23
#include <asm/io.h>
24
24
#include <asm/irq.h>
25
25
#include <asm/uaccess.h>
26
26
-
#include <asm/mach-types.h>
27
26
#include <asm/mach/irq.h>
28
27
#include <asm/mach/time.h>
29
28
-1
arch/arm/mach-iop3xx/iop331-time.c
···
23
23
#include <asm/io.h>
24
24
#include <asm/irq.h>
25
25
#include <asm/uaccess.h>
26
26
-
#include <asm/mach-types.h>
27
26
#include <asm/mach/irq.h>
28
27
#include <asm/mach/time.h>
29
28
-1
arch/arm/mach-iop3xx/iq31244-mm.c
···
21
21
#include <asm/page.h>
22
22
23
23
#include <asm/mach/map.h>
24
24
-
#include <asm/mach-types.h>
25
24
26
25
27
26
/*
-1
arch/arm/mach-iop3xx/iq80321-mm.c
···
21
21
#include <asm/page.h>
22
22
23
23
#include <asm/mach/map.h>
24
24
-
#include <asm/mach-types.h>
25
24
26
25
27
26
/*
-1
arch/arm/mach-iop3xx/iq80331-mm.c
···
21
21
#include <asm/page.h>
22
22
23
23
#include <asm/mach/map.h>
24
24
-
#include <asm/mach-types.h>
25
24
26
25
27
26
/*
-1
arch/arm/mach-iop3xx/iq80332-mm.c
···
21
21
#include <asm/page.h>
22
22
23
23
#include <asm/mach/map.h>
24
24
-
#include <asm/mach-types.h>
25
24
26
25
27
26
/*
-1
arch/arm/mach-ixp2000/core.c
···
30
30
#include <asm/setup.h>
31
31
#include <asm/memory.h>
32
32
#include <asm/hardware.h>
33
33
-
#include <asm/mach-types.h>
34
33
#include <asm/irq.h>
35
34
#include <asm/system.h>
36
35
#include <asm/tlbflush.h>
-1
arch/arm/mach-ixp2000/pci.c
···
28
28
#include <asm/io.h>
29
29
#include <asm/irq.h>
30
30
#include <asm/system.h>
31
31
-
#include <asm/mach-types.h>
32
31
#include <asm/hardware.h>
33
32
34
33
#include <asm/mach/pci.h>
-1
arch/arm/mach-l7200/core.c
···
12
12
#include <asm/page.h>
13
13
14
14
#include <asm/mach/map.h>
15
15
-
#include <asm/arch/hardware.h>
16
15
17
16
/*
18
17
* IRQ base register
-1
arch/arm/mach-pxa/corgi_lcd.c
···
19
19
#include <linux/kernel.h>
20
20
#include <linux/device.h>
21
21
#include <linux/module.h>
22
22
-
#include <asm/mach-types.h>
23
22
#include <asm/arch/akita.h>
24
23
#include <asm/arch/corgi.h>
25
24
#include <asm/arch/hardware.h>
+1
arch/arm/mach-pxa/generic.c
···
34
34
#include <asm/arch/udc.h>
35
35
#include <asm/arch/pxafb.h>
36
36
#include <asm/arch/mmc.h>
37
37
+
#include <asm/arch/i2c.h>
37
38
38
39
#include "generic.h"
39
40
-1
arch/arm/mach-s3c2410/usb-simtec.c
···
40
40
#include <asm/hardware.h>
41
41
#include <asm/io.h>
42
42
#include <asm/irq.h>
43
43
-
#include <asm/mach-types.h>
44
43
45
44
#include "devs.h"
46
45
#include "usb-simtec.h"
-1
arch/arm/mach-versatile/core.c
···
30
30
#include <asm/io.h>
31
31
#include <asm/irq.h>
32
32
#include <asm/leds.h>
33
33
-
#include <asm/mach-types.h>
34
33
#include <asm/hardware/amba.h>
35
34
#include <asm/hardware/amba_clcd.h>
36
35
#include <asm/hardware/arm_timer.h>
-1
arch/arm/mach-versatile/pci.c
···
29
29
#include <asm/irq.h>
30
30
#include <asm/system.h>
31
31
#include <asm/mach/pci.h>
32
32
-
#include <asm/mach-types.h>
33
32
34
33
/*
35
34
* these spaces are mapped using the following base registers:
+8
-1
arch/arm/mm/cache-v6.S
···
18
18
#define HARVARD_CACHE
19
19
#define CACHE_LINE_SIZE 32
20
20
#define D_CACHE_LINE_SIZE 32
21
21
+
#define BTB_FLUSH_SIZE 8
21
22
22
23
/*
23
24
* v6_flush_cache_all()
···
99
98
mcr p15, 0, r0, c7, c5, 1 @ invalidate I line
100
99
#endif
101
100
mcr p15, 0, r0, c7, c5, 7 @ invalidate BTB entry
102
102
-
add r0, r0, #CACHE_LINE_SIZE
101
101
+
add r0, r0, #BTB_FLUSH_SIZE
102
102
+
mcr p15, 0, r0, c7, c5, 7 @ invalidate BTB entry
103
103
+
add r0, r0, #BTB_FLUSH_SIZE
104
104
+
mcr p15, 0, r0, c7, c5, 7 @ invalidate BTB entry
105
105
+
add r0, r0, #BTB_FLUSH_SIZE
106
106
+
mcr p15, 0, r0, c7, c5, 7 @ invalidate BTB entry
107
107
+
add r0, r0, #BTB_FLUSH_SIZE
103
108
cmp r0, r1
104
109
blo 1b
105
110
#ifdef HARVARD_CACHE
+18
-18
arch/arm/mm/flush.c
···
17
17
18
18
#ifdef CONFIG_CPU_CACHE_VIPT
19
19
20
20
+
#define ALIAS_FLUSH_START 0xffff4000
21
21
+
22
22
+
#define TOP_PTE(x) pte_offset_kernel(top_pmd, x)
23
23
+
24
24
+
static void flush_pfn_alias(unsigned long pfn, unsigned long vaddr)
25
25
+
{
26
26
+
unsigned long to = ALIAS_FLUSH_START + (CACHE_COLOUR(vaddr) << PAGE_SHIFT);
27
27
+
28
28
+
set_pte(TOP_PTE(to), pfn_pte(pfn, PAGE_KERNEL));
29
29
+
flush_tlb_kernel_page(to);
30
30
+
31
31
+
asm( "mcrr p15, 0, %1, %0, c14\n"
32
32
+
" mcrr p15, 0, %1, %0, c5\n"
33
33
+
:
34
34
+
: "r" (to), "r" (to + PAGE_SIZE - L1_CACHE_BYTES)
35
35
+
: "cc");
36
36
+
}
37
37
+
20
38
void flush_cache_mm(struct mm_struct *mm)
21
39
{
22
40
if (cache_is_vivt()) {
···
84
66
85
67
if (cache_is_vipt_aliasing())
86
68
flush_pfn_alias(pfn, user_addr);
87
87
-
}
88
88
-
89
89
-
#define ALIAS_FLUSH_START 0xffff4000
90
90
-
91
91
-
#define TOP_PTE(x) pte_offset_kernel(top_pmd, x)
92
92
-
93
93
-
static void flush_pfn_alias(unsigned long pfn, unsigned long vaddr)
94
94
-
{
95
95
-
unsigned long to = ALIAS_FLUSH_START + (CACHE_COLOUR(vaddr) << PAGE_SHIFT);
96
96
-
97
97
-
set_pte(TOP_PTE(to), pfn_pte(pfn, PAGE_KERNEL));
98
98
-
flush_tlb_kernel_page(to);
99
99
-
100
100
-
asm( "mcrr p15, 0, %1, %0, c14\n"
101
101
-
" mcrr p15, 0, %1, %0, c5\n"
102
102
-
:
103
103
-
: "r" (to), "r" (to + PAGE_SIZE - L1_CACHE_BYTES)
104
104
-
: "cc");
105
69
}
106
70
#else
107
71
#define flush_pfn_alias(pfn,vaddr) do { } while (0)
-1
arch/arm/plat-omap/common.c
···
25
25
#include <asm/mach/map.h>
26
26
#include <asm/hardware/clock.h>
27
27
#include <asm/io.h>
28
28
-
#include <asm/mach-types.h>
29
28
#include <asm/setup.h>
30
29
31
30
#include <asm/arch/board.h>
-1
arch/arm/plat-omap/cpu-omap.c
···
21
21
#include <linux/err.h>
22
22
23
23
#include <asm/hardware.h>
24
24
-
#include <asm/mach-types.h>
25
24
#include <asm/io.h>
26
25
#include <asm/system.h>
27
26
-1
arch/arm/plat-omap/usb.c
···
33
33
#include <asm/irq.h>
34
34
#include <asm/system.h>
35
35
#include <asm/hardware.h>
36
36
-
#include <asm/mach-types.h>
37
36
38
37
#include <asm/arch/mux.h>
39
38
#include <asm/arch/usb.h>
-1
drivers/mtd/maps/bast-flash.c
···
39
39
#include <linux/mtd/partitions.h>
40
40
41
41
#include <asm/io.h>
42
42
-
#include <asm/mach-types.h>
43
42
#include <asm/mach/flash.h>
44
43
45
44
#include <asm/arch/map.h>
-1
drivers/mtd/maps/ixp2000.c
···
30
30
31
31
#include <asm/io.h>
32
32
#include <asm/hardware.h>
33
33
-
#include <asm/mach-types.h>
34
33
#include <asm/mach/flash.h>
35
34
36
35
#include <linux/reboot.h>
-1
drivers/mtd/maps/ixp4xx.c
···
26
26
#include <linux/ioport.h>
27
27
#include <linux/device.h>
28
28
#include <asm/io.h>
29
29
-
#include <asm/mach-types.h>
30
29
#include <asm/mach/flash.h>
31
30
32
31
#include <linux/reboot.h>
-1
drivers/mtd/maps/omap_nor.c
···
42
42
43
43
#include <asm/io.h>
44
44
#include <asm/hardware.h>
45
45
-
#include <asm/mach-types.h>
46
45
#include <asm/mach/flash.h>
47
46
#include <asm/arch/tc.h>
48
47
-1
drivers/mtd/maps/sa1100-flash.c
···
21
21
#include <linux/mtd/partitions.h>
22
22
#include <linux/mtd/concat.h>
23
23
24
24
-
#include <asm/mach-types.h>
25
24
#include <asm/io.h>
26
25
#include <asm/sizes.h>
27
26
#include <asm/mach/flash.h>
-1
drivers/mtd/nand/s3c2410.c
···
58
58
#include <linux/mtd/partitions.h>
59
59
60
60
#include <asm/io.h>
61
61
-
#include <asm/mach-types.h>
62
61
#include <asm/hardware/clock.h>
63
62
64
63
#include <asm/arch/regs-nand.h>
-1
drivers/pcmcia/omap_cf.c
···
22
22
23
23
#include <asm/hardware.h>
24
24
#include <asm/io.h>
25
25
-
#include <asm/mach-types.h>
26
25
#include <asm/sizes.h>
27
26
28
27
#include <asm/arch/mux.h>
-2
drivers/serial/s3c2410.c
···
82
82
#include <asm/arch/regs-serial.h>
83
83
#include <asm/arch/regs-gpio.h>
84
84
85
85
-
#include <asm/mach-types.h>
86
86
-
87
85
/* structures */
88
86
89
87
struct s3c24xx_uart_info {
-2
drivers/usb/host/ohci-lh7a404.c
···
17
17
*/
18
18
19
19
#include <asm/hardware.h>
20
20
-
#include <asm/mach-types.h>
21
21
-
#include <asm/arch/hardware.h>
22
20
23
21
24
22
extern int usb_disabled(void);
-1
drivers/usb/host/ohci-omap.c
···
18
18
#include <asm/io.h>
19
19
#include <asm/mach-types.h>
20
20
21
21
-
#include <asm/arch/hardware.h>
22
21
#include <asm/arch/mux.h>
23
22
#include <asm/arch/irqs.h>
24
23
#include <asm/arch/gpio.h>
-1
drivers/usb/host/ohci-s3c2410.c
···
20
20
*/
21
21
22
22
#include <asm/hardware.h>
23
23
-
#include <asm/mach-types.h>
24
23
#include <asm/hardware/clock.h>
25
24
#include <asm/arch/usb-control.h>
26
25
-1
drivers/video/backlight/corgi_bl.c
···
19
19
#include <linux/fb.h>
20
20
#include <linux/backlight.h>
21
21
22
22
-
#include <asm/mach-types.h>
23
22
#include <asm/arch/sharpsl.h>
24
23
25
24
#define CORGI_DEFAULT_INTENSITY 0x1f
-1
drivers/video/imxfb.c
···
36
36
37
37
#include <asm/hardware.h>
38
38
#include <asm/io.h>
39
39
-
#include <asm/mach-types.h>
40
39
#include <asm/uaccess.h>
41
40
#include <asm/arch/imxfb.h>
42
41
+51
-51
drivers/video/pxafb.c
···
260
260
}
261
261
262
262
#ifdef CONFIG_CPU_FREQ
263
263
-
DPRINTK("dma period = %d ps, clock = %d kHz\n",
264
264
-
pxafb_display_dma_period(var),
265
265
-
get_clk_frequency_khz(0));
263
263
+
pr_debug("pxafb: dma period = %d ps, clock = %d kHz\n",
264
264
+
pxafb_display_dma_period(var),
265
265
+
get_clk_frequency_khz(0));
266
266
#endif
267
267
268
268
return 0;
···
270
270
271
271
static inline void pxafb_set_truecolor(u_int is_true_color)
272
272
{
273
273
-
DPRINTK("true_color = %d\n", is_true_color);
273
273
+
pr_debug("pxafb: true_color = %d\n", is_true_color);
274
274
// do your machine-specific setup if needed
275
275
}
276
276
···
284
284
struct fb_var_screeninfo *var = &info->var;
285
285
unsigned long palette_mem_size;
286
286
287
287
-
DPRINTK("set_par\n");
287
287
+
pr_debug("pxafb: set_par\n");
288
288
289
289
if (var->bits_per_pixel == 16)
290
290
fbi->fb.fix.visual = FB_VISUAL_TRUECOLOR;
···
308
308
309
309
palette_mem_size = fbi->palette_size * sizeof(u16);
310
310
311
311
-
DPRINTK("palette_mem_size = 0x%08lx\n", (u_long) palette_mem_size);
311
311
+
pr_debug("pxafb: palette_mem_size = 0x%08lx\n", palette_mem_size);
312
312
313
313
fbi->palette_cpu = (u16 *)(fbi->map_cpu + PAGE_SIZE - palette_mem_size);
314
314
fbi->palette_dma = fbi->map_dma + PAGE_SIZE - palette_mem_size;
···
369
369
struct pxafb_info *fbi = (struct pxafb_info *)info;
370
370
int i;
371
371
372
372
-
DPRINTK("pxafb_blank: blank=%d\n", blank);
372
372
+
pr_debug("pxafb: blank=%d\n", blank);
373
373
374
374
switch (blank) {
375
375
case FB_BLANK_POWERDOWN:
···
508
508
u_long flags;
509
509
u_int lines_per_panel, pcd = get_pcd(var->pixclock);
510
510
511
511
-
DPRINTK("Configuring PXA LCD\n");
511
511
+
pr_debug("pxafb: Configuring PXA LCD\n");
512
512
513
513
-
DPRINTK("var: xres=%d hslen=%d lm=%d rm=%d\n",
514
514
-
var->xres, var->hsync_len,
515
515
-
var->left_margin, var->right_margin);
516
516
-
DPRINTK("var: yres=%d vslen=%d um=%d bm=%d\n",
517
517
-
var->yres, var->vsync_len,
518
518
-
var->upper_margin, var->lower_margin);
519
519
-
DPRINTK("var: pixclock=%d pcd=%d\n", var->pixclock, pcd);
513
513
+
pr_debug("var: xres=%d hslen=%d lm=%d rm=%d\n",
514
514
+
var->xres, var->hsync_len,
515
515
+
var->left_margin, var->right_margin);
516
516
+
pr_debug("var: yres=%d vslen=%d um=%d bm=%d\n",
517
517
+
var->yres, var->vsync_len,
518
518
+
var->upper_margin, var->lower_margin);
519
519
+
pr_debug("var: pixclock=%d pcd=%d\n", var->pixclock, pcd);
520
520
521
521
#if DEBUG_VAR
522
522
if (var->xres < 16 || var->xres > 1024)
···
589
589
if (pcd)
590
590
new_regs.lccr3 |= LCCR3_PixClkDiv(pcd);
591
591
592
592
-
DPRINTK("nlccr0 = 0x%08x\n", new_regs.lccr0);
593
593
-
DPRINTK("nlccr1 = 0x%08x\n", new_regs.lccr1);
594
594
-
DPRINTK("nlccr2 = 0x%08x\n", new_regs.lccr2);
595
595
-
DPRINTK("nlccr3 = 0x%08x\n", new_regs.lccr3);
592
592
+
pr_debug("nlccr0 = 0x%08x\n", new_regs.lccr0);
593
593
+
pr_debug("nlccr1 = 0x%08x\n", new_regs.lccr1);
594
594
+
pr_debug("nlccr2 = 0x%08x\n", new_regs.lccr2);
595
595
+
pr_debug("nlccr3 = 0x%08x\n", new_regs.lccr3);
596
596
597
597
/* Update shadow copy atomically */
598
598
local_irq_save(flags);
···
637
637
}
638
638
639
639
#if 0
640
640
-
DPRINTK("fbi->dmadesc_fblow_cpu = 0x%p\n", fbi->dmadesc_fblow_cpu);
641
641
-
DPRINTK("fbi->dmadesc_fbhigh_cpu = 0x%p\n", fbi->dmadesc_fbhigh_cpu);
642
642
-
DPRINTK("fbi->dmadesc_palette_cpu = 0x%p\n", fbi->dmadesc_palette_cpu);
643
643
-
DPRINTK("fbi->dmadesc_fblow_dma = 0x%x\n", fbi->dmadesc_fblow_dma);
644
644
-
DPRINTK("fbi->dmadesc_fbhigh_dma = 0x%x\n", fbi->dmadesc_fbhigh_dma);
645
645
-
DPRINTK("fbi->dmadesc_palette_dma = 0x%x\n", fbi->dmadesc_palette_dma);
640
640
+
pr_debug("fbi->dmadesc_fblow_cpu = 0x%p\n", fbi->dmadesc_fblow_cpu);
641
641
+
pr_debug("fbi->dmadesc_fbhigh_cpu = 0x%p\n", fbi->dmadesc_fbhigh_cpu);
642
642
+
pr_debug("fbi->dmadesc_palette_cpu = 0x%p\n", fbi->dmadesc_palette_cpu);
643
643
+
pr_debug("fbi->dmadesc_fblow_dma = 0x%x\n", fbi->dmadesc_fblow_dma);
644
644
+
pr_debug("fbi->dmadesc_fbhigh_dma = 0x%x\n", fbi->dmadesc_fbhigh_dma);
645
645
+
pr_debug("fbi->dmadesc_palette_dma = 0x%x\n", fbi->dmadesc_palette_dma);
646
646
647
647
-
DPRINTK("fbi->dmadesc_fblow_cpu->fdadr = 0x%x\n", fbi->dmadesc_fblow_cpu->fdadr);
648
648
-
DPRINTK("fbi->dmadesc_fbhigh_cpu->fdadr = 0x%x\n", fbi->dmadesc_fbhigh_cpu->fdadr);
649
649
-
DPRINTK("fbi->dmadesc_palette_cpu->fdadr = 0x%x\n", fbi->dmadesc_palette_cpu->fdadr);
647
647
+
pr_debug("fbi->dmadesc_fblow_cpu->fdadr = 0x%x\n", fbi->dmadesc_fblow_cpu->fdadr);
648
648
+
pr_debug("fbi->dmadesc_fbhigh_cpu->fdadr = 0x%x\n", fbi->dmadesc_fbhigh_cpu->fdadr);
649
649
+
pr_debug("fbi->dmadesc_palette_cpu->fdadr = 0x%x\n", fbi->dmadesc_palette_cpu->fdadr);
650
650
651
651
-
DPRINTK("fbi->dmadesc_fblow_cpu->fsadr = 0x%x\n", fbi->dmadesc_fblow_cpu->fsadr);
652
652
-
DPRINTK("fbi->dmadesc_fbhigh_cpu->fsadr = 0x%x\n", fbi->dmadesc_fbhigh_cpu->fsadr);
653
653
-
DPRINTK("fbi->dmadesc_palette_cpu->fsadr = 0x%x\n", fbi->dmadesc_palette_cpu->fsadr);
651
651
+
pr_debug("fbi->dmadesc_fblow_cpu->fsadr = 0x%x\n", fbi->dmadesc_fblow_cpu->fsadr);
652
652
+
pr_debug("fbi->dmadesc_fbhigh_cpu->fsadr = 0x%x\n", fbi->dmadesc_fbhigh_cpu->fsadr);
653
653
+
pr_debug("fbi->dmadesc_palette_cpu->fsadr = 0x%x\n", fbi->dmadesc_palette_cpu->fsadr);
654
654
655
655
-
DPRINTK("fbi->dmadesc_fblow_cpu->ldcmd = 0x%x\n", fbi->dmadesc_fblow_cpu->ldcmd);
656
656
-
DPRINTK("fbi->dmadesc_fbhigh_cpu->ldcmd = 0x%x\n", fbi->dmadesc_fbhigh_cpu->ldcmd);
657
657
-
DPRINTK("fbi->dmadesc_palette_cpu->ldcmd = 0x%x\n", fbi->dmadesc_palette_cpu->ldcmd);
655
655
+
pr_debug("fbi->dmadesc_fblow_cpu->ldcmd = 0x%x\n", fbi->dmadesc_fblow_cpu->ldcmd);
656
656
+
pr_debug("fbi->dmadesc_fbhigh_cpu->ldcmd = 0x%x\n", fbi->dmadesc_fbhigh_cpu->ldcmd);
657
657
+
pr_debug("fbi->dmadesc_palette_cpu->ldcmd = 0x%x\n", fbi->dmadesc_palette_cpu->ldcmd);
658
658
#endif
659
659
660
660
fbi->reg_lccr0 = new_regs.lccr0;
···
684
684
*/
685
685
static inline void __pxafb_backlight_power(struct pxafb_info *fbi, int on)
686
686
{
687
687
-
DPRINTK("backlight o%s\n", on ? "n" : "ff");
687
687
+
pr_debug("pxafb: backlight o%s\n", on ? "n" : "ff");
688
688
689
689
if (pxafb_backlight_power)
690
690
pxafb_backlight_power(on);
···
692
692
693
693
static inline void __pxafb_lcd_power(struct pxafb_info *fbi, int on)
694
694
{
695
695
-
DPRINTK("LCD power o%s\n", on ? "n" : "ff");
695
695
+
pr_debug("pxafb: LCD power o%s\n", on ? "n" : "ff");
696
696
697
697
if (pxafb_lcd_power)
698
698
pxafb_lcd_power(on);
···
740
740
741
741
static void pxafb_enable_controller(struct pxafb_info *fbi)
742
742
{
743
743
-
DPRINTK("Enabling LCD controller\n");
744
744
-
DPRINTK("fdadr0 0x%08x\n", (unsigned int) fbi->fdadr0);
745
745
-
DPRINTK("fdadr1 0x%08x\n", (unsigned int) fbi->fdadr1);
746
746
-
DPRINTK("reg_lccr0 0x%08x\n", (unsigned int) fbi->reg_lccr0);
747
747
-
DPRINTK("reg_lccr1 0x%08x\n", (unsigned int) fbi->reg_lccr1);
748
748
-
DPRINTK("reg_lccr2 0x%08x\n", (unsigned int) fbi->reg_lccr2);
749
749
-
DPRINTK("reg_lccr3 0x%08x\n", (unsigned int) fbi->reg_lccr3);
743
743
+
pr_debug("pxafb: Enabling LCD controller\n");
744
744
+
pr_debug("fdadr0 0x%08x\n", (unsigned int) fbi->fdadr0);
745
745
+
pr_debug("fdadr1 0x%08x\n", (unsigned int) fbi->fdadr1);
746
746
+
pr_debug("reg_lccr0 0x%08x\n", (unsigned int) fbi->reg_lccr0);
747
747
+
pr_debug("reg_lccr1 0x%08x\n", (unsigned int) fbi->reg_lccr1);
748
748
+
pr_debug("reg_lccr2 0x%08x\n", (unsigned int) fbi->reg_lccr2);
749
749
+
pr_debug("reg_lccr3 0x%08x\n", (unsigned int) fbi->reg_lccr3);
750
750
751
751
/* enable LCD controller clock */
752
752
pxa_set_cken(CKEN16_LCD, 1);
···
761
761
FDADR1 = fbi->fdadr1;
762
762
LCCR0 |= LCCR0_ENB;
763
763
764
764
-
DPRINTK("FDADR0 0x%08x\n", (unsigned int) FDADR0);
765
765
-
DPRINTK("FDADR1 0x%08x\n", (unsigned int) FDADR1);
766
766
-
DPRINTK("LCCR0 0x%08x\n", (unsigned int) LCCR0);
767
767
-
DPRINTK("LCCR1 0x%08x\n", (unsigned int) LCCR1);
768
768
-
DPRINTK("LCCR2 0x%08x\n", (unsigned int) LCCR2);
769
769
-
DPRINTK("LCCR3 0x%08x\n", (unsigned int) LCCR3);
764
764
+
pr_debug("FDADR0 0x%08x\n", (unsigned int) FDADR0);
765
765
+
pr_debug("FDADR1 0x%08x\n", (unsigned int) FDADR1);
766
766
+
pr_debug("LCCR0 0x%08x\n", (unsigned int) LCCR0);
767
767
+
pr_debug("LCCR1 0x%08x\n", (unsigned int) LCCR1);
768
768
+
pr_debug("LCCR2 0x%08x\n", (unsigned int) LCCR2);
769
769
+
pr_debug("LCCR3 0x%08x\n", (unsigned int) LCCR3);
770
770
}
771
771
772
772
static void pxafb_disable_controller(struct pxafb_info *fbi)
773
773
{
774
774
DECLARE_WAITQUEUE(wait, current);
775
775
776
776
-
DPRINTK("Disabling LCD controller\n");
776
776
+
pr_debug("pxafb: disabling LCD controller\n");
777
777
778
778
set_current_state(TASK_UNINTERRUPTIBLE);
779
779
add_wait_queue(&fbi->ctrlr_wait, &wait);
···
1039
1039
fbi->palette_size = fbi->fb.var.bits_per_pixel == 8 ? 256 : 16;
1040
1040
1041
1041
palette_mem_size = fbi->palette_size * sizeof(u16);
1042
1042
-
DPRINTK("palette_mem_size = 0x%08lx\n", (u_long) palette_mem_size);
1042
1042
+
pr_debug("pxafb: palette_mem_size = 0x%08lx\n", palette_mem_size);
1043
1043
1044
1044
fbi->palette_cpu = (u16 *)(fbi->map_cpu + PAGE_SIZE - palette_mem_size);
1045
1045
fbi->palette_dma = fbi->map_dma + PAGE_SIZE - palette_mem_size;
-9
drivers/video/pxafb.h
···
114
114
#define PXA_NAME "PXA"
115
115
116
116
/*
117
117
-
* Debug macros
118
118
-
*/
119
119
-
#if DEBUG
120
120
-
# define DPRINTK(fmt, args...) printk("%s: " fmt, __FUNCTION__ , ## args)
121
121
-
#else
122
122
-
# define DPRINTK(fmt, args...)
123
123
-
#endif
124
124
-
125
125
-
/*
126
117
* Minimum X and Y resolutions
127
118
*/
128
119
#define MIN_XRES 64
+2
include/asm-arm/elf.h
···
124
124
if (((ex).e_flags & EF_ARM_EABI_MASK) || \
125
125
((ex).e_flags & EF_ARM_SOFT_FLOAT)) \
126
126
set_thread_flag(TIF_USING_IWMMXT); \
127
127
+
else \
128
128
+
clear_thread_flag(TIF_USING_IWMMXT); \
127
129
} while (0)
128
130
129
131
#endif