diff options
| author | Adrian Hunter <adrian.hunter@intel.com> | 2015-02-06 07:12:58 -0500 |
|---|---|---|
| committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-06-01 03:07:14 -0400 |
| commit | cc4f414c885cd04f7227ad9bcd6b18fd78d718d9 (patch) | |
| tree | 257e87e94ababd6109a724b73d8635f5192dfd9e /include/linux/mmc | |
| parent | b097e07f57930eda774c83aa46e8e401686d01dc (diff) | |
mmc: mmc: Add driver strength selection
Add the ability to set eMMC driver strength
for HS200 and HS400.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc')
| -rw-r--r-- | include/linux/mmc/mmc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mmc/mmc.h b/include/linux/mmc/mmc.h index 4819cfbc3795..15f2c4a0a62c 100644 --- a/include/linux/mmc/mmc.h +++ b/include/linux/mmc/mmc.h | |||
| @@ -391,6 +391,7 @@ struct _mmc_csd { | |||
| 391 | #define EXT_CSD_TIMING_HS 1 /* High speed */ | 391 | #define EXT_CSD_TIMING_HS 1 /* High speed */ |
| 392 | #define EXT_CSD_TIMING_HS200 2 /* HS200 */ | 392 | #define EXT_CSD_TIMING_HS200 2 /* HS200 */ |
| 393 | #define EXT_CSD_TIMING_HS400 3 /* HS400 */ | 393 | #define EXT_CSD_TIMING_HS400 3 /* HS400 */ |
| 394 | #define EXT_CSD_DRV_STR_SHIFT 4 /* Driver Strength shift */ | ||
| 394 | 395 | ||
| 395 | #define EXT_CSD_SEC_ER_EN BIT(0) | 396 | #define EXT_CSD_SEC_ER_EN BIT(0) |
| 396 | #define EXT_CSD_SEC_BD_BLK_EN BIT(2) | 397 | #define EXT_CSD_SEC_BD_BLK_EN BIT(2) |
| @@ -442,4 +443,6 @@ struct _mmc_csd { | |||
| 442 | #define MMC_SWITCH_MODE_CLEAR_BITS 0x02 /* Clear bits which are 1 in value */ | 443 | #define MMC_SWITCH_MODE_CLEAR_BITS 0x02 /* Clear bits which are 1 in value */ |
| 443 | #define MMC_SWITCH_MODE_WRITE_BYTE 0x03 /* Set target to value */ | 444 | #define MMC_SWITCH_MODE_WRITE_BYTE 0x03 /* Set target to value */ |
| 444 | 445 | ||
| 446 | #define mmc_driver_type_mask(n) (1 << (n)) | ||
| 447 | |||
| 445 | #endif /* LINUX_MMC_MMC_H */ | 448 | #endif /* LINUX_MMC_MMC_H */ |
