diff options
Diffstat (limited to 'components/drivers/sdio/mmcsd_core.h')
| -rw-r--r-- | components/drivers/sdio/mmcsd_core.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/components/drivers/sdio/mmcsd_core.h b/components/drivers/sdio/mmcsd_core.h index 1e2c9f08b6..ca433fe291 100644 --- a/components/drivers/sdio/mmcsd_core.h +++ b/components/drivers/sdio/mmcsd_core.h @@ -66,6 +66,7 @@ struct rt_mmcsd_cmd { #define RESP_R4 (5 << 0) #define RESP_R6 (6 << 0) #define RESP_R7 (7 << 0) +#define RESP_R5 (8 << 0) /*SDIO command response type*/ /*command types *bits:4~5 */ @@ -155,6 +156,17 @@ struct rt_mmcsd_req { #define CARD_BUSY 0x80000000 /* Card Power up status bit */ +/* R5 response bits */ +#define R5_COM_CRC_ERROR (1 << 15) +#define R5_ILLEGAL_COMMAND (1 << 14) +#define R5_ERROR (1 << 11) +#define R5_FUNCTION_NUMBER (1 << 9) +#define R5_OUT_OF_RANGE (1 << 8) +#define R5_STATUS(x) (x & 0xCB00) +#define R5_IO_CURRENT_STATE(x) ((x & 0x3000) >> 12) + + + /** * fls - find last (most-significant) bit set * @x: the word to search |
