Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Add explicit FDT_OPP for operating-points-v2 so ...



details:   https://anonhg.NetBSD.org/src/rev/842a9bd08d78
branches:  trunk
changeset: 460633:842a9bd08d78
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Oct 29 10:52:22 2019 +0000

description:
Add explicit FDT_OPP for operating-points-v2 so the link set won't be empty

diffstat:

 sys/dev/fdt/cpufreq_dt.c |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (42 lines):

diff -r 8c06d399fa5b -r 842a9bd08d78 sys/dev/fdt/cpufreq_dt.c
--- a/sys/dev/fdt/cpufreq_dt.c  Tue Oct 29 08:13:16 2019 +0000
+++ b/sys/dev/fdt/cpufreq_dt.c  Tue Oct 29 10:52:22 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpufreq_dt.c,v 1.12 2019/10/28 21:14:58 jmcneill Exp $ */
+/* $NetBSD: cpufreq_dt.c,v 1.13 2019/10/29 10:52:22 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpufreq_dt.c,v 1.12 2019/10/28 21:14:58 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpufreq_dt.c,v 1.13 2019/10/29 10:52:22 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -377,6 +377,14 @@
 }
 
 static bool
+cpufreq_dt_opp_v2_supported(const int opp_table, const int opp_node)
+{
+       return true;
+}
+
+FDT_OPP(opp_v2, "operating-points-v2", cpufreq_dt_opp_v2_supported);
+
+static bool
 cpufreq_dt_node_supported(const struct fdt_opp_info *opp_info, const int opp_table, const int opp_node)
 {
        if (!fdtbus_status_okay(opp_node))
@@ -387,7 +395,7 @@
        if (opp_info != NULL)
                return opp_info->opp_supported(opp_table, opp_node);
 
-       return true;
+       return false;
 }
 
 static int



Home | Main Index | Thread Index | Old Index