aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo/glamo-core.c
diff options
context:
space:
mode:
authorwarmcat <andy@warmcat.com>2008-11-19 17:09:37 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:09:37 +0000
commitf79578cc52faf5e7a9690236138ea8104e4029ad (patch)
tree8d913b353544a878f9bd8eb12c7de9a99318b930 /drivers/mfd/glamo/glamo-core.c
parent3bd5363964121687a1c7131dcb984f83dce5a4b7 (diff)
debug-glamo-add-lcd-regs-to-dump.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'drivers/mfd/glamo/glamo-core.c')
-rw-r--r--drivers/mfd/glamo/glamo-core.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/mfd/glamo/glamo-core.c b/drivers/mfd/glamo/glamo-core.c
index 19ca363bb05..ab906901536 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;