apply some #if defined(TI_AM335X) so this builds again.

This commit is contained in:
mrg 2016-10-19 08:18:38 +00:00
parent 850dab4f61
commit 44d7d6ab00
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: beagle_machdep.c,v 1.66 2016/10/18 15:10:35 kiyohara Exp $ */
/* $NetBSD: beagle_machdep.c,v 1.67 2016/10/19 08:18:38 mrg 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.66 2016/10/18 15:10:35 kiyohara Exp $");
__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.67 2016/10/19 08:18:38 mrg Exp $");
#include "opt_machdep.h"
#include "opt_ddb.h"
@ -1104,6 +1104,7 @@ beagle_device_register(device_t self, void *aux)
prop_dictionary_set_bool(dict, "is_console", true);
return;
}
#if defined(TI_AM335X)
if (device_is_a(self, "tifb")) {
static const struct tifb_panel_info default_panel_info = {
.panel_tft = 1,
@ -1142,6 +1143,7 @@ beagle_device_register(device_t self, void *aux)
prop_dictionary_set_bool(dict, "is_console", true);
return;
}
#endif
if (device_is_a(self, "com")) {
if (use_fb_console)
prop_dictionary_set_bool(dict, "is_console", false);