summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiu Ying <b17645@freescale.com>2010-07-26 11:35:47 +0800
committerJustin Waters <justin.waters@timesys.com>2010-12-17 12:10:55 -0500
commitbfcf90901227eeb45ff9c82182c2daa6062dd205 (patch)
tree4da1b87a5b1499f4979611443f49621efd67f17c
parent2aeef3284436482c13dfd19a32e5458ae43d4b5e (diff)
ENGR00125487-1 TVE:Add bootup option to register TVE driver
This patch avoids TVE framebuffer cause black flash issue or potential black flash issue on one other framebuffer device which connects with the same di when the system boots up or video mode is changed. Signed-off-by: Liu Ying <b17645@freescale.com> (cherry picked from commit a5dd4501783ee62c22a16e1d089803e3b1c09944)
-rw-r--r--drivers/video/mxc/tve.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/video/mxc/tve.c b/drivers/video/mxc/tve.c
index 7ffb7aedb326..bc2f022bbaff 100644
--- a/drivers/video/mxc/tve.c
+++ b/drivers/video/mxc/tve.c
@@ -69,6 +69,7 @@ DEFINE_SPINLOCK(tve_lock);
static struct fb_info *tve_fbi;
static struct fb_modelist tve_modelist;
+static bool g_enable_tve;
struct tve_data {
struct platform_device *pdev;
@@ -677,6 +678,9 @@ static int tve_probe(struct platform_device *pdev)
struct tve_platform_data *plat_data = pdev->dev.platform_data;
u32 conf_reg;
+ if (g_enable_tve == false)
+ return 0;
+
INIT_LIST_HEAD(&tve_modelist.list);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
@@ -887,6 +891,14 @@ static struct platform_driver tve_driver = {
.resume = tve_resume,
};
+static int __init enable_tve_setup(char *options)
+{
+ g_enable_tve = true;
+
+ return 1;
+}
+__setup("tve", enable_tve_setup);
+
static int __init tve_init(void)
{
return platform_driver_register(&tve_driver);