Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sdmmc return MMC_OCR_HCS bit from host_ocr if the co...
details: https://anonhg.NetBSD.org/src/rev/95c284d84460
branches: trunk
changeset: 809782:95c284d84460
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Aug 02 00:24:24 2015 +0000
description:
return MMC_OCR_HCS bit from host_ocr if the controller supports high-speed mode
diffstat:
sys/dev/sdmmc/sdhc.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 50664473ae02 -r 95c284d84460 sys/dev/sdmmc/sdhc.c
--- a/sys/dev/sdmmc/sdhc.c Sat Aug 01 21:30:09 2015 +0000
+++ b/sys/dev/sdmmc/sdhc.c Sun Aug 02 00:24:24 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdhc.c,v 1.65 2015/07/31 15:00:08 jmcneill Exp $ */
+/* $NetBSD: sdhc.c,v 1.66 2015/08/02 00:24:24 jmcneill Exp $ */
/* $OpenBSD: sdhc.c,v 1.25 2009/01/13 19:44:20 grange Exp $ */
/*
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.65 2015/07/31 15:00:08 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.66 2015/08/02 00:24:24 jmcneill Exp $");
#ifdef _KERNEL_OPT
#include "opt_sdmmc.h"
@@ -400,6 +400,10 @@
* Determine SD bus voltage levels supported by the controller.
*/
aprint_normal(",");
+ if (ISSET(caps, SDHC_HIGH_SPEED_SUPP)) {
+ SET(hp->ocr, MMC_OCR_HCS);
+ aprint_normal(" High-Speed");
+ }
if (ISSET(caps, SDHC_VOLTAGE_SUPP_1_8V) &&
(hp->specver < SDHC_SPEC_VERS_300 ||
ISSET(caps, SDHC_EMBEDDED_SLOT))) {
Home |
Main Index |
Thread Index |
Old Index