MLK-11362 video: mxsfb: add busfreq support for this module
authorFancy Fang <chen.fang@freescale.com>
Fri, 14 Aug 2015 06:28:31 +0000 (14:28 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:28 +0000 (14:47 -0500)
Add busfreq support for this framebuffer driver.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
drivers/video/fbdev/mxsfb.c

index 6b0df19..9edec54 100644 (file)
@@ -39,6 +39,7 @@
  * the required value in the imx_fb_videomode structure.
  */
 
+#include <linux/busfreq-imx.h>
 #include <linux/console.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
@@ -1540,6 +1541,7 @@ static void mxsfb_shutdown(struct platform_device *pdev)
 #ifdef CONFIG_PM_RUNTIME
 static int mxsfb_runtime_suspend(struct device *dev)
 {
+       release_bus_freq(BUS_FREQ_HIGH);
        dev_dbg(dev, "mxsfb busfreq high release.\n");
 
        return 0;
@@ -1547,6 +1549,7 @@ static int mxsfb_runtime_suspend(struct device *dev)
 
 static int mxsfb_runtime_resume(struct device *dev)
 {
+       request_bus_freq(BUS_FREQ_HIGH);
        dev_dbg(dev, "mxsfb busfreq high request.\n");
 
        return 0;