Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Add 'needs-flag' to tps65217pmic.
details: https://anonhg.NetBSD.org/src/rev/5f4535479784
branches: trunk
changeset: 346243:5f4535479784
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Sun Jul 03 11:40:58 2016 +0000
description:
Add 'needs-flag' to tps65217pmic.
diffstat:
sys/arch/evbarm/beagle/beagle_machdep.c | 10 ++++++++--
sys/dev/i2c/files.i2c | 4 ++--
2 files changed, 10 insertions(+), 4 deletions(-)
diffs (60 lines):
diff -r 568005741829 -r 5f4535479784 sys/arch/evbarm/beagle/beagle_machdep.c
--- a/sys/arch/evbarm/beagle/beagle_machdep.c Sun Jul 03 11:25:27 2016 +0000
+++ b/sys/arch/evbarm/beagle/beagle_machdep.c Sun Jul 03 11:40:58 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: beagle_machdep.c,v 1.63 2016/07/03 11:25:27 kiyohara Exp $ */
+/* $NetBSD: beagle_machdep.c,v 1.64 2016/07/03 11:40:58 kiyohara 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.63 2016/07/03 11:25:27 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.64 2016/07/03 11:40:58 kiyohara Exp $");
#include "opt_machdep.h"
#include "opt_ddb.h"
@@ -141,6 +141,7 @@
#include "sdhc.h"
#include "ukbd.h"
#include "arml2cc.h"
+#include "tps65217pmic.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -1125,10 +1126,15 @@
int
set_mpu_volt(int mvolt)
{
+
+#if NTPS65217PMIC > 0
if (pmic_dev == NULL)
return ENODEV;
/* MPU voltage is on vdcd2 */
return tps65217pmic_set_volt(pmic_dev, "DCDC2", mvolt);
+#else
+ return -1;
+#endif
}
#endif
diff -r 568005741829 -r 5f4535479784 sys/dev/i2c/files.i2c
--- a/sys/dev/i2c/files.i2c Sun Jul 03 11:25:27 2016 +0000
+++ b/sys/dev/i2c/files.i2c Sun Jul 03 11:40:58 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.i2c,v 1.71 2016/06/20 04:18:12 pgoyette Exp $
+# $NetBSD: files.i2c,v 1.72 2016/07/03 11:40:58 kiyohara Exp $
obsolete defflag opt_i2cbus.h I2C_SCAN
define i2cbus { }
@@ -204,7 +204,7 @@
# TI TPS65217
device tps65217pmic: sysmon_envsys
attach tps65217pmic at iic
-file dev/i2c/tps65217pmic.c tps65217pmic
+file dev/i2c/tps65217pmic.c tps65217pmic needs-flag
# Microchip MCP980x
device mcp980x: sysmon_envsys
Home |
Main Index |
Thread Index |
Old Index