aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-07-01 19:16:01 +0100
committerThomas White <taw@bitwiz.org.uk>2009-07-01 19:16:01 +0100
commit545aaa08cf1b77bca91137f17a625370c258ec0d (patch)
treedf1e9a572100f2208f9a81b80868e9846b78a0c9 /drivers
parent89815f11b50befdcff19dc8cb862549ea057715e (diff)
Debug
This adds some register debugging watchpoints Signed-off-by: Thomas White <taw@bitwiz.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/glamo/glamo-core.c1
-rw-r--r--drivers/mfd/glamo/glamo-display.c2
-rw-r--r--drivers/mfd/glamo/glamo-fb.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mfd/glamo/glamo-core.c b/drivers/mfd/glamo/glamo-core.c
index d8ebf400180..9e9292b70e4 100644
--- a/drivers/mfd/glamo/glamo-core.c
+++ b/drivers/mfd/glamo/glamo-core.c
@@ -107,6 +107,7 @@ static struct glamo_core *glamo_handle;
static inline void __reg_write(struct glamo_core *glamo,
u_int16_t reg, u_int16_t val)
{
+ printk(KERN_CRIT "Core %i -> %x\n", val, reg);
writew(val, glamo->base + reg);
}
diff --git a/drivers/mfd/glamo/glamo-display.c b/drivers/mfd/glamo/glamo-display.c
index 339c383805c..1fd2b7de97c 100644
--- a/drivers/mfd/glamo/glamo-display.c
+++ b/drivers/mfd/glamo/glamo-display.c
@@ -104,7 +104,7 @@ static void reg_write_lcd(struct glamodrm_handle *gdrm,
for (i = 0; i != 2; i++)
nop();
-
+ printk(KERN_CRIT "LCD %i -> %x\n", val, reg);
iowrite16(val, gdrm->lcd_base + reg);
}
diff --git a/drivers/mfd/glamo/glamo-fb.c b/drivers/mfd/glamo/glamo-fb.c
index 95d40d25cf7..fcdc373ca77 100644
--- a/drivers/mfd/glamo/glamo-fb.c
+++ b/drivers/mfd/glamo/glamo-fb.c
@@ -103,7 +103,7 @@ static void reg_write(struct glamofb_handle *glamo,
for (i = 0; i != 2; i++)
nop();
-
+ printk(KERN_CRIT "LCD %i -> %x\n", val, reg);
writew(val, glamo->base + reg);
}