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 When disabling video ouput also turn ...



details:   https://anonhg.NetBSD.org/src/rev/89d6dae921cd
branches:  trunk
changeset: 340843:89d6dae921cd
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon Oct 05 14:42:19 2015 +0000

description:
When disabling video ouput also turn off the tcon. This will cause the
HDMI output to stop too, and the monitor will go to sleep.

diffstat:

 sys/arch/arm/allwinner/awin_debe.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r e92d5508ac6b -r 89d6dae921cd sys/arch/arm/allwinner/awin_debe.c
--- a/sys/arch/arm/allwinner/awin_debe.c        Mon Oct 05 11:14:32 2015 +0000
+++ b/sys/arch/arm/allwinner/awin_debe.c        Mon Oct 05 14:42:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_debe.c,v 1.14 2014/12/21 18:36:05 jmcneill Exp $ */
+/* $NetBSD: awin_debe.c,v 1.15 2015/10/05 14:42:19 bouyer Exp $ */
 
 /*-
  * Copyright (c) 2014 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -37,7 +37,7 @@
 #define AWIN_DEBE_CURMAX       64
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: awin_debe.c,v 1.14 2014/12/21 18:36:05 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awin_debe.c,v 1.15 2015/10/05 14:42:19 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -582,6 +582,7 @@
                        val &= ~AWIN_DEBE_MODCTL_HWC_EN;
                }
                DEBE_WRITE(sc, AWIN_DEBE_MODCTL_REG, val);
+               awin_tcon_enable(enable);
                return 0;
        case WSDISPLAYIO_GVIDEO:
                val = DEBE_READ(sc, AWIN_DEBE_MODCTL_REG);



Home | Main Index | Thread Index | Old Index