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 LDO5 to 3.3V and enable for emac
details: https://anonhg.NetBSD.org/src/rev/16499ba6f92e
branches: trunk
changeset: 335349:16499ba6f92e
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Jan 04 03:55:11 2015 +0000
description:
set LDO5 to 3.3V and enable for emac
diffstat:
sys/arch/evbarm/rockchip/rockchip_machdep.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diffs (46 lines):
diff -r d7f1b655df41 -r 16499ba6f92e sys/arch/evbarm/rockchip/rockchip_machdep.c
--- a/sys/arch/evbarm/rockchip/rockchip_machdep.c Sun Jan 04 03:53:34 2015 +0000
+++ b/sys/arch/evbarm/rockchip/rockchip_machdep.c Sun Jan 04 03:55:11 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rockchip_machdep.c,v 1.16 2015/01/03 16:15:25 jmcneill Exp $ */
+/* $NetBSD: rockchip_machdep.c,v 1.17 2015/01/04 03:55:11 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.16 2015/01/03 16:15:25 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rockchip_machdep.c,v 1.17 2015/01/04 03:55:11 jmcneill Exp $");
#include "opt_machdep.h"
#include "opt_ddb.h"
@@ -765,6 +765,20 @@
return;
}
+ if (device_is_a(self, "rkemac")) {
+#if NACT8846PM > 0
+ device_t pmic = device_find_by_driver_unit("act8846pm", 0);
+ if (pmic == NULL)
+ return;
+ struct act8846_ctrl *ctrl = act8846_lookup(pmic, "LDO5");
+ if (ctrl == NULL)
+ return;
+ act8846_set_voltage(ctrl, 3300, 3300);
+ act8846_enable(ctrl);
+#endif
+ return;
+ }
+
if (device_is_a(self, "ithdmi")) {
#if NACT8846PM > 0
device_t pmic = device_find_by_driver_unit("act8846pm", 0);
@@ -775,5 +789,6 @@
return;
act8846_enable(ctrl);
#endif
+ return;
}
}
Home |
Main Index |
Thread Index |
Old Index