Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/nvidia set VDD_CPU to 1.4V



details:   https://anonhg.NetBSD.org/src/rev/ad83bf6cdf38
branches:  trunk
changeset: 808739:ad83bf6cdf38
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun May 31 14:42:56 2015 +0000

description:
set VDD_CPU to 1.4V

diffstat:

 sys/arch/arm/nvidia/soc_tegra124.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 8952bb039c7b -r ad83bf6cdf38 sys/arch/arm/nvidia/soc_tegra124.c
--- a/sys/arch/arm/nvidia/soc_tegra124.c        Sun May 31 14:41:59 2015 +0000
+++ b/sys/arch/arm/nvidia/soc_tegra124.c        Sun May 31 14:42:56 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: soc_tegra124.c,v 1.4 2015/05/17 06:15:50 matt Exp $ */
+/* $NetBSD: soc_tegra124.c,v 1.5 2015/05/31 14:42:56 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: soc_tegra124.c,v 1.4 2015/05/17 06:15:50 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: soc_tegra124.c,v 1.5 2015/05/31 14:42:56 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -77,6 +77,11 @@
 void
 tegra124_cpuinit(void)
 {
+       /* Set VDD_CPU voltage to 1.4V */
+       tegra_car_periph_i2c_enable(4, 204000000);
+       tegra_i2c_dvc_write(0x40, 0x4f00, 2);
+       delay(10000);
+
        tegra_cpufreq_register(&tegra124_cpufreq_func);
 }
 



Home | Main Index | Thread Index | Old Index