summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2015-05-05 00:27:55 +0000
committerloos <loos@FreeBSD.org>2015-05-05 00:27:55 +0000
commit08c997829821400a9925653728b98122560f81f1 (patch)
treee8cbda2953b78a52874ddbc17e2e28e268b62640 /sys/arm
parentd1a453b983b0126d206e471c98f27f86bb720ba7 (diff)
downloadFreeBSD-src-08c997829821400a9925653728b98122560f81f1.zip
FreeBSD-src-08c997829821400a9925653728b98122560f81f1.tar.gz
Enable DMA for sdhci on RPi 2 (BCM2836).
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/broadcom/bcm2835/bcm2835_sdhci.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c b/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
index 1024a48..e950ec6 100644
--- a/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
+++ b/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
@@ -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);
OpenPOWER on IntegriCloud