diff options
author | imp <imp@FreeBSD.org> | 2008-09-28 22:27:29 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-09-28 22:27:29 +0000 |
commit | db3715c928cd7dc3811372e9f8c03d03f1c044ee (patch) | |
tree | 1a2ead238cf6f4801b3a0bd7aba430ad7e2826ea /sys/dev/mmc/mmc.c | |
parent | bc9f965b27df989d0a5cf2d26983a954932e04be (diff) | |
download | FreeBSD-src-db3715c928cd7dc3811372e9f8c03d03f1c044ee.zip FreeBSD-src-db3715c928cd7dc3811372e9f8c03d03f1c044ee.tar.gz |
The OCR register defines both acceptable voltage bits, as well as bits
for other things. Mask out the voltage only bits when returning the
Vdd mask for voltage computation.
Submitted by: mav@
Diffstat (limited to 'sys/dev/mmc/mmc.c')
-rw-r--r-- | sys/dev/mmc/mmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mmc/mmc.c b/sys/dev/mmc/mmc.c index d89af3b..c3f96c9 100644 --- a/sys/dev/mmc/mmc.c +++ b/sys/dev/mmc/mmc.c @@ -239,8 +239,8 @@ mmc_rescan_cards(struct mmc_softc *sc) static uint32_t mmc_select_vdd(struct mmc_softc *sc, uint32_t ocr) { - // XXX - return ocr; + + return ocr & MMC_OCR_VOLTAGE; } static int |