diff options
Diffstat (limited to 'drivers/mmc/core/core.h')
-rw-r--r-- | drivers/mmc/core/core.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mmc/core/core.h b/drivers/mmc/core/core.h index 67ae6abc4230..1c687830c959 100644 --- a/drivers/mmc/core/core.h +++ b/drivers/mmc/core/core.h @@ -15,6 +15,16 @@ #define MMC_CMD_RETRIES 3 +/* Spec says initialisation must happen at or below 400kHz. + * Some MMC cards fail to initialise at 400kHz (even as low as 200kHz) and + * Some host controllers (eg. tmio_mmc) cannot garantee to set the clock below + * 400kHz (it rounds to the closest clock freq available). + * + * 64 kHz seems like a good speed/reliability compromise. + */ + +#define MMC_INIT_FREQ 64000 + struct mmc_bus_ops { int (*awake)(struct mmc_host *); int (*sleep)(struct mmc_host *); |