diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2007-02-17 16:15:27 -0500 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-05-01 07:04:15 -0400 |
commit | 85a18ad93ec66888d85758630019b10a84257f3c (patch) | |
tree | 46b1b7f72a8d4baac51916ca4ea09884ed043822 /include/linux | |
parent | de85989511f3a0e15b04d18582b23d428d6ddbbd (diff) |
mmc: MMC sector based cards
Support for MMC 4.2 sector based cards. This tweaks the init a
bit and reads a new field out of the EXT_CSD.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mmc/card.h | 1 | ||||
-rw-r--r-- | include/linux/mmc/protocol.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index e45712acfac..5d9896c260a 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h | |||
@@ -41,6 +41,7 @@ struct mmc_csd { | |||
41 | 41 | ||
42 | struct mmc_ext_csd { | 42 | struct mmc_ext_csd { |
43 | unsigned int hs_max_dtr; | 43 | unsigned int hs_max_dtr; |
44 | unsigned int sectors; | ||
44 | }; | 45 | }; |
45 | 46 | ||
46 | struct sd_scr { | 47 | struct sd_scr { |
diff --git a/include/linux/mmc/protocol.h b/include/linux/mmc/protocol.h index c90b6768329..d740ab94fa2 100644 --- a/include/linux/mmc/protocol.h +++ b/include/linux/mmc/protocol.h | |||
@@ -284,6 +284,7 @@ struct _mmc_csd { | |||
284 | #define EXT_CSD_BUS_WIDTH 183 /* R/W */ | 284 | #define EXT_CSD_BUS_WIDTH 183 /* R/W */ |
285 | #define EXT_CSD_HS_TIMING 185 /* R/W */ | 285 | #define EXT_CSD_HS_TIMING 185 /* R/W */ |
286 | #define EXT_CSD_CARD_TYPE 196 /* RO */ | 286 | #define EXT_CSD_CARD_TYPE 196 /* RO */ |
287 | #define EXT_CSD_SEC_CNT 212 /* RO, 4 bytes */ | ||
287 | 288 | ||
288 | /* | 289 | /* |
289 | * EXT_CSD field definitions | 290 | * EXT_CSD field definitions |