aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2007-02-09 16:49:31 -0500
committerPierre Ossman <drzeus@drzeus.cx>2007-05-01 07:04:16 -0400
commitf74d132cec60b686bce1f284822c1a496700bd3c (patch)
tree1b208c576d979293f02688cc65da6cdf43bc010f /include/linux/mmc
parent9c2c0af950345e63ef86f28eca44333a1e1e709b (diff)
mmc: Move OCR bit defines
All host drivers were #include:ing mmc/protocol.h just to get access to the OCR bit defines. Move these to host.h instead. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/host.h25
-rw-r--r--include/linux/mmc/protocol.h27
2 files changed, 28 insertions, 24 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index bfcef8a1ad8..c89f4109130 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -88,6 +88,31 @@ struct mmc_host {
88 unsigned int f_max; 88 unsigned int f_max;
89 u32 ocr_avail; 89 u32 ocr_avail;
90 90
91#define MMC_VDD_145_150 0x00000001 /* VDD voltage 1.45 - 1.50 */
92#define MMC_VDD_150_155 0x00000002 /* VDD voltage 1.50 - 1.55 */
93#define MMC_VDD_155_160 0x00000004 /* VDD voltage 1.55 - 1.60 */
94#define MMC_VDD_160_165 0x00000008 /* VDD voltage 1.60 - 1.65 */
95#define MMC_VDD_165_170 0x00000010 /* VDD voltage 1.65 - 1.70 */
96#define MMC_VDD_17_18 0x00000020 /* VDD voltage 1.7 - 1.8 */
97#define MMC_VDD_18_19 0x00000040 /* VDD voltage 1.8 - 1.9 */
98#define MMC_VDD_19_20 0x00000080 /* VDD voltage 1.9 - 2.0 */
99#define MMC_VDD_20_21 0x00000100 /* VDD voltage 2.0 ~ 2.1 */
100#define MMC_VDD_21_22 0x00000200 /* VDD voltage 2.1 ~ 2.2 */
101#define MMC_VDD_22_23 0x00000400 /* VDD voltage 2.2 ~ 2.3 */
102#define MMC_VDD_23_24 0x00000800 /* VDD voltage 2.3 ~ 2.4 */
103#define MMC_VDD_24_25 0x00001000 /* VDD voltage 2.4 ~ 2.5 */
104#define MMC_VDD_25_26 0x00002000 /* VDD voltage 2.5 ~ 2.6 */
105#define MMC_VDD_26_27 0x00004000 /* VDD voltage 2.6 ~ 2.7 */
106#define MMC_VDD_27_28 0x00008000 /* VDD voltage 2.7 ~ 2.8 */
107#define MMC_VDD_28_29 0x00010000 /* VDD voltage 2.8 ~ 2.9 */
108#define MMC_VDD_29_30 0x00020000 /* VDD voltage 2.9 ~ 3.0 */
109#define MMC_VDD_30_31 0x00040000 /* VDD voltage 3.0 ~ 3.1 */
110#define MMC_VDD_31_32 0x00080000 /* VDD voltage 3.1 ~ 3.2 */
111#define MMC_VDD_32_33 0x00100000 /* VDD voltage 3.2 ~ 3.3 */
112#define MMC_VDD_33_34 0x00200000 /* VDD voltage 3.3 ~ 3.4 */
113#define MMC_VDD_34_35 0x00400000 /* VDD voltage 3.4 ~ 3.5 */
114#define MMC_VDD_35_36 0x00800000 /* VDD voltage 3.5 ~ 3.6 */
115
91 unsigned long caps; /* Host capabilities */ 116 unsigned long caps; /* Host capabilities */
92 117
93#define MMC_CAP_4_BIT_DATA (1 << 0) /* Can the host do 4 bit transfers */ 118#define MMC_CAP_4_BIT_DATA (1 << 0) /* Can the host do 4 bit transfers */
diff --git a/include/linux/mmc/protocol.h b/include/linux/mmc/protocol.h
index d740ab94fa2..3ca91a6fc23 100644
--- a/include/linux/mmc/protocol.h
+++ b/include/linux/mmc/protocol.h
@@ -208,30 +208,9 @@ struct _mmc_csd {
208 u8 ecc; 208 u8 ecc;
209}; 209};
210 210
211#define MMC_VDD_145_150 0x00000001 /* VDD voltage 1.45 - 1.50 */ 211/*
212#define MMC_VDD_150_155 0x00000002 /* VDD voltage 1.50 - 1.55 */ 212 * OCR bits are mostly in host.h
213#define MMC_VDD_155_160 0x00000004 /* VDD voltage 1.55 - 1.60 */ 213 */
214#define MMC_VDD_160_165 0x00000008 /* VDD voltage 1.60 - 1.65 */
215#define MMC_VDD_165_170 0x00000010 /* VDD voltage 1.65 - 1.70 */
216#define MMC_VDD_17_18 0x00000020 /* VDD voltage 1.7 - 1.8 */
217#define MMC_VDD_18_19 0x00000040 /* VDD voltage 1.8 - 1.9 */
218#define MMC_VDD_19_20 0x00000080 /* VDD voltage 1.9 - 2.0 */
219#define MMC_VDD_20_21 0x00000100 /* VDD voltage 2.0 ~ 2.1 */
220#define MMC_VDD_21_22 0x00000200 /* VDD voltage 2.1 ~ 2.2 */
221#define MMC_VDD_22_23 0x00000400 /* VDD voltage 2.2 ~ 2.3 */
222#define MMC_VDD_23_24 0x00000800 /* VDD voltage 2.3 ~ 2.4 */
223#define MMC_VDD_24_25 0x00001000 /* VDD voltage 2.4 ~ 2.5 */
224#define MMC_VDD_25_26 0x00002000 /* VDD voltage 2.5 ~ 2.6 */
225#define MMC_VDD_26_27 0x00004000 /* VDD voltage 2.6 ~ 2.7 */
226#define MMC_VDD_27_28 0x00008000 /* VDD voltage 2.7 ~ 2.8 */
227#define MMC_VDD_28_29 0x00010000 /* VDD voltage 2.8 ~ 2.9 */
228#define MMC_VDD_29_30 0x00020000 /* VDD voltage 2.9 ~ 3.0 */
229#define MMC_VDD_30_31 0x00040000 /* VDD voltage 3.0 ~ 3.1 */
230#define MMC_VDD_31_32 0x00080000 /* VDD voltage 3.1 ~ 3.2 */
231#define MMC_VDD_32_33 0x00100000 /* VDD voltage 3.2 ~ 3.3 */
232#define MMC_VDD_33_34 0x00200000 /* VDD voltage 3.3 ~ 3.4 */
233#define MMC_VDD_34_35 0x00400000 /* VDD voltage 3.4 ~ 3.5 */
234#define MMC_VDD_35_36 0x00800000 /* VDD voltage 3.5 ~ 3.6 */
235#define MMC_CARD_BUSY 0x80000000 /* Card Power up status bit */ 214#define MMC_CARD_BUSY 0x80000000 /* Card Power up status bit */
236 215
237/* 216/*