summaryrefslogtreecommitdiff
path: root/target/linux/s3c24xx/patches-2.6.26/1110-debug-glamo-add-lcd-regs-to-dump.patch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.26/1110-debug-glamo-add-lcd-regs-to-dump.patch.patch')
-rwxr-xr-xtarget/linux/s3c24xx/patches-2.6.26/1110-debug-glamo-add-lcd-regs-to-dump.patch.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.26/1110-debug-glamo-add-lcd-regs-to-dump.patch.patch b/target/linux/s3c24xx/patches-2.6.26/1110-debug-glamo-add-lcd-regs-to-dump.patch.patch
new file mode 100755
index 0000000..a77816b
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.26/1110-debug-glamo-add-lcd-regs-to-dump.patch.patch
@@ -0,0 +1,55 @@
+From b125a98964db82b9d69f683f6b887422a55f0124 Mon Sep 17 00:00:00 2001
+From: warmcat <andy@warmcat.com>
+Date: Fri, 25 Jul 2008 23:06:04 +0100
+Subject: [PATCH] debug-glamo-add-lcd-regs-to-dump.patch
+
+Signed-off-by: Andy Green <andy@openmoko.com>
+---
+ drivers/mfd/glamo/glamo-core.c | 11 ++++++-----
+ 1 files changed, 6 insertions(+), 5 deletions(-)
+
+diff --git a/drivers/mfd/glamo/glamo-core.c b/drivers/mfd/glamo/glamo-core.c
+index 19ca363..ab90690 100644
+--- a/drivers/mfd/glamo/glamo-core.c
++++ b/drivers/mfd/glamo/glamo-core.c
+@@ -1012,14 +1012,16 @@ static ssize_t regs_read(struct device *dev, struct device_attribute *attr,
+ char * name;
+ };
+ struct reg_range reg_range[] = {
+- { 0x0000, 0x200, "General" },
++/* { 0x0000, 0x200, "General" },
+ { 0x0200, 0x100, "Host Bus" },
+ { 0x0300, 0x100, "Memory" },
+-/* { 0x0400, 0x100, "Sensor" },
++ { 0x0400, 0x100, "Sensor" },
+ { 0x0500, 0x300, "ISP" },
+ { 0x0800, 0x400, "JPEG" },
+ { 0x0c00, 0x500, "MPEG" },
++*/
+ { 0x1100, 0x400, "LCD" },
++/*
+ { 0x1500, 0x080, "MPU 0" },
+ { 0x1580, 0x080, "MPU 1" },
+ { 0x1600, 0x080, "Command Queue" },
+@@ -1037,8 +1039,7 @@ static ssize_t regs_read(struct device *dev, struct device_attribute *attr,
+ for (n = reg_range[r].start;
+ n < reg_range[r].start + reg_range[r].count; n += 2) {
+ if (((n1++) & 7) == 0)
+- end += sprintf(end, "\n%04X: ",
+- n + reg_range[r].start);
++ end += sprintf(end, "\n%04X: ", n);
+ end += sprintf(end, "%04x ", __reg_read(glamo, n));
+ }
+ end += sprintf(end, "\n");
+@@ -1098,7 +1099,7 @@ static int __init glamo_probe(struct platform_device *pdev)
+ platform_device_register(&glamo_core_dev);
+ #endif
+ /* only remap the generic, hostbus and memory controller registers */
+- glamo->base = ioremap(glamo->mem->start, GLAMO_REGOFS_VIDCAP);
++ glamo->base = ioremap(glamo->mem->start, 0x4000 /*GLAMO_REGOFS_VIDCAP*/);
+ if (!glamo->base) {
+ dev_err(&pdev->dev, "failed to ioremap() memory region\n");
+ goto out_free;
+--
+1.5.6.3
+