diff options
author | Pierre Ossman <drzeus-list@drzeus.cx> | 2005-09-06 18:18:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 19:57:51 -0400 |
commit | f218278a456b3c272b480443c89004c3d2a49f18 (patch) | |
tree | 8d9558816488311e06a7ad2434e342418f2c79d5 /include/linux/mmc/host.h | |
parent | a9c4342beb4cd28b3a05c3401195e2536c37c150 (diff) |
[PATCH] sd: SD 4-bit bus
Infrastructure for 4-bit bus transfers with SD cards.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/mmc/host.h')
-rw-r--r-- | include/linux/mmc/host.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 8c5f71376e41..6014160d9c06 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h | |||
@@ -57,6 +57,11 @@ struct mmc_ios { | |||
57 | #define MMC_POWER_OFF 0 | 57 | #define MMC_POWER_OFF 0 |
58 | #define MMC_POWER_UP 1 | 58 | #define MMC_POWER_UP 1 |
59 | #define MMC_POWER_ON 2 | 59 | #define MMC_POWER_ON 2 |
60 | |||
61 | unsigned char bus_width; /* data bus width */ | ||
62 | |||
63 | #define MMC_BUS_WIDTH_1 0 | ||
64 | #define MMC_BUS_WIDTH_4 2 | ||
60 | }; | 65 | }; |
61 | 66 | ||
62 | struct mmc_host_ops { | 67 | struct mmc_host_ops { |
@@ -77,6 +82,10 @@ struct mmc_host { | |||
77 | unsigned int f_max; | 82 | unsigned int f_max; |
78 | u32 ocr_avail; | 83 | u32 ocr_avail; |
79 | 84 | ||
85 | unsigned long caps; /* Host capabilities */ | ||
86 | |||
87 | #define MMC_CAP_4_BIT_DATA (1 << 0) /* Can the host do 4 bit transfers */ | ||
88 | |||
80 | /* host specific block data */ | 89 | /* host specific block data */ |
81 | unsigned int max_seg_size; /* see blk_queue_max_segment_size */ | 90 | unsigned int max_seg_size; /* see blk_queue_max_segment_size */ |
82 | unsigned short max_hw_segs; /* see blk_queue_max_hw_segments */ | 91 | unsigned short max_hw_segs; /* see blk_queue_max_hw_segments */ |