disable IMQ on 2.6.28 as well -- people should use IFB..
[openwrt.git] / target / linux / s3c24xx / patches / 0110-debug-glamo-add-lcd-regs-to-dump.patch.patch
1 From b125a98964db82b9d69f683f6b887422a55f0124 Mon Sep 17 00:00:00 2001
2 From: warmcat <andy@warmcat.com>
3 Date: Fri, 25 Jul 2008 23:06:04 +0100
4 Subject: [PATCH] debug-glamo-add-lcd-regs-to-dump.patch
5
6 Signed-off-by: Andy Green <andy@openmoko.com>
7 ---
8  drivers/mfd/glamo/glamo-core.c |   11 ++++++-----
9  1 files changed, 6 insertions(+), 5 deletions(-)
10
11 diff --git a/drivers/mfd/glamo/glamo-core.c b/drivers/mfd/glamo/glamo-core.c
12 index 19ca363..ab90690 100644
13 --- a/drivers/mfd/glamo/glamo-core.c
14 +++ b/drivers/mfd/glamo/glamo-core.c
15 @@ -1012,14 +1012,16 @@ static ssize_t regs_read(struct device *dev, struct device_attribute *attr,
16                 char * name;
17         };
18         struct reg_range reg_range[] = {
19 -               { 0x0000, 0x200, "General" },
20 +/*             { 0x0000, 0x200, "General" },
21                 { 0x0200, 0x100, "Host Bus" },
22                 { 0x0300, 0x100, "Memory" },
23 -/*             { 0x0400, 0x100, "Sensor" },
24 +               { 0x0400, 0x100, "Sensor" },
25                 { 0x0500, 0x300, "ISP" },
26                 { 0x0800, 0x400, "JPEG" },
27                 { 0x0c00, 0x500, "MPEG" },
28 +*/
29                 { 0x1100, 0x400, "LCD" },
30 +/*
31                 { 0x1500, 0x080, "MPU 0" },
32                 { 0x1580, 0x080, "MPU 1" },
33                 { 0x1600, 0x080, "Command Queue" },
34 @@ -1037,8 +1039,7 @@ static ssize_t regs_read(struct device *dev, struct device_attribute *attr,
35                 for (n = reg_range[r].start;
36                      n < reg_range[r].start + reg_range[r].count; n += 2) {
37                         if (((n1++) & 7) == 0)
38 -                               end += sprintf(end, "\n%04X:  ",
39 -                                              n + reg_range[r].start);
40 +                               end += sprintf(end, "\n%04X:  ", n);
41                         end += sprintf(end, "%04x ", __reg_read(glamo, n));
42                 }
43                 end += sprintf(end, "\n");
44 @@ -1098,7 +1099,7 @@ static int __init glamo_probe(struct platform_device *pdev)
45         platform_device_register(&glamo_core_dev);
46  #endif
47         /* only remap the generic, hostbus and memory controller registers */
48 -       glamo->base = ioremap(glamo->mem->start, GLAMO_REGOFS_VIDCAP);
49 +       glamo->base = ioremap(glamo->mem->start, 0x4000 /*GLAMO_REGOFS_VIDCAP*/);
50         if (!glamo->base) {
51                 dev_err(&pdev->dev, "failed to ioremap() memory region\n");
52                 goto out_free;
53 -- 
54 1.5.6.3
55