summaryrefslogtreecommitdiff
path: root/target/linux/s3c24xx/patches/0110-debug-glamo-add-lcd-regs-to-dump.patch.patch
blob: a77816b1829ece50cc968051e78204790a0b69a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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