Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2013 20:33:55 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r247009 - head/sys/arm/broadcom/bcm2835
Message-ID:  <201302192033.r1JKXt6R078206@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Tue Feb 19 20:33:55 2013
New Revision: 247009
URL: http://svnweb.freebsd.org/changeset/base/247009

Log:
  Roll back change of frequency for initialization sequence since it
  seems to cause more problems then previous behavior: it either breaks
  initilization sequence in other places or uncovers problems with
  high-speed mode timing for SDHCI 3.0

Modified:
  head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c

Modified: head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
==============================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c	Tue Feb 19 19:25:50 2013	(r247008)
+++ head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c	Tue Feb 19 20:33:55 2013	(r247009)
@@ -78,7 +78,12 @@ __FBSDID("$FreeBSD$");
 #define dprintf(fmt, args...)
 #endif
 
-static int bcm2835_sdhci_min_freq = 8000000;
+/* 
+ * Arasan HC seems to have problem with Data CRC on lower frequencies.
+ * Use this tunable to cap intilization sequence frequency at higher
+ * value. Default is standard 400KHz
+ */
+static int bcm2835_sdhci_min_freq = 400000;
 static int bcm2835_sdhci_hs = 1;
 
 TUNABLE_INT("hw.bcm2835.sdhci.min_freq", &bcm2835_sdhci_min_freq);
@@ -346,12 +351,6 @@ static uint32_t
 bcm_sdhci_min_freq(device_t dev, struct sdhci_slot *slot)
 {
 
-	/* 
-	 * Arasan HC seems to have problem with 
-	 * Data CRC on lower frequencies. Cap minimum
-	 * frequncy at 8MHz (or whatever set via tunable) 
-	 * to work around this issue
-	 */
 	return bcm2835_sdhci_min_freq;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302192033.r1JKXt6R078206>