Lines Matching refs:phy_base

69 	void __iomem *phy_base;  member
89 exynos_pcie_phy_writel(ep->phy_base, 0x29, PCIE_PHY_DCC_FEEDBACK); in exynos5440_pcie_phy_init()
92 exynos_pcie_phy_writel(ep->phy_base, 0xd5, PCIE_PHY_IMPEDANCE); in exynos5440_pcie_phy_init()
95 exynos_pcie_phy_writel(ep->phy_base, 0x14, PCIE_PHY_PLL_DIV_0); in exynos5440_pcie_phy_init()
96 exynos_pcie_phy_writel(ep->phy_base, 0x12, PCIE_PHY_PLL_DIV_1); in exynos5440_pcie_phy_init()
99 exynos_pcie_phy_writel(ep->phy_base, 0x7f, PCIE_PHY_TRSV0_DRV_LVL); in exynos5440_pcie_phy_init()
102 exynos_pcie_phy_writel(ep->phy_base, 0x0, PCIE_PHY_TRSV0_EMP_LVL); in exynos5440_pcie_phy_init()
105 exynos_pcie_phy_writel(ep->phy_base, 0xe7, PCIE_PHY_PLL_BIAS); in exynos5440_pcie_phy_init()
106 exynos_pcie_phy_writel(ep->phy_base, 0x82, PCIE_PHY_TRSV0_RXCDR); in exynos5440_pcie_phy_init()
107 exynos_pcie_phy_writel(ep->phy_base, 0x82, PCIE_PHY_TRSV1_RXCDR); in exynos5440_pcie_phy_init()
108 exynos_pcie_phy_writel(ep->phy_base, 0x82, PCIE_PHY_TRSV2_RXCDR); in exynos5440_pcie_phy_init()
109 exynos_pcie_phy_writel(ep->phy_base, 0x82, PCIE_PHY_TRSV3_RXCDR); in exynos5440_pcie_phy_init()
112 exynos_pcie_phy_writel(ep->phy_base, 0x39, PCIE_PHY_TRSV0_EMP_LVL); in exynos5440_pcie_phy_init()
113 exynos_pcie_phy_writel(ep->phy_base, 0x39, PCIE_PHY_TRSV1_EMP_LVL); in exynos5440_pcie_phy_init()
114 exynos_pcie_phy_writel(ep->phy_base, 0x39, PCIE_PHY_TRSV2_EMP_LVL); in exynos5440_pcie_phy_init()
115 exynos_pcie_phy_writel(ep->phy_base, 0x39, PCIE_PHY_TRSV3_EMP_LVL); in exynos5440_pcie_phy_init()
118 exynos_pcie_phy_writel(ep->phy_base, 0x20, PCIE_PHY_TRSV0_LVCC); in exynos5440_pcie_phy_init()
119 exynos_pcie_phy_writel(ep->phy_base, 0xa0, PCIE_PHY_TRSV1_LVCC); in exynos5440_pcie_phy_init()
120 exynos_pcie_phy_writel(ep->phy_base, 0xa0, PCIE_PHY_TRSV2_LVCC); in exynos5440_pcie_phy_init()
121 exynos_pcie_phy_writel(ep->phy_base, 0xa0, PCIE_PHY_TRSV3_LVCC); in exynos5440_pcie_phy_init()
141 val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_COMMON_POWER); in exynos5440_pcie_phy_power_on()
143 exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_COMMON_POWER); in exynos5440_pcie_phy_power_on()
145 val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV0_POWER); in exynos5440_pcie_phy_power_on()
147 exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV0_POWER); in exynos5440_pcie_phy_power_on()
149 val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV1_POWER); in exynos5440_pcie_phy_power_on()
151 exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV1_POWER); in exynos5440_pcie_phy_power_on()
153 val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV2_POWER); in exynos5440_pcie_phy_power_on()
155 exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV2_POWER); in exynos5440_pcie_phy_power_on()
157 val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV3_POWER); in exynos5440_pcie_phy_power_on()
159 exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV3_POWER); in exynos5440_pcie_phy_power_on()
169 if (readl_poll_timeout(ep->phy_base + PCIE_PHY_PLL_LOCKED, val, in exynos5440_pcie_phy_power_off()
175 val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_COMMON_POWER); in exynos5440_pcie_phy_power_off()
177 exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_COMMON_POWER); in exynos5440_pcie_phy_power_off()
179 val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV0_POWER); in exynos5440_pcie_phy_power_off()
181 exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV0_POWER); in exynos5440_pcie_phy_power_off()
183 val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV1_POWER); in exynos5440_pcie_phy_power_off()
185 exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV1_POWER); in exynos5440_pcie_phy_power_off()
187 val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV2_POWER); in exynos5440_pcie_phy_power_off()
189 exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV2_POWER); in exynos5440_pcie_phy_power_off()
191 val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV3_POWER); in exynos5440_pcie_phy_power_off()
193 exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV3_POWER); in exynos5440_pcie_phy_power_off()
247 exynos_phy->phy_base = devm_ioremap_resource(dev, res); in exynos_pcie_phy_probe()
248 if (IS_ERR(exynos_phy->phy_base)) in exynos_pcie_phy_probe()
249 return PTR_ERR(exynos_phy->phy_base); in exynos_pcie_phy_probe()