Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/beagle Allow tifb to be the console when boo...



details:   https://anonhg.NetBSD.org/src/rev/3bcf12088183
branches:  trunk
changeset: 797493:3bcf12088183
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sat Jul 19 18:16:50 2014 +0000

description:
Allow tifb to be the console when bootargs contains "console=fb".

diffstat:

 sys/arch/evbarm/beagle/beagle_machdep.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r cd25f539ebd4 -r 3bcf12088183 sys/arch/evbarm/beagle/beagle_machdep.c
--- a/sys/arch/evbarm/beagle/beagle_machdep.c   Sat Jul 19 17:21:24 2014 +0000
+++ b/sys/arch/evbarm/beagle/beagle_machdep.c   Sat Jul 19 18:16:50 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: beagle_machdep.c,v 1.57 2014/04/03 17:14:41 matt Exp $ */
+/*     $NetBSD: beagle_machdep.c,v 1.58 2014/07/19 18:16:50 bouyer Exp $ */
 
 /*
  * Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.57 2014/04/03 17:14:41 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.58 2014/07/19 18:16:50 bouyer Exp $");
 
 #include "opt_machdep.h"
 #include "opt_ddb.h"
@@ -1098,6 +1098,11 @@
                        prop_dictionary_set_bool(dict, "is_console", true);
                return;
        }
+       if (device_is_a(self, "tifb")) {
+               if (use_fb_console)
+                       prop_dictionary_set_bool(dict, "is_console", true);
+               return;
+       }
        if (device_is_a(self, "com")) {
                if (use_fb_console)
                        prop_dictionary_set_bool(dict, "is_console", false);



Home | Main Index | Thread Index | Old Index