Module Name: src
Committed By: bouyer
Date: Sat Jul 19 18:16:50 UTC 2014
Modified Files:
src/sys/arch/evbarm/beagle: beagle_machdep.c
Log Message:
Allow tifb to be the console when bootargs contains "console=fb".
To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/sys/arch/evbarm/beagle/beagle_machdep.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/evbarm/beagle/beagle_machdep.c
diff -u src/sys/arch/evbarm/beagle/beagle_machdep.c:1.57 src/sys/arch/evbarm/beagle/beagle_machdep.c:1.58
--- src/sys/arch/evbarm/beagle/beagle_machdep.c:1.57 Thu Apr 3 17:14:41 2014
+++ src/sys/arch/evbarm/beagle/beagle_machdep.c Sat Jul 19 18:16:50 2014
@@ -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 @@ beagle_device_register(device_t self, vo
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);