Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 May 2015 00:27:56 +0000 (UTC)
From:      Luiz Otavio O Souza <loos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r282441 - head/sys/arm/broadcom/bcm2835
Message-ID:  <201505050027.t450RuR2039993@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: loos
Date: Tue May  5 00:27:55 2015
New Revision: 282441
URL: https://svnweb.freebsd.org/changeset/base/282441

Log:
  Enable DMA for sdhci on RPi 2 (BCM2836).

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 May  5 00:19:04 2015	(r282440)
+++ head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c	Tue May  5 00:27:55 2015	(r282441)
@@ -68,15 +68,8 @@ __FBSDID("$FreeBSD$");
 #define dprintf(fmt, args...)
 #endif
 
-/* DMA doesn't yet work with the bcm3826 */
-#ifdef SOC_BCM2836
-#define	PIO_MODE	1
-#else
-#define	PIO_MODE	0
-#endif
-
 static int bcm2835_sdhci_hs = 1;
-static int bcm2835_sdhci_pio_mode = PIO_MODE;
+static int bcm2835_sdhci_pio_mode = 0;
 
 TUNABLE_INT("hw.bcm2835.sdhci.hs", &bcm2835_sdhci_hs);
 TUNABLE_INT("hw.bcm2835.sdhci.pio_mode", &bcm2835_sdhci_pio_mode);



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