Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/rockchip set DCDC4 to 3.3V for mmc0
details: https://anonhg.NetBSD.org/src/rev/d441951e64e3
branches: trunk
changeset: 335331:d441951e64e3
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Jan 03 13:28:00 2015 +0000
description:
set DCDC4 to 3.3V for mmc0
diffstat:
sys/arch/evbarm/rockchip/rockchip_machdep.c | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r 02b725ae8f29 -r d441951e64e3 sys/arch/evbarm/rockchip/rockchip_machdep.c
--- a/sys/arch/evbarm/rockchip/rockchip_machdep.c Sat Jan 03 13:27:11 2015 +0000
+++ b/sys/arch/evbarm/rockchip/rockchip_machdep.c Sat Jan 03 13:28:00 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rockchip_machdep.c,v 1.14 2015/01/02 22:00:02 jmcneill Exp $ */
+/* $NetBSD: rockchip_machdep.c,v 1.15 2015/01/03 13:28:00 jmcneill Exp $ */
/*
* Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rockchip_machdep.c,v 1.14 2015/01/02 22:00:02 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rockchip_machdep.c,v 1.15 2015/01/03 13:28:00 jmcneill Exp $");
#include "opt_machdep.h"
#include "opt_ddb.h"
@@ -752,6 +752,19 @@
}
#endif
+ if (device_is_a(self, "dwcmmc") && device_unit(self) == 0) {
+#if NACT8846PM > 0
+ device_t pmic = device_find_by_driver_unit("act8846pm", 0);
+ if (pmic == NULL)
+ return;
+ struct act8846_ctrl *ctrl = act8846_lookup(pmic, "DCDC4");
+ if (ctrl == NULL)
+ return;
+ int error = act8846_set_voltage(ctrl, 3300, 3300);
+#endif
+ return;
+ }
+
if (device_is_a(self, "ithdmi")) {
#if NACT8846PM > 0
device_t pmic = device_find_by_driver_unit("act8846pm", 0);
Home |
Main Index |
Thread Index |
Old Index