svn commit: r282441 - head/sys/arm/broadcom/bcm2835

Luiz Otavio O Souza loos at FreeBSD.org
Tue May 5 00:27:56 UTC 2015


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);


More information about the svn-src-head mailing list