Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/allwinner disable hdmi and tcon before setting ...



details:   https://anonhg.NetBSD.org/src/rev/8f54f4700df2
branches:  trunk
changeset: 803831:8f54f4700df2
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Nov 14 01:05:57 2014 +0000

description:
disable hdmi and tcon before setting up the display

diffstat:

 sys/arch/arm/allwinner/awin_hdmi.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r d6dfed5bdefe -r 8f54f4700df2 sys/arch/arm/allwinner/awin_hdmi.c
--- a/sys/arch/arm/allwinner/awin_hdmi.c        Fri Nov 14 00:31:54 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_hdmi.c        Fri Nov 14 01:05:57 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_hdmi.c,v 1.11 2014/11/14 00:31:54 jmcneill Exp $ */
+/* $NetBSD: awin_hdmi.c,v 1.12 2014/11/14 01:05:57 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -32,7 +32,7 @@
 #define AWIN_HDMI_PLL  3       /* PLL7 or PLL3 */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: awin_hdmi.c,v 1.11 2014/11/14 00:31:54 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awin_hdmi.c,v 1.12 2014/11/14 01:05:57 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -494,6 +494,10 @@
                mode = pick_mode_by_ref(640, 480, 60);
 
        if (mode != NULL) {
+               awin_hdmi_video_enable(sc, false);
+               awin_tcon_enable(false);
+               delay(20000);
+
                awin_debe_set_videomode(mode);
                awin_tcon_set_videomode(mode);
                awin_hdmi_set_videomode(sc, mode);



Home | Main Index | Thread Index | Old Index