| /OK3568_Linux_fs/kernel/drivers/gpu/drm/hisilicon/kirin/kirin960/ |
| H A D | dw_drm_dsi.c | 148 struct mipi_phy_params *phy_ctrl) in get_dsi_phy_ctrl() argument 185 WARN_ON(!phy_ctrl); in get_dsi_phy_ctrl() 218 phy_ctrl->rg_band_sel = 0; /*0x1E[2]*/ in get_dsi_phy_ctrl() 221 phy_ctrl->rg_band_sel = 1; in get_dsi_phy_ctrl() 263 phy_ctrl->pll_fbd_s = 1; in get_dsi_phy_ctrl() 264 phy_ctrl->rg_pll_enswc = 0; in get_dsi_phy_ctrl() 267 phy_ctrl->pll_fbd_p = m_pll / 2; in get_dsi_phy_ctrl() 271 phy_ctrl->pll_fbd_p = (m_pll * 2) / 2; in get_dsi_phy_ctrl() 280 phy_ctrl->rg_pll_enswc = 0; in get_dsi_phy_ctrl() 282 phy_ctrl->rg_pll_enswc = 1; in get_dsi_phy_ctrl() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/phy/ |
| H A D | phy-am335x-control.c | 16 struct phy_control phy_ctrl; member 31 static void am335x_phy_wkup(struct phy_control *phy_ctrl, u32 id, bool on) in am335x_phy_wkup() argument 37 usb_ctrl = container_of(phy_ctrl, struct am335x_control_usb, phy_ctrl); in am335x_phy_wkup() 63 static void am335x_phy_power(struct phy_control *phy_ctrl, u32 id, in am335x_phy_power() argument 70 usb_ctrl = container_of(phy_ctrl, struct am335x_control_usb, phy_ctrl); in am335x_phy_power() 146 return &ctrl_usb->phy_ctrl; in am335x_get_phy_control() 154 const struct phy_control *phy_ctrl; in am335x_control_usb_probe() local 160 phy_ctrl = of_id->data; in am335x_control_usb_probe() 168 ctrl_usb->phy_reg = devm_platform_ioremap_resource_byname(pdev, "phy_ctrl"); in am335x_control_usb_probe() 177 ctrl_usb->phy_ctrl = *phy_ctrl; in am335x_control_usb_probe()
|
| H A D | phy-am335x-control.h | 6 void (*phy_power)(struct phy_control *phy_ctrl, u32 id, 8 void (*phy_wkup)(struct phy_control *phy_ctrl, u32 id, bool on); 11 static inline void phy_ctrl_power(struct phy_control *phy_ctrl, u32 id, in phy_ctrl_power() argument 14 phy_ctrl->phy_power(phy_ctrl, id, dr_mode, on); in phy_ctrl_power() 17 static inline void phy_ctrl_wkup(struct phy_control *phy_ctrl, u32 id, bool on) in phy_ctrl_wkup() argument 19 phy_ctrl->phy_wkup(phy_ctrl, id, on); in phy_ctrl_wkup()
|
| H A D | phy-am335x.c | 18 struct phy_control *phy_ctrl; member 27 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, true); in am335x_init() 35 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_shutdown() 48 am_phy->phy_ctrl = am335x_get_phy_control(dev); in am335x_phy_probe() 49 if (!am_phy->phy_ctrl) in am335x_phy_probe() 80 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_phy_probe() 107 phy_ctrl_wkup(am_phy->phy_ctrl, am_phy->id, true); in am335x_phy_suspend() 109 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_phy_suspend() 118 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, true); in am335x_phy_resume() 121 phy_ctrl_wkup(am_phy->phy_ctrl, am_phy->id, false); in am335x_phy_resume()
|
| H A D | phy-keystone.c | 30 void __iomem *phy_ctrl; member 49 val = keystone_usbphy_readl(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK); in keystone_usbphy_init() 50 keystone_usbphy_writel(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK, in keystone_usbphy_init() 60 val = keystone_usbphy_readl(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK); in keystone_usbphy_shutdown() 61 keystone_usbphy_writel(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK, in keystone_usbphy_shutdown() 75 k_phy->phy_ctrl = devm_platform_ioremap_resource(pdev, 0); in keystone_usbphy_probe() 76 if (IS_ERR(k_phy->phy_ctrl)) in keystone_usbphy_probe() 77 return PTR_ERR(k_phy->phy_ctrl); in keystone_usbphy_probe()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/silan/ |
| H A D | sc92031.c | 554 u32 phy_ctrl; in _sc92031_phy_reset() local 556 phy_ctrl = ioread32(port_base + PhyCtrl); in _sc92031_phy_reset() 557 phy_ctrl &= ~(PhyCtrlDux | PhyCtrlSpd100 | PhyCtrlSpd10); in _sc92031_phy_reset() 558 phy_ctrl |= PhyCtrlAne | PhyCtrlReset; in _sc92031_phy_reset() 563 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd100 | PhyCtrlSpd10; in _sc92031_phy_reset() 566 phy_ctrl |= PhyCtrlSpd10; in _sc92031_phy_reset() 569 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd10; in _sc92031_phy_reset() 572 phy_ctrl |= PhyCtrlSpd100; in _sc92031_phy_reset() 575 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd100; in _sc92031_phy_reset() 579 iowrite32(phy_ctrl, port_base + PhyCtrl); in _sc92031_phy_reset() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/phy/broadcom/ |
| H A D | phy-bcm-sr-usb.c | 21 PHY_CTRL, enumerator 29 [PHY_CTRL] = 0x14, 34 [PHY_CTRL] = 0x10, 39 [PHY_CTRL] = 0xc, 134 rd_data = readl(regs + offset[PHY_CTRL]); in bcm_usb_ss_phy_init() 137 writel(rd_data, regs + offset[PHY_CTRL]); in bcm_usb_ss_phy_init() 183 bcm_usb_reg32_clrbits(regs + offset[PHY_CTRL], in bcm_usb_phy_reset() 185 bcm_usb_reg32_setbits(regs + offset[PHY_CTRL], in bcm_usb_phy_reset()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-exynos/ |
| H A D | dmc_init_ddr3.c | 279 * @param phy_ctrl pointer to the current phy controller 282 *phy_ctrl) in dmc_get_read_offset_value() 284 return readl(&phy_ctrl->phy_con4); in dmc_get_read_offset_value() 290 * @param phy_ctrl pointer to the current phy controller 292 static void ddr_phy_set_do_resync(struct exynos5420_phy_control *phy_ctrl) in ddr_phy_set_do_resync() argument 294 setbits_le32(&phy_ctrl->phy_con10, PHY_CON10_CTRL_OFFSETR3); in ddr_phy_set_do_resync() 295 clrbits_le32(&phy_ctrl->phy_con10, PHY_CON10_CTRL_OFFSETR3); in ddr_phy_set_do_resync() 303 * @param phy_ctrl pointer to the current phy controller 306 static void dmc_set_read_offset_value(struct exynos5420_phy_control *phy_ctrl, in dmc_set_read_offset_value() argument 309 writel(offset, &phy_ctrl->phy_con4); in dmc_set_read_offset_value() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/usb/host/ |
| H A D | ehci-mx6.c | 151 void __iomem *phy_ctrl; in usb_phy_enable() local 159 phy_ctrl = (void __iomem *)(phy_reg + USBPHY_CTRL); in usb_phy_enable() 174 setbits_le32(phy_ctrl, USBPHY_CTRL_SFTRST); in usb_phy_enable() 178 clrbits_le32(phy_ctrl, USBPHY_CTRL_CLKGATE | USBPHY_CTRL_SFTRST); in usb_phy_enable() 184 setbits_le32(phy_ctrl, USBPHY_CTRL_ENUTMILEVEL2 | in usb_phy_enable() 193 void __iomem *phy_ctrl; in usb_phy_mode() local 197 phy_ctrl = (void __iomem *)(phy_reg + USBPHY_CTRL); in usb_phy_mode() 199 val = readl(phy_ctrl); in usb_phy_mode() 468 void *__iomem phy_ctrl, *__iomem phy_status; in ehci_usb_phy_mode() local 489 phy_ctrl = (void __iomem *)(addr + USBPHY_CTRL); in ehci_usb_phy_mode() [all …]
|
| H A D | ehci-vf.c | 88 void __iomem *phy_ctrl; in usb_phy_enable() local 92 phy_ctrl = (void __iomem *)(phy_reg + USBPHY_CTRL); in usb_phy_enable() 105 setbits_le32(phy_ctrl, USBPHY_CTRL_SFTRST); in usb_phy_enable() 109 clrbits_le32(phy_ctrl, USBPHY_CTRL_CLKGATE | USBPHY_CTRL_SFTRST); in usb_phy_enable() 116 setbits_le32(phy_ctrl, USBPHY_CTRL_ENUTMILEVEL2 | in usb_phy_enable()
|
| /OK3568_Linux_fs/kernel/drivers/usb/musb/ |
| H A D | davinci.c | 52 u32 phy_ctrl = __raw_readl(USB_PHY_CTRL); in phy_on() local 55 phy_ctrl &= ~(USBPHY_OSCPDWN | USBPHY_OTGPDWN | USBPHY_PHYPDWN); in phy_on() 56 phy_ctrl |= USBPHY_SESNDEN | USBPHY_VBDTCTEN | USBPHY_PHYPLLON; in phy_on() 57 __raw_writel(phy_ctrl, USB_PHY_CTRL); in phy_on() 66 u32 phy_ctrl = __raw_readl(USB_PHY_CTRL); in phy_off() local 69 phy_ctrl &= ~(USBPHY_SESNDEN | USBPHY_VBDTCTEN | USBPHY_PHYPLLON); in phy_off() 70 phy_ctrl |= USBPHY_OSCPDWN | USBPHY_OTGPDWN | USBPHY_PHYPDWN; in phy_off() 71 __raw_writel(phy_ctrl, USB_PHY_CTRL); in phy_off() 384 u32 phy_ctrl = __raw_readl(USB_PHY_CTRL); in davinci_musb_init() local 386 phy_ctrl &= ~(3 << 9); in davinci_musb_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/phy/renesas/ |
| H A D | phy-rcar-gen3-pcie.c | 17 #define PHY_CTRL 0x4000 /* R8A77980 only */ macro 19 /* PHY control register (PHY_CTRL) */ 49 rcar_gen3_phy_pcie_modify_reg(p, PHY_CTRL, PHY_CTRL_PHY_PWDN, 0); in r8a77980_phy_pcie_power_on() 57 rcar_gen3_phy_pcie_modify_reg(p, PHY_CTRL, 0, PHY_CTRL_PHY_PWDN); in r8a77980_phy_pcie_power_off()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/atheros/atl1c/ |
| H A D | atl1c_hw.c | 758 u32 master_ctrl, mac_ctrl, phy_ctrl; in atl1c_power_saving() local 768 AT_READ_REG(hw, REG_GPHY_CTRL, &phy_ctrl); in atl1c_power_saving() 775 phy_ctrl &= ~(GPHY_CTRL_EXT_RESET | GPHY_CTRL_CLS); in atl1c_power_saving() 776 phy_ctrl |= GPHY_CTRL_SEL_ANA_RST | GPHY_CTRL_HIB_PULSE | in atl1c_power_saving() 780 phy_ctrl |= GPHY_CTRL_PHY_IDDQ | GPHY_CTRL_PWDOWN_HW; in atl1c_power_saving() 783 AT_WRITE_REG(hw, REG_GPHY_CTRL, phy_ctrl); in atl1c_power_saving() 788 phy_ctrl |= GPHY_CTRL_EXT_RESET; in atl1c_power_saving() 806 atl1c_driver_name, mac_ctrl, master_ctrl, phy_ctrl, wol_ctrl); in atl1c_power_saving() 809 AT_WRITE_REG(hw, REG_GPHY_CTRL, phy_ctrl); in atl1c_power_saving()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-aspeed/ast2500/ |
| H A D | sdram_ast2500.c | 98 writel(0, ®s->phy_ctrl[0]); in ast2500_ddr_phy_init_process() 101 writel(SDRAM_PHYCTRL0_NRST | SDRAM_PHYCTRL0_INIT, ®s->phy_ctrl[0]); in ast2500_ddr_phy_init_process() 102 while ((readl(®s->phy_ctrl[0]) & SDRAM_PHYCTRL0_INIT)) in ast2500_ddr_phy_init_process() 105 ®s->phy_ctrl[0]); in ast2500_ddr_phy_init_process() 110 writel(0, &info->regs->phy_ctrl[0]); in ast2500_sdrammc_set_vref()
|
| /OK3568_Linux_fs/u-boot/board/keymile/km_arm/ |
| H A D | km_arm.c | 379 { PHY(0), PHY_CTRL, PHY_100_MBPS | AUTONEG_EN | AUTONEG_RST | 383 { PHY(1), PHY_CTRL, PHY_PWR_DOWN }, 387 { PHY(2), PHY_CTRL, PHY_PWR_DOWN }, 391 { PHY(3), PHY_CTRL, PHY_PWR_DOWN }, 397 { PHY(4), PHY_CTRL, PHY_PWR_DOWN },
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/phy/ |
| H A D | allwinner,sun8i-v3s-usb-phy.yaml | 27 - const: phy_ctrl 79 reg-names = "phy_ctrl",
|
| H A D | allwinner,sun5i-a13-usb-phy.yaml | 27 - const: phy_ctrl 84 reg-names = "phy_ctrl", "pmu1";
|
| H A D | allwinner,sun50i-a64-usb-phy.yaml | 28 - const: phy_ctrl 91 reg-names = "phy_ctrl",
|
| H A D | allwinner,sun8i-a23-usb-phy.yaml | 29 - const: phy_ctrl 89 reg-names = "phy_ctrl", "pmu1";
|
| H A D | allwinner,sun50i-h6-usb-phy.yaml | 28 - const: phy_ctrl 91 reg-names = "phy_ctrl",
|
| H A D | allwinner,sun4i-a10-usb-phy.yaml | 30 - const: phy_ctrl 93 reg-names = "phy_ctrl", "pmu1", "pmu2";
|
| H A D | allwinner,sun8i-r40-usb-phy.yaml | 29 - const: phy_ctrl 101 reg-names = "phy_ctrl",
|
| H A D | allwinner,sun6i-a31-usb-phy.yaml | 28 - const: phy_ctrl 98 reg-names = "phy_ctrl",
|
| H A D | allwinner,sun8i-a83t-usb-phy.yaml | 28 - const: phy_ctrl 100 reg-names = "phy_ctrl",
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/oki-semi/pch_gbe/ |
| H A D | pch_gbe_phy.c | 178 u16 phy_ctrl; in pch_gbe_phy_sw_reset() local 180 pch_gbe_phy_read_reg_miic(hw, PHY_CONTROL, &phy_ctrl); in pch_gbe_phy_sw_reset() 181 phy_ctrl |= MII_CR_RESET; in pch_gbe_phy_sw_reset() 182 pch_gbe_phy_write_reg_miic(hw, PHY_CONTROL, phy_ctrl); in pch_gbe_phy_sw_reset()
|