mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
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>
This commit is contained in:
parent
de85989511
commit
85a18ad93e
4 changed files with 38 additions and 8 deletions
|
@ -41,6 +41,7 @@ struct mmc_csd {
|
|||
|
||||
struct mmc_ext_csd {
|
||||
unsigned int hs_max_dtr;
|
||||
unsigned int sectors;
|
||||
};
|
||||
|
||||
struct sd_scr {
|
||||
|
|
|
@ -284,6 +284,7 @@ struct _mmc_csd {
|
|||
#define EXT_CSD_BUS_WIDTH 183 /* R/W */
|
||||
#define EXT_CSD_HS_TIMING 185 /* R/W */
|
||||
#define EXT_CSD_CARD_TYPE 196 /* RO */
|
||||
#define EXT_CSD_SEC_CNT 212 /* RO, 4 bytes */
|
||||
|
||||
/*
|
||||
* EXT_CSD field definitions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue