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 since we dont support SDR104 yet, dont t...



details:   https://anonhg.NetBSD.org/src/rev/f4f7d15181c2
branches:  trunk
changeset: 337928:f4f7d15181c2
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun May 03 22:40:02 2015 +0000

description:
since we dont support SDR104 yet, dont try to optimize it; instead, optimize for HS mode, which brings us up from 34 MHz to 45.333 MHz

diffstat:

 sys/arch/arm/nvidia/tegra_sdhc.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (36 lines):

diff -r 0a65b76f9620 -r f4f7d15181c2 sys/arch/arm/nvidia/tegra_sdhc.c
--- a/sys/arch/arm/nvidia/tegra_sdhc.c  Sun May 03 22:37:27 2015 +0000
+++ b/sys/arch/arm/nvidia/tegra_sdhc.c  Sun May 03 22:40:02 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_sdhc.c,v 1.4 2015/05/03 11:46:44 jmcneill Exp $ */
+/* $NetBSD: tegra_sdhc.c,v 1.5 2015/05/03 22:40:02 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "locators.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_sdhc.c,v 1.4 2015/05/03 11:46:44 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_sdhc.c,v 1.5 2015/05/03 22:40:02 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -123,12 +123,12 @@
        if (sc->sc_pin_wp)
                sc->sc.sc_vendor_write_protect = tegra_sdhc_write_protect;
 
-       /*
-        * The controller supports SDR104 speeds (208 MHz). With PLLP (408 Mhz)
-        * as input and div=2 we can get a reasonable 204 MHz for the SDHC.
-        */
-       const u_int div = howmany(tegra_car_pllp0_rate() / 1000, 208000);
+#if notyet
+       tegra_car_periph_sdmmc_set_div(sc->sc_port, 1);
+#else
+       const u_int div = howmany(tegra_car_pllp0_rate() / 1000, 50000);
        tegra_car_periph_sdmmc_set_div(sc->sc_port, div);
+#endif
        sc->sc.sc_clkbase = tegra_car_periph_sdmmc_rate(sc->sc_port) / 1000;
 
        aprint_naive("\n");



Home | Main Index | Thread Index | Old Index