summaryrefslogtreecommitdiffstats
path: root/drivers/video/stm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/stm.c')
-rw-r--r--drivers/video/stm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/stm.c b/drivers/video/stm.c
index fc90b6a912..8d6361e936 100644
--- a/drivers/video/stm.c
+++ b/drivers/video/stm.c
@@ -255,6 +255,9 @@ static void stmfb_enable_controller(struct fb_info *fb_info)
writel(CTRL1_FIFO_CLEAR, fbi->base + HW_LCDIF_CTRL1 + BIT_CLR);
/* start the engine right now */
writel(CTRL_RUN, fbi->base + HW_LCDIF_CTRL + BIT_SET);
+
+ if (fbi->pdata->enable)
+ fbi->pdata->enable(1);
}
static void stmfb_disable_controller(struct fb_info *fb_info)
@@ -263,6 +266,9 @@ static void stmfb_disable_controller(struct fb_info *fb_info)
unsigned loop;
uint32_t reg;
+ if (fbi->pdata->enable)
+ fbi->pdata->enable(0);
+
/*
* Even if we disable the controller here, it will still continue
* until its FIFOs are running out of data