summaryrefslogtreecommitdiff
path: root/sys/dev/sdmmc/sdmmcreg.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-05-05 11:01:09 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-05-05 11:01:09 +0000
commit6251683a85f7efb0ecd95910fb03ebd1c20b30ac (patch)
treed031f5ff4c52f4912000d71aab493ad77bcf7bdf /sys/dev/sdmmc/sdmmcreg.h
parent8f0bc08bb64f7d54716657b84582e0e73d6a1d71 (diff)
Add Dual Data Rate support for eMMC at 52MHz.
Diffstat (limited to 'sys/dev/sdmmc/sdmmcreg.h')
-rw-r--r--sys/dev/sdmmc/sdmmcreg.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/sdmmc/sdmmcreg.h b/sys/dev/sdmmc/sdmmcreg.h
index c2751488b9e..c984afc9f78 100644
--- a/sys/dev/sdmmc/sdmmcreg.h
+++ b/sys/dev/sdmmc/sdmmcreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdmmcreg.h,v 1.10 2016/05/04 09:30:06 kettenis Exp $ */
+/* $OpenBSD: sdmmcreg.h,v 1.11 2016/05/05 11:01:08 kettenis Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -104,10 +104,18 @@
#define EXT_CSD_CMD_SET_SECURE (1U << 1)
#define EXT_CSD_CMD_SET_CPSECURE (1U << 2)
+/* EXT_CSD_HS_TIMING */
+#define EXT_CSD_HS_TIMING_BC 0
+#define EXT_CSD_HS_TIMING_HS 1
+#define EXT_CSD_HS_TIMING_HS200 2
+#define EXT_CSD_HS_TIMING_HS400 3
+
/* EXT_CSD_BUS_WIDTH */
#define EXT_CSD_BUS_WIDTH_1 0
#define EXT_CSD_BUS_WIDTH_4 1
#define EXT_CSD_BUS_WIDTH_8 2
+#define EXT_CSD_BUS_WIDTH_4_DDR 5
+#define EXT_CSD_BUS_WIDTH_8_DDR 6
/* EXT_CSD_CARD_TYPE */
/* The only currently valid values for this field are 0x01, 0x03, 0x07,