Module Name: src
Committed By: bouyer
Date: Mon Oct 5 14:42:19 UTC 2015
Modified Files:
src/sys/arch/arm/allwinner: awin_debe.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/arm/allwinner/awin_debe.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/allwinner/awin_debe.c
diff -u src/sys/arch/arm/allwinner/awin_debe.c:1.14 src/sys/arch/arm/allwinner/awin_debe.c:1.15
--- src/sys/arch/arm/allwinner/awin_debe.c:1.14 Sun Dec 21 18:36:05 2014
+++ src/sys/arch/arm/allwinner/awin_debe.c Mon Oct 5 14:42:19 2015
@@ -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 <[email protected]>
@@ -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 @@ awin_debe_ioctl(device_t self, u_long cm
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);