Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/beagle Conditionalize more stuff on TI_AM335...



details:   https://anonhg.NetBSD.org/src/rev/e0ef880b60d2
branches:  trunk
changeset: 330791:e0ef880b60d2
user:      riz <riz%NetBSD.org@localhost>
date:      Mon Jul 21 22:17:44 2014 +0000

description:
Conditionalize more stuff on TI_AM335X so BEAGLEBONEXM kernel
builds succeed.

diffstat:

 sys/arch/evbarm/beagle/beagle_machdep.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 11d99b0d4152 -r e0ef880b60d2 sys/arch/evbarm/beagle/beagle_machdep.c
--- a/sys/arch/evbarm/beagle/beagle_machdep.c   Mon Jul 21 20:03:31 2014 +0000
+++ b/sys/arch/evbarm/beagle/beagle_machdep.c   Mon Jul 21 22:17:44 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: beagle_machdep.c,v 1.59 2014/07/20 23:08:43 bouyer Exp $ */
+/*     $NetBSD: beagle_machdep.c,v 1.60 2014/07/21 22:17:44 riz 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.59 2014/07/20 23:08:43 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.60 2014/07/21 22:17:44 riz Exp $");
 
 #include "opt_machdep.h"
 #include "opt_ddb.h"
@@ -1111,11 +1111,14 @@
                if (use_fb_console)
                        prop_dictionary_set_bool(dict, "is_console", false);
        }
+#if defined(TI_AM335X)
        if (device_is_a(self, "tps65217pmic")) {
                pmic_dev = self;
        }
+#endif
 }
 
+#if defined(TI_AM335X)
 int
 set_mpu_volt(int mvolt)
 {
@@ -1125,3 +1128,4 @@
        /* MPU voltage is on vdcd2 */
        return tps65217pmic_set_volt(pmic_dev, "DCDC2", mvolt);
 }
+#endif



Home | Main Index | Thread Index | Old Index