Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sdmmc Add some more FreeScale ESDHC defintions.
details: https://anonhg.NetBSD.org/src/rev/7fe010772e45
branches: trunk
changeset: 773428:7fe010772e45
user: matt <matt%NetBSD.org@localhost>
date: Wed Feb 01 22:35:30 2012 +0000
description:
Add some more FreeScale ESDHC defintions.
diffstat:
sys/dev/sdmmc/sdhcreg.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r 35773887f515 -r 7fe010772e45 sys/dev/sdmmc/sdhcreg.h
--- a/sys/dev/sdmmc/sdhcreg.h Wed Feb 01 22:34:42 2012 +0000
+++ b/sys/dev/sdmmc/sdhcreg.h Wed Feb 01 22:35:30 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdhcreg.h,v 1.3 2011/06/29 06:21:16 matt Exp $ */
+/* $NetBSD: sdhcreg.h,v 1.4 2012/02/01 22:35:30 matt Exp $ */
/* $OpenBSD: sdhcreg.h,v 1.4 2006/07/30 17:20:40 fgsch Exp $ */
/*
@@ -73,6 +73,7 @@
#define SDHC_CMD_INHIBIT_MASK 0x0003
#define SDHC_HOST_CTL 0x28
#define SDHC_HIGH_SPEED (1<<2)
+#define SDHC_8BIT_MODE (1<<2) /* ESDHC */
#define SDHC_4BIT_MODE (1<<1)
#define SDHC_LED_ON (1<<0)
#define SDHC_POWER_CTL 0x29
@@ -95,6 +96,7 @@
#define SDHC_TIMEOUT_CTL 0x2e
#define SDHC_TIMEOUT_MAX 0x0e
#define SDHC_SOFTWARE_RESET 0x2f
+#define SDHC_INIT_ACTIVE (1<<3)
#define SDHC_RESET_MASK 0x5
#define SDHC_RESET_DAT (1<<2)
#define SDHC_RESET_CMD (1<<1)
@@ -159,6 +161,8 @@
#define SDHC_SPEC_VERS_MASK 0xff
#define SDHC_VENDOR_VERS_SHIFT 8
#define SDHC_VENDOR_VERS_MASK 0xff
+#define SDHC_DMA_CTL 0x40c /* eSDHC */
+#define SDHC_DMA_SNOOP 0x40
/* SDHC_CAPABILITIES decoding */
#define SDHC_BASE_FREQ_KHZ(cap) \
Home |
Main Index |
Thread Index |
Old Index