Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi Revert previous



details:   https://anonhg.NetBSD.org/src/rev/6bb3d35d8f42
branches:  trunk
changeset: 448327:6bb3d35d8f42
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jan 30 10:55:44 2019 +0000

description:
Revert previous

diffstat:

 sys/arch/arm/sunxi/sunxi_drm.c |  11 +++++++++--
 sys/arch/arm/sunxi/sunxi_fb.c  |   7 ++-----
 2 files changed, 11 insertions(+), 7 deletions(-)

diffs (74 lines):

diff -r 4c14bee32d10 -r 6bb3d35d8f42 sys/arch/arm/sunxi/sunxi_drm.c
--- a/sys/arch/arm/sunxi/sunxi_drm.c    Wed Jan 30 10:54:52 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_drm.c    Wed Jan 30 10:55:44 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_drm.c,v 1.2 2019/01/30 02:44:19 jmcneill Exp $ */
+/* $NetBSD: sunxi_drm.c,v 1.3 2019/01/30 10:55:44 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2019 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_drm.c,v 1.2 2019/01/30 02:44:19 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_drm.c,v 1.3 2019/01/30 10:55:44 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -58,6 +58,11 @@
        NULL
 };
 
+static const char * fb_compatible[] = {
+       "allwinner,simple-framebuffer",
+       NULL
+};
+
 static int     sunxi_drm_match(device_t, cfdata_t, void *);
 static void    sunxi_drm_attach(device_t, device_t, void *);
 
@@ -135,6 +140,8 @@
        sc->sc_ddev->dmat = sc->sc_ddev->bus_dmat;
        sc->sc_ddev->dmat_subregion_p = false;
 
+       fdt_remove_bycompat(fb_compatible);
+
        config_defer(self, sunxi_drm_init);
 }
 
diff -r 4c14bee32d10 -r 6bb3d35d8f42 sys/arch/arm/sunxi/sunxi_fb.c
--- a/sys/arch/arm/sunxi/sunxi_fb.c     Wed Jan 30 10:54:52 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_fb.c     Wed Jan 30 10:55:44 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_fb.c,v 1.2 2019/01/30 02:44:19 jmcneill Exp $ */
+/* $NetBSD: sunxi_fb.c,v 1.3 2019/01/30 10:55:44 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015-2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_wsdisplay_compat.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_fb.c,v 1.2 2019/01/30 02:44:19 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_fb.c,v 1.3 2019/01/30 10:55:44 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -37,8 +37,6 @@
 
 #include <dev/fdt/fdtvar.h>
 
-#include <dev/wscons/wsdisplayvar.h>
-
 #include <drm/drmP.h>
 #include <drm/drmfb.h>
 
@@ -96,7 +94,6 @@
        prop_dictionary_t dict = device_properties(self);
        const bool is_console = true;
        prop_dictionary_set_bool(dict, "is_console", is_console);
-       wsdisplay_cndetach();
 #endif
 
        const struct drmfb_attach_args da = {



Home | Main Index | Thread Index | Old Index