Module Name: src
Committed By: riastradh
Date: Mon Aug 27 07:57:22 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/include/linux: clk.h
Log Message:
Stub out clk API if no FBT.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/external/bsd/drm2/include/linux/clk.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/linux/clk.h
diff -u src/sys/external/bsd/drm2/include/linux/clk.h:1.2 src/sys/external/bsd/drm2/include/linux/clk.h:1.3
--- src/sys/external/bsd/drm2/include/linux/clk.h:1.2 Mon Aug 27 07:33:27 2018
+++ src/sys/external/bsd/drm2/include/linux/clk.h Mon Aug 27 07:57:22 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: clk.h,v 1.2 2018/08/27 07:33:27 riastradh Exp $ */
+/* $NetBSD: clk.h,v 1.3 2018/08/27 07:57:22 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -32,6 +32,26 @@
#ifndef _LINUX_CLK_H_
#define _LINUX_CLK_H_
+/* XXX Use FDT as a proxy for clk API until we have a clk flag. */
+
+#ifdef _KERNEL_OPT
+#include "opt_fdt.h"
+#endif
+
+#ifdef FDT
+
#include <dev/clk/clk.h>
+#else
+
+struct clk;
+
+static inline unsigned
+clk_get_rate(struct clk *clk)
+{
+ panic("unreachable");
+}
+
+#endif
+
#endif /* _LINUX_CLK_H_ */