Home
last modified time | relevance | path

Searched refs:phy_ctrl (Results 1 – 25 of 61) sorted by relevance

123

/openbmc/linux/drivers/usb/phy/
H A Dphy-am335x-control.h6 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 Dphy-am335x-control.c16 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()
177 ctrl_usb->phy_ctrl = *phy_ctrl; in am335x_control_usb_probe()
H A Dphy-am335x.c18 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()
106 phy_ctrl_wkup(am_phy->phy_ctrl, am_phy->id, true); in am335x_phy_suspend()
108 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_phy_suspend()
117 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, true); in am335x_phy_resume()
120 phy_ctrl_wkup(am_phy->phy_ctrl, am_phy->id, false); in am335x_phy_resume()
H A Dphy-keystone.c30 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()
/openbmc/linux/drivers/net/ethernet/silan/
H A Dsc92031.c554 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 …]
/openbmc/u-boot/drivers/usb/host/
H A Dehci-mx6.c131 void __iomem *phy_ctrl; in usb_phy_enable() local
139 phy_ctrl = (void __iomem *)(phy_reg + USBPHY_CTRL); in usb_phy_enable()
154 setbits_le32(phy_ctrl, USBPHY_CTRL_SFTRST); in usb_phy_enable()
158 clrbits_le32(phy_ctrl, USBPHY_CTRL_CLKGATE | USBPHY_CTRL_SFTRST); in usb_phy_enable()
164 setbits_le32(phy_ctrl, USBPHY_CTRL_ENUTMILEVEL2 | in usb_phy_enable()
173 void __iomem *phy_ctrl; in usb_phy_mode() local
177 phy_ctrl = (void __iomem *)(phy_reg + USBPHY_CTRL); in usb_phy_mode()
179 val = readl(phy_ctrl); in usb_phy_mode()
439 void *__iomem phy_ctrl, *__iomem phy_status; in ehci_usb_phy_mode() local
460 phy_ctrl = (void __iomem *)(addr + USBPHY_CTRL); in ehci_usb_phy_mode()
[all …]
H A Dehci-vf.c87 void __iomem *phy_ctrl; in usb_phy_enable() local
91 phy_ctrl = (void __iomem *)(phy_reg + USBPHY_CTRL); in usb_phy_enable()
104 setbits_le32(phy_ctrl, USBPHY_CTRL_SFTRST); in usb_phy_enable()
108 clrbits_le32(phy_ctrl, USBPHY_CTRL_CLKGATE | USBPHY_CTRL_SFTRST); in usb_phy_enable()
115 setbits_le32(phy_ctrl, USBPHY_CTRL_ENUTMILEVEL2 | in usb_phy_enable()
/openbmc/u-boot/arch/arm/mach-exynos/
H A Ddmc_init_ddr3.c281 *phy_ctrl) in dmc_get_read_offset_value()
283 return readl(&phy_ctrl->phy_con4); in dmc_get_read_offset_value()
291 static void ddr_phy_set_do_resync(struct exynos5420_phy_control *phy_ctrl) in ddr_phy_set_do_resync() argument
293 setbits_le32(&phy_ctrl->phy_con10, PHY_CON10_CTRL_OFFSETR3); in ddr_phy_set_do_resync()
294 clrbits_le32(&phy_ctrl->phy_con10, PHY_CON10_CTRL_OFFSETR3); in ddr_phy_set_do_resync()
305 static void dmc_set_read_offset_value(struct exynos5420_phy_control *phy_ctrl, in dmc_set_read_offset_value() argument
308 writel(offset, &phy_ctrl->phy_con4); in dmc_set_read_offset_value()
309 ddr_phy_set_do_resync(phy_ctrl); in dmc_set_read_offset_value()
351 void test_shifts(struct exynos5420_phy_control *phy_ctrl, int ch, in test_shifts() argument
360 dmc_set_read_offset_value(phy_ctrl, DEFAULT_DQS_X4); in test_shifts()
[all …]
/openbmc/linux/drivers/net/ethernet/oki-semi/pch_gbe/
H A Dpch_gbe_phy.c178 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()
/openbmc/linux/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_hw.c784 u32 master_ctrl, mac_ctrl, phy_ctrl; in atl1c_power_saving() local
794 AT_READ_REG(hw, REG_GPHY_CTRL, &phy_ctrl); in atl1c_power_saving()
801 phy_ctrl &= ~(GPHY_CTRL_EXT_RESET | GPHY_CTRL_CLS); in atl1c_power_saving()
802 phy_ctrl |= GPHY_CTRL_SEL_ANA_RST | GPHY_CTRL_HIB_PULSE | in atl1c_power_saving()
806 phy_ctrl |= GPHY_CTRL_PHY_IDDQ | GPHY_CTRL_PWDOWN_HW; in atl1c_power_saving()
809 AT_WRITE_REG(hw, REG_GPHY_CTRL, phy_ctrl); in atl1c_power_saving()
814 phy_ctrl |= GPHY_CTRL_EXT_RESET; in atl1c_power_saving()
832 atl1c_driver_name, mac_ctrl, master_ctrl, phy_ctrl, wol_ctrl); in atl1c_power_saving()
835 AT_WRITE_REG(hw, REG_GPHY_CTRL, phy_ctrl); in atl1c_power_saving()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A De1000_phy.c12 u16 *phy_ctrl);
865 u16 phy_ctrl; in igb_copper_link_autoneg() local
889 ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_ctrl); in igb_copper_link_autoneg()
893 phy_ctrl |= (MII_CR_AUTO_NEG_EN | MII_CR_RESTART_AUTO_NEG); in igb_copper_link_autoneg()
894 ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_ctrl); in igb_copper_link_autoneg()
1333 u16 *phy_ctrl) in igb_phy_force_speed_duplex_setup() argument
1350 *phy_ctrl &= ~MII_CR_AUTO_NEG_EN; in igb_phy_force_speed_duplex_setup()
1355 *phy_ctrl &= ~MII_CR_FULL_DUPLEX; in igb_phy_force_speed_duplex_setup()
1359 *phy_ctrl |= MII_CR_FULL_DUPLEX; in igb_phy_force_speed_duplex_setup()
1366 *phy_ctrl |= MII_CR_SPEED_100; in igb_phy_force_speed_duplex_setup()
[all …]
/openbmc/u-boot/drivers/ram/aspeed/
H A Dsdram_ast2500.c113 writel(0, &regs->phy_ctrl[0]); in ast2500_ddr_phy_init_process()
116 writel(SDRAM_PHYCTRL0_NRST | SDRAM_PHYCTRL0_INIT, &regs->phy_ctrl[0]); in ast2500_ddr_phy_init_process()
117 while ((readl(&regs->phy_ctrl[0]) & SDRAM_PHYCTRL0_INIT)) in ast2500_ddr_phy_init_process()
120 &regs->phy_ctrl[0]); in ast2500_ddr_phy_init_process()
125 writel(0, &info->regs->phy_ctrl[0]); in ast2500_sdrammc_set_vref()
H A Dsdram_ast2600.c212 writel(SDRAM_PHYCTRL0_NRST, &regs->phy_ctrl[0]); in ast2600_sdramphy_kick_training()
214 writel(SDRAM_PHYCTRL0_NRST | SDRAM_PHYCTRL0_INIT, &regs->phy_ctrl[0]); in ast2600_sdramphy_kick_training()
218 data = readl(&regs->phy_ctrl[0]) & SDRAM_PHYCTRL0_INIT; in ast2600_sdramphy_kick_training()
243 writel(0, &info->regs->phy_ctrl[0]); in ast2600_sdramphy_init()
/openbmc/linux/drivers/net/ethernet/intel/e1000e/
H A Dphy.c1122 u16 phy_ctrl; in e1000_copper_link_autoneg() local
1146 ret_val = e1e_rphy(hw, MII_BMCR, &phy_ctrl); in e1000_copper_link_autoneg()
1150 phy_ctrl |= (BMCR_ANENABLE | BMCR_ANRESTART); in e1000_copper_link_autoneg()
1151 ret_val = e1e_wphy(hw, MII_BMCR, phy_ctrl); in e1000_copper_link_autoneg()
1468 void e1000e_phy_force_speed_duplex_setup(struct e1000_hw *hw, u16 *phy_ctrl) in e1000e_phy_force_speed_duplex_setup() argument
1485 *phy_ctrl &= ~BMCR_ANENABLE; in e1000e_phy_force_speed_duplex_setup()
1490 *phy_ctrl &= ~BMCR_FULLDPLX; in e1000e_phy_force_speed_duplex_setup()
1494 *phy_ctrl |= BMCR_FULLDPLX; in e1000e_phy_force_speed_duplex_setup()
1501 *phy_ctrl |= BMCR_SPEED100; in e1000e_phy_force_speed_duplex_setup()
1502 *phy_ctrl &= ~BMCR_SPEED1000; in e1000e_phy_force_speed_duplex_setup()
[all …]
H A Dich8lan.c3072 u32 phy_ctrl; in e1000_set_d0_lplu_state_ich8lan() local
3079 phy_ctrl = er32(PHY_CTRL); in e1000_set_d0_lplu_state_ich8lan()
3082 phy_ctrl |= E1000_PHY_CTRL_D0A_LPLU; in e1000_set_d0_lplu_state_ich8lan()
3083 ew32(PHY_CTRL, phy_ctrl); in e1000_set_d0_lplu_state_ich8lan()
3103 phy_ctrl &= ~E1000_PHY_CTRL_D0A_LPLU; in e1000_set_d0_lplu_state_ich8lan()
3104 ew32(PHY_CTRL, phy_ctrl); in e1000_set_d0_lplu_state_ich8lan()
3158 u32 phy_ctrl; in e1000_set_d3_lplu_state_ich8lan() local
3162 phy_ctrl = er32(PHY_CTRL); in e1000_set_d3_lplu_state_ich8lan()
3165 phy_ctrl &= ~E1000_PHY_CTRL_NOND0A_LPLU; in e1000_set_d3_lplu_state_ich8lan()
3166 ew32(PHY_CTRL, phy_ctrl); in e1000_set_d3_lplu_state_ich8lan()
[all …]
/openbmc/u-boot/doc/device-tree-bindings/phy/
H A Dsun4i-usb-phy.txt18 * "phy_ctrl"
53 reg-names = "phy_ctrl", "pmu1", "pmu2";
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A Digc_phy.c436 u16 phy_ctrl; in igc_copper_link_autoneg() local
461 ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_ctrl); in igc_copper_link_autoneg()
465 phy_ctrl |= (MII_CR_AUTO_NEG_EN | MII_CR_RESTART_AUTO_NEG); in igc_copper_link_autoneg()
466 ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_ctrl); in igc_copper_link_autoneg()
/openbmc/u-boot/arch/arm/include/asm/arch-aspeed/
H A Dsdram_ast2500.h122 u32 phy_ctrl[4]; /* offset 0x60 ~ 0x6C */ member
H A Dsdram_ast2600.h154 u32 phy_ctrl[4]; /* offset 0x60 ~ 0x6C */ member
/openbmc/u-boot/drivers/net/
H A De1000.c2413 uint32_t phy_ctrl = 0; in e1000_set_d3_lplu_state() local
2435 phy_ctrl = E1000_READ_REG(hw, PHY_CTRL); in e1000_set_d3_lplu_state()
2453 phy_ctrl &= ~E1000_PHY_CTRL_NOND0A_LPLU; in e1000_set_d3_lplu_state()
2454 E1000_WRITE_REG(hw, PHY_CTRL, phy_ctrl); in e1000_set_d3_lplu_state()
2505 phy_ctrl |= E1000_PHY_CTRL_NOND0A_LPLU; in e1000_set_d3_lplu_state()
2506 E1000_WRITE_REG(hw, PHY_CTRL, phy_ctrl); in e1000_set_d3_lplu_state()
2548 uint32_t phy_ctrl = 0; in e1000_set_d0_lplu_state() local
2557 phy_ctrl = E1000_READ_REG(hw, PHY_CTRL); in e1000_set_d0_lplu_state()
2559 phy_ctrl = E1000_READ_REG(hw, I210_PHY_CTRL); in e1000_set_d0_lplu_state()
2569 phy_ctrl &= ~E1000_PHY_CTRL_D0A_LPLU; in e1000_set_d0_lplu_state()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/usb/
H A Dam33xx-usb.txt17 - reg-names: "phy_ctrl" for the "USB control registers" and "wakeup" for
91 reg-names = "phy_ctrl", "wakeup";
/openbmc/u-boot/drivers/ram/
H A Dk3-am654-ddrss.c201 struct ddrss_ddrphy_ctrl_params *ctrl = &ddrss->params.phy_ctrl; in am654_ddrss_phy_configuration()
743 (u32 *)&ddrss->params.phy_ctrl, in am654_ddrss_ofdata_to_priv()
744 sizeof(ddrss->params.phy_ctrl) / sizeof(u32)); in am654_ddrss_ofdata_to_priv()
/openbmc/linux/drivers/net/ethernet/intel/e1000/
H A De1000_main.c4679 u16 phy_ctrl; in e1000_smartspeed() local
4695 e1000_read_phy_reg(hw, PHY_1000T_CTRL, &phy_ctrl); in e1000_smartspeed()
4696 if (phy_ctrl & CR_1000T_MS_ENABLE) { in e1000_smartspeed()
4697 phy_ctrl &= ~CR_1000T_MS_ENABLE; in e1000_smartspeed()
4699 phy_ctrl); in e1000_smartspeed()
4703 &phy_ctrl)) { in e1000_smartspeed()
4704 phy_ctrl |= (MII_CR_AUTO_NEG_EN | in e1000_smartspeed()
4707 phy_ctrl); in e1000_smartspeed()
4713 e1000_read_phy_reg(hw, PHY_1000T_CTRL, &phy_ctrl); in e1000_smartspeed()
4714 phy_ctrl |= CR_1000T_MS_ENABLE; in e1000_smartspeed()
[all …]
/openbmc/linux/drivers/pci/controller/dwc/
H A Dpcie-spear13xx.c42 u32 phy_ctrl; /* cr10 */ member
/openbmc/u-boot/arch/arm/dts/
H A Dsun8i-a23.dtsi87 reg-names = "phy_ctrl", "pmu1";

123