summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-05-04 14:05:33 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-05-04 14:05:33 +0000
commitc9be0bb85a2a4d276ca4452f9cc36c227659d3ae (patch)
treea2bc74e4c2a0fdc283602c0c9508c13db8a6a7e3 /sys/dev
parent250512c09490dc1662578fcb4531bbc8142d19a5 (diff)
Print SD host controller version.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sdmmc/sdhc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/sdmmc/sdhc.c b/sys/dev/sdmmc/sdhc.c
index 1973ff0e90a..be29a5f8efa 100644
--- a/sys/dev/sdmmc/sdhc.c
+++ b/sys/dev/sdmmc/sdhc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdhc.c,v 1.49 2016/05/01 22:06:32 kettenis Exp $ */
+/* $OpenBSD: sdhc.c,v 1.50 2016/05/04 14:05:32 kettenis Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -209,7 +209,8 @@ sdhc_host_found(struct sdhc_softc *sc, bus_space_tag_t iot,
goto err;
}
- printf("%s: %d MHz base clock\n", DEVNAME(sc), hp->clkbase / 1000);
+ printf("%s: SDHC %d.0, %d MHz base clock\n", DEVNAME(sc),
+ SDHC_SPEC_VERSION(hp->version) + 1, hp->clkbase / 1000);
/*
* XXX Set the data timeout counter value according to