mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
mmc: omap_hsmmc: set MMC mode in the UHSMS bit field
Use the timing parameter set in the MMC core to set the mode in UHSMS bit field. This is in preparation for adding HS200 support in omap hsmmc driver. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
This commit is contained in:

committed by
Jaehoon Chung

parent
b594481709
commit
8fc238bfad
@ -53,7 +53,8 @@ struct hsmmc {
|
||||
unsigned int sysctl; /* 0x12C */
|
||||
unsigned int stat; /* 0x130 */
|
||||
unsigned int ie; /* 0x134 */
|
||||
unsigned char res4[0x8];
|
||||
unsigned char res4[0x4];
|
||||
unsigned int ac12; /* 0x13C */
|
||||
unsigned int capa; /* 0x140 */
|
||||
unsigned char res5[0x10];
|
||||
unsigned int admaes; /* 0x154 */
|
||||
@ -170,6 +171,15 @@ struct omap_hsmmc_plat {
|
||||
#define IOV_3V0 3000000
|
||||
#define IOV_1V8 1800000
|
||||
|
||||
#define AC12_ET BIT(22)
|
||||
#define AC12_UHSMC_MASK (7 << 16)
|
||||
#define AC12_UHSMC_DDR50 (4 << 16)
|
||||
#define AC12_UHSMC_SDR104 (3 << 16)
|
||||
#define AC12_UHSMC_SDR50 (2 << 16)
|
||||
#define AC12_UHSMC_SDR25 (1 << 16)
|
||||
#define AC12_UHSMC_SDR12 (0 << 16)
|
||||
#define AC12_UHSMC_RES (0x7 << 16)
|
||||
|
||||
/* Driver definitions */
|
||||
#define MMCSD_SECTOR_SIZE 512
|
||||
#define MMC_CARD 0
|
||||
|
Reference in New Issue
Block a user