diff options
author | gonzo <gonzo@FreeBSD.org> | 2013-02-19 20:33:55 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2013-02-19 20:33:55 +0000 |
commit | f8a5d15b830b29ef6678a78889a2c1630f2eb094 (patch) | |
tree | d162528dc019f63a731396eea13c5628291faddd /sys/arm | |
parent | ed091f220714e658fdfe5a1a5cb757becd74e20a (diff) | |
download | FreeBSD-src-f8a5d15b830b29ef6678a78889a2c1630f2eb094.zip FreeBSD-src-f8a5d15b830b29ef6678a78889a2c1630f2eb094.tar.gz |
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
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/broadcom/bcm2835/bcm2835_sdhci.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c b/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c index 1b09986..f96fd4c 100644 --- a/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c +++ b/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c @@ -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; } |