Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2013 00:58:14 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r259374 - stable/10/sys/arm/ti
Message-ID:  <201312140058.rBE0wEEN010208@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Sat Dec 14 00:58:13 2013
New Revision: 259374
URL: http://svnweb.freebsd.org/changeset/base/259374

Log:
  MFC r258356:
  
    Bugfixes... the host capabilties from FDT data are stored in host.caps, not
    host.host_ocr, examine the correct field when setting up the hardware.  Also,
    the offset for the capabilties register should be 0x140, not 0x240.

Modified:
  stable/10/sys/arm/ti/ti_sdhci.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/arm/ti/ti_sdhci.c
==============================================================================
--- stable/10/sys/arm/ti/ti_sdhci.c	Sat Dec 14 00:57:05 2013	(r259373)
+++ stable/10/sys/arm/ti/ti_sdhci.c	Sat Dec 14 00:58:13 2013	(r259374)
@@ -108,7 +108,7 @@ static struct ofw_compat_data compat_dat
 #define	MMCHS_CON			0x02C
 #define	  MMCHS_CON_DW8			  (1 << 5)
 #define	  MMCHS_CON_DVAL_8_4MS		  (3 << 9)
-#define	MMCHS_SD_CAPA			0x240
+#define	MMCHS_SD_CAPA			0x140
 #define	  MMCHS_SD_CAPA_VS18		  (1 << 26)
 #define	  MMCHS_SD_CAPA_VS30		  (1 << 25)
 #define	  MMCHS_SD_CAPA_VS33		  (1 << 24)
@@ -432,9 +432,9 @@ ti_sdhci_attach(device_t dev)
 	 * that it can set the right values in the CAPA register, which can only
 	 * be done once and never reset.
 	 */
-	sc->slot.host.host_ocr |= MMC_OCR_LOW_VOLTAGE;
+	sc->slot.host.caps |= MMC_OCR_LOW_VOLTAGE;
 	if (sc->mmchs_device_id == 0 || OF_hasprop(node, "ti,dual-volt")) {
-		sc->slot.host.host_ocr |= MMC_OCR_290_300 | MMC_OCR_300_310;
+		sc->slot.host.caps |= MMC_OCR_290_300 | MMC_OCR_300_310;
 	}
 
 	/*



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