SPRUIL1D May 2019 – December 2024 DRA829J , DRA829J-Q1 , DRA829V , DRA829V-Q1 , TDA4VM , TDA4VM-Q1
This section details specific steps on how to program the M-PHY.
The M-PHY registers can be used to configure and read the status of the M-PHY. These M-PHY registers are part of the common UFS host controller address space . For detailed description of the UFS and M-PHY registers, refer to UFS0_P2A_WRAP_CFG_VBP_UFSHCI Registers.
UFS and M-PHY address spaces:
The M-PHY configuration and status bits are connected directly either to the top-level ports or to the M-PHY register bank or to both exclusively.
The UFS_MPHY_MMIO_A[0] MMIO_A configuration bit is being used to choose if the dual-connection M-PHY configuration bits are connected to the registers or to IOs. After the reset, the UFS_MPHY_MMIO_A register value is 0h, so the M-PHY configuration bits are connected to the IOs by default. These bits are listed in Table 12-402.
UFS_MPHYCFG_VCONTROL | UFS_MPHYCFG_MISC | UFS_MPHY_MMIO_A = 1 | UFS_MPHY_MMIO_A = 0 | ||
---|---|---|---|---|---|
Offset | 1188h | Offset | 1184h | ||
Bits | Name | Bits | Name | ||
16 | VCONTROL_LA_SA_SEL | 29 | CMN_MPX_EN_MMIO | Registers | I/Os |
11-10 | VCONTROL_DEEMP_SEL | 28-26 | CMN_MPX_SEL_MMIO | ||
9-0 | VCONTROL | 25 | TX0_TEST_15_MMIO | ||
24 | TX1_TEST_15_MMIO | ||||
17 | REFCLK_NOGATED | ||||
16-15 | REFCLK_FREQ_SEL | ||||
6-0 | DEBUG_SEL |
To enlarge the M-PHY HS-Gear mode initialization time, set M-PHY configuration for the digital part register (UFS_MPHYCFG_ XCFGD1) to 01000000h.
The UFS_MPHY_MMIO_A register will be stuck at zero in test mode in order to prevent toggling any of the dependent M-PHY input ports during scan procedure.