Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sdmmc According to SD Host Controller Simplified Spe...
details: https://anonhg.NetBSD.org/src/rev/27f8c60de703
branches: trunk
changeset: 750720:27f8c60de703
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Tue Jan 12 08:41:16 2010 +0000
description:
According to SD Host Controller Simplified Specification Version 2.00, 2.2.10.
Host Control Register (Offset 028h), the "Data Transfer Width" bit is in Host
Control Register (Offset 028h), not Power Control Register (Offset 029h).
diffstat:
sys/dev/sdmmc/sdhc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 6b0a8cafa1fc -r 27f8c60de703 sys/dev/sdmmc/sdhc.c
--- a/sys/dev/sdmmc/sdhc.c Tue Jan 12 06:50:04 2010 +0000
+++ b/sys/dev/sdmmc/sdhc.c Tue Jan 12 08:41:16 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdhc.c,v 1.4 2010/01/08 19:53:10 dyoung Exp $ */
+/* $NetBSD: sdhc.c,v 1.5 2010/01/12 08:41:16 uebayasi 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.4 2010/01/08 19:53:10 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.5 2010/01/12 08:41:16 uebayasi Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -635,11 +635,11 @@
}
mutex_enter(&hp->host_mtx);
- reg = HREAD1(hp, SDHC_POWER_CTL);
+ reg = HREAD1(hp, SDHC_HOST_CTL);
reg &= ~SDHC_4BIT_MODE;
if (width == 4)
reg |= SDHC_4BIT_MODE;
- HWRITE1(hp, SDHC_POWER_CTL, reg);
+ HWRITE1(hp, SDHC_HOST_CTL, reg);
mutex_exit(&hp->host_mtx);
return 0;
Home |
Main Index |
Thread Index |
Old Index