mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 08:46:45 +07:00
a8c643ad00
This platform driver adds initial support for the DW host controller found on ZTE SoCs. It has been tested on ZX296718 EVB board currently. More support on timing tuning will be added when hardware is available. Signed-off-by: Jun Nie <jun.nie@linaro.org> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
32 lines
979 B
C
32 lines
979 B
C
#ifndef _DW_MMC_ZX_H_
|
|
#define _DW_MMC_ZX_H_
|
|
|
|
/* ZX296718 SoC specific DLL register offset. */
|
|
#define LB_AON_EMMC_CFG_REG0 0x1B0
|
|
#define LB_AON_EMMC_CFG_REG1 0x1B4
|
|
#define LB_AON_EMMC_CFG_REG2 0x1B8
|
|
|
|
/* LB_AON_EMMC_CFG_REG0 register defines */
|
|
#define PARA_DLL_START(x) ((x) & 0xFF)
|
|
#define PARA_DLL_START_MASK 0xFF
|
|
#define DLL_REG_SET BIT(8)
|
|
#define PARA_DLL_LOCK_NUM(x) (((x) & 7) << 16)
|
|
#define PARA_DLL_LOCK_NUM_MASK (7 << 16)
|
|
#define PARA_PHASE_DET_SEL(x) (((x) & 7) << 20)
|
|
#define PARA_PHASE_DET_SEL_MASK (7 << 20)
|
|
#define PARA_DLL_BYPASS_MODE BIT(23)
|
|
#define PARA_HALF_CLK_MODE BIT(24)
|
|
|
|
/* LB_AON_EMMC_CFG_REG1 register defines */
|
|
#define READ_DQS_DELAY(x) ((x) & 0x7F)
|
|
#define READ_DQS_DELAY_MASK (0x7F)
|
|
#define READ_DQS_BYPASS_MODE BIT(7)
|
|
#define CLK_SAMP_DELAY(x) (((x) & 0x7F) << 8)
|
|
#define CLK_SAMP_DELAY_MASK (0x7F << 8)
|
|
#define CLK_SAMP_BYPASS_MODE BIT(15)
|
|
|
|
/* LB_AON_EMMC_CFG_REG2 register defines */
|
|
#define ZX_DLL_LOCKED BIT(2)
|
|
|
|
#endif /* _DW_MMC_ZX_H_ */
|