Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/fdt Provide an FDTBASE option which allows kernels t...
details: https://anonhg.NetBSD.org/src/rev/ae0b4ee0775f
branches: trunk
changeset: 433821:ae0b4ee0775f
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Oct 06 16:28:21 2018 +0000
description:
Provide an FDTBASE option which allows kernels to access FDT parsing
functions without requiring full blown FDTisation.
This will be used by ODROID-C1 in move to generic start code.
diffstat:
sys/dev/fdt/fdt_subr.c | 8 ++++++--
sys/dev/fdt/files.fdt | 9 +++++----
2 files changed, 11 insertions(+), 6 deletions(-)
diffs (62 lines):
diff -r 261c0a623052 -r ae0b4ee0775f sys/dev/fdt/fdt_subr.c
--- a/sys/dev/fdt/fdt_subr.c Sat Oct 06 16:04:21 2018 +0000
+++ b/sys/dev/fdt/fdt_subr.c Sat Oct 06 16:28:21 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_subr.c,v 1.23 2018/07/17 00:42:06 christos Exp $ */
+/* $NetBSD: fdt_subr.c,v 1.24 2018/10/06 16:28:21 skrll Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,9 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_subr.c,v 1.23 2018/07/17 00:42:06 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_subr.c,v 1.24 2018/10/06 16:28:21 skrll Exp $");
+
+#include "opt_fdt.h"
#include <sys/param.h>
#include <sys/bus.h>
@@ -298,6 +300,7 @@
return 0;
}
+#if defined(FDT)
const struct fdt_console *
fdtbus_get_console(void)
{
@@ -323,6 +326,7 @@
return booted_console == NULL ? NULL : booted_console->ops;
}
+#endif
const char *
fdtbus_get_stdout_path(void)
diff -r 261c0a623052 -r ae0b4ee0775f sys/dev/fdt/files.fdt
--- a/sys/dev/fdt/files.fdt Sat Oct 06 16:04:21 2018 +0000
+++ b/sys/dev/fdt/files.fdt Sat Oct 06 16:28:21 2018 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: files.fdt,v 1.38 2018/09/26 19:06:33 jakllsch Exp $
+# $NetBSD: files.fdt,v 1.39 2018/10/06 16:28:21 skrll Exp $
include "external/bsd/libfdt/conf/files.libfdt"
-defflag opt_fdt.h FDT: libfdt, ofw_subr
+defflag opt_fdt.h FDTBASE : libfdt, ofw_subr
+defflag opt_fdt.h FDT: FDTBASE
define fdt { [pass = 10] } : clk, pwm
@@ -44,8 +45,8 @@
attach panel at fdt with fdt_panel
file dev/fdt/panel_fdt.c fdt_panel
-file dev/fdt/fdt_openfirm.c fdt
-file dev/fdt/fdt_subr.c fdt
+file dev/fdt/fdt_openfirm.c fdtbase
+file dev/fdt/fdt_subr.c fdtbase
file dev/fdt/fdt_clock.c fdt
file dev/fdt/fdt_dai.c fdt
file dev/fdt/fdt_dma.c fdt
Home |
Main Index |
Thread Index |
Old Index