aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-05-06 05:40:33 -0700
committerThomas White <taw@bitwiz.org.uk>2010-05-22 19:01:26 +0200
commit6d0e40938fa71d6a3a1f3c9892251053bda3be6d (patch)
treea36d2cd881a8e0495f4d53df8c0565b4d7415b44 /drivers/mfd/glamo
parent752dfe99a5e2b361f740f2f986de93f5682b1a8d (diff)
Debug statements for testing
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
Diffstat (limited to 'drivers/mfd/glamo')
-rw-r--r--drivers/mfd/glamo/glamo-display.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mfd/glamo/glamo-display.c b/drivers/mfd/glamo/glamo-display.c
index 75ad73497f4..57292ff40c0 100644
--- a/drivers/mfd/glamo/glamo-display.c
+++ b/drivers/mfd/glamo/glamo-display.c
@@ -257,6 +257,8 @@ static int glamo_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
u32 addr;
u16 addr_low, addr_high;
+ printk(KERN_CRIT "Setting base!\n");
+
if (!crtc->fb) {
DRM_DEBUG("No FB bound\n");
return -EINVAL;
@@ -311,6 +313,8 @@ static int glamo_crtc_mode_set(struct drm_crtc *crtc,
msleep(500);
}
+ printk(KERN_CRIT "Setting mode!\n");
+
/* Rotate? */
if ( (mode->hdisplay == 640) && (mode->vdisplay == 480) ) {
rot = GLAMO_LCD_ROT_MODE_90;
@@ -935,15 +939,18 @@ void glamo_lcd_power(struct glamodrm_handle *gdrm, int mode)
struct glamo_crtc *gcrtc = to_glamo_crtc(crtc);
if ( mode ) {
+ printk(KERN_CRIT "Power on sequence\n");
glamo_engine_enable(gdrm->glamo_core, GLAMO_ENGINE_LCD);
gcrtc->pixel_clock_on = 1;
jbt6k74_setpower(JBT_POWER_MODE_NORMAL);
if ( gcrtc->current_mode_set ) {
+ printk(KERN_CRIT "Setting previous mode\n");
glamo_crtc_mode_set(crtc, &gcrtc->current_mode,
&gcrtc->current_mode, 0, 0,
gcrtc->current_fb);
}
} else {
+ printk(KERN_CRIT "Power off sequence\n");
jbt6k74_setpower(JBT_POWER_MODE_OFF);
glamo_engine_suspend(gdrm->glamo_core, GLAMO_ENGINE_LCD);
gcrtc->pixel_clock_on = 0;