/openbmc/u-boot/drivers/net/phy/ |
H A D | Kconfig | 3 bool "Bit-banged ethernet MII management channel support" 9 bool "Ethernet PHY (physical media interface) support" 12 Enable Ethernet PHY (physical media interface) support. 17 bool "Limit phy address" 20 Select this if you want to control which phy address is used 24 int "PHY address" 28 The address of PHY on MII bus. Usually in range of 0 to 31. 32 bool "Broadcom BCM53xx (RoboSwitch) Ethernet switch PHY support." 44 hex "Bitmask of PHY ports" 49 bool "Marvel MV88E61xx Ethernet switch PHY support." [all …]
|
H A D | realtek.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * RealTek PHY drivers 5 * Copyright 2010-2011, 2015 Freescale Semiconductor, Inc. 11 #include <phy.h> 18 /* RTL8211x 1000BASE-T Control Register */ 22 /* RTL8211x PHY Status Register */ 31 /* RTL8211x PHY Interrupt Enable Register */ 36 /* RTL8211x PHY Interrupt Status Register */ 39 /* RTL8211F PHY Status Register */ 91 phydev->flags |= PHY_RTL8211x_FORCE_MASTER; in rtl8211b_probe() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | smsc,lan9115.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Smart Mixed-Signal Connectivity (SMSC) LAN911x/912x Controller 10 - Shawn Guo <shawnguo@kernel.org> 13 - $ref: ethernet-controller.yaml# 18 - const: smsc,lan9115 19 - items: 20 - enum: 21 - smsc,lan89218 [all …]
|
/openbmc/linux/Documentation/networking/device_drivers/ethernet/davicom/ |
H A D | dm9000.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 Ben Dooks <ben@simtec.co.uk> <ben-linux@fluff.org> 13 ------------ 15 This file describes how to use the DM9000 platform-device based network driver 25 ---------------------------- 37 An example from arch/arm/mach-s3c/mach-bast.c is:: 91 ------------- 94 device, whether or not an external PHY is attached to the device and 113 The chip is connected to an external PHY. 122 Switch to using the simpler PHY polling method which does not [all …]
|
/openbmc/linux/arch/mips/include/asm/mach-bcm63xx/ |
H A D | bcm63xx_dev_enet.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 21 /* or fill phy info to use an external one */ 26 /* if has_phy, use autonegotiated pause parameters or force 50 /* DMA engine has internal SRAM */ 68 #define ENETSW_PORTS_6328 5 /* 4 FE PHY + 1 RGMII */ 69 #define ENETSW_PORTS_6368 6 /* 4 FE PHY + 2 RGMII */ 98 /* DMA engine has internal SRAM */
|
/openbmc/u-boot/cmd/aspeed/nettest/ |
H A D | phy.c | 1 // SPDX-License-Identifier: GPL-2.0+ 27 #include "phy.h" 63 //------------------------------------------------------------ 64 // PHY R/W basic 65 //------------------------------------------------------------ 71 if (eng->env.is_new_mdio_reg[eng->run.mdio_idx]) { in phy_write() 73 MDIO_SET_PHY_ADDR(eng->phy.Adr) | in phy_write() 75 writel(wr_data, eng->run.mdio_base); in phy_write() 76 /* check time-out */ in phy_write() 77 while (readl(eng->run.mdio_base) & MDIO_FIRE_BUSY) { in phy_write() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_x550.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 17 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X550_x() 18 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_get_invariants_X550_x() local 19 struct ixgbe_link_info *link = &hw->link; in ixgbe_get_invariants_X550_x() 24 if (mac->ops.get_media_type(hw) != ixgbe_media_type_copper) in ixgbe_get_invariants_X550_x() 25 phy->ops.set_phy_power = NULL; in ixgbe_get_invariants_X550_x() 27 link->addr = IXGBE_CS4227; in ixgbe_get_invariants_X550_x() 34 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_get_invariants_X550_x_fw() local 39 phy->ops.set_phy_power = NULL; in ixgbe_get_invariants_X550_x_fw() [all …]
|
/openbmc/linux/drivers/phy/ |
H A D | phy-xgene.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * AppliedMicro X-Gene Multi-purpose PHY driver 10 * The APM X-Gene PHY consists of two PLL clock macro's (CMU) and lanes. 11 * The first PLL clock macro is used for internal reference clock. The second 12 * PLL clock macro is used to generate the clock for the PHY. This driver 13 * configures the first PLL CMU, the second PLL CMU, and programs the PHY to 15 * required if internal clock is enabled. 19 * ----------------- 20 * | Internal | |------| 21 * | Ref PLL CMU |----| | ------------- --------- [all …]
|
/openbmc/linux/arch/arm/boot/dts/samsung/ |
H A D | s3c6410-smdk6410.dts | 1 // SPDX-License-Identifier: GPL-2.0 11 /dts-v1/; 13 #include <dt-bindings/gpio/gpio.h> 14 #include <dt-bindings/interrupt-controller/irq.h> 31 fin_pll: oscillator-0 { 32 compatible = "fixed-clock"; 33 clock-frequency = <12000000>; 34 clock-output-names = "fin_pll"; 35 #clock-cells = <0>; 38 xusbxti: oscillator-1 { [all …]
|
H A D | exynos5410-smdk5410.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 11 #include <dt-bindings/interrupt-controller/irq.h> 27 stdout-path = "serial2:115200n8"; 31 compatible = "fixed-clock"; 32 clock-frequency = <24000000>; 33 clock-output-names = "fin_pll"; 34 #clock-cells = <0>; 37 pmic_ap_clk: pmic-ap-clk { 39 compatible = "fixed-clock"; [all …]
|
/openbmc/u-boot/drivers/usb/musb/ |
H A D | omap3.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * repository git.gitorious.org/u-boot-omap3/mainline.git, 8 * branch omap3-dev-usb, file drivers/usb/host/omap3530_usb.c 12 * ------------------------------------------------------------------------ 16 * ------------------------------------------------------------------------ 56 /* OMAP4430 has an internal PHY, use it */ 70 l = readl(&otg->revision); in musb_db_otg_regs() 72 l = readl(&otg->sysconfig); in musb_db_otg_regs() 74 l = readl(&otg->sysstatus); in musb_db_otg_regs() 76 l = readl(&otg->interfsel); in musb_db_otg_regs() [all …]
|
/openbmc/linux/Documentation/networking/device_drivers/ethernet/stmicro/ |
H A D | stmmac.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 13 - In This Release 14 - Feature List 15 - Kernel Configuration 16 - Command Line Parameters 17 - Driver Information and Notes 18 - Debug Information 19 - Support 33 (and older) and DesignWare(R) Cores Ethernet Quality-of-Service version 4.0 35 DesignWare(R) Cores XGMAC - 10G Ethernet MAC and DesignWare(R) Cores [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/ |
H A D | sky2.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 30 /* Yukon-2 */ 32 PCI_Y2_PIG_ENA = 1<<31, /* Enable Plug-in-Go (YUKON-2) */ 33 PCI_Y2_DLL_DIS = 1<<30, /* Disable PCI DLL (YUKON-2) */ 34 PCI_SW_PWR_ON_RST= 1<<30, /* SW Power on Reset (Yukon-EX) */ 35 PCI_Y2_PHY2_COMA = 1<<29, /* Set PHY 2 to Coma Mode (YUKON-2) */ 36 PCI_Y2_PHY1_COMA = 1<<28, /* Set PHY 1 to Coma Mode (YUKON-2) */ 37 PCI_Y2_PHY2_POWD = 1<<27, /* Set PHY 2 to Power Down (YUKON-2) */ 38 PCI_Y2_PHY1_POWD = 1<<26, /* Set PHY 1 to Power Down (YUKON-2) */ 44 PCI_FORCE_PEX_L1 = 1<<5, /* Force to PEX L1 */ [all …]
|
/openbmc/linux/drivers/mmc/host/ |
H A D | sdhci-xenon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Date: 2016-8-24 22 #include "sdhci-pltfm.h" 23 #include "sdhci-xenon.h" 42 dev_err(mmc_dev(host->mmc), "Internal clock never stabilised.\n"); in xenon_enable_internal_clk() 43 return -ETIMEDOUT; in xenon_enable_internal_clk() 51 /* Set SDCLK-off-while-idle */ 92 host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY; in xenon_enable_sdhc() 94 * Force to clear BUS_TEST to in xenon_enable_sdhc() 97 host->mmc->caps &= ~MMC_CAP_BUS_WIDTH_TEST; in xenon_enable_sdhc() [all …]
|
/openbmc/linux/drivers/net/phy/ |
H A D | bcm7xxx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Broadcom BCM7xxx internal transceivers support. 5 * Copyright (C) 2014-2017 Broadcom 9 #include <linux/phy.h> 11 #include "bcm-phy-lib.h" 17 /* Broadcom BCM7xxx internal PHY registers */ 58 /* AFE_RXCONFIG_2, set rCal offset for HT=0 code and LT=-2 code */ in bcm7xxx_28nm_d0_afe_config_init() 73 /* AFE_HPF_TRIM_OTHERS, set 100Tx/10BT to -4.5% swing and set rCal in bcm7xxx_28nm_d0_afe_config_init() 78 /* CORE_BASE1E, force trim to overwrite and set I_ext trim to 0000 */ in bcm7xxx_28nm_d0_afe_config_init() 101 /* AFE_HPF_TRIM_OTHERS, set 100Tx/10BT to -4.5% swing and set rCal in bcm7xxx_28nm_e0_plus_afe_config_init() [all …]
|
H A D | dp83867.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Driver for the Texas Instruments DP83867 PHY 12 #include <linux/phy.h> 17 #include <linux/nvmem-consumer.h> 19 #include <dt-bindings/net/ti-dp83867.h> 102 /* PHY CTRL bits */ 127 /* PHY STS bits */ 194 struct net_device *ndev = phydev->attached_dev; in dp83867_set_wol() 201 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol() 206 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 7 * e1000e_get_bus_info_pcie - Get PCIe bus information 16 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() 17 struct e1000_bus_info *bus = &hw->bus; in e1000e_get_bus_info_pcie() 18 struct e1000_adapter *adapter = hw->adapter; in e1000e_get_bus_info_pcie() 21 cap_offset = adapter->pdev->pcie_cap; in e1000e_get_bus_info_pcie() 23 bus->width = e1000_bus_width_unknown; in e1000e_get_bus_info_pcie() 25 pci_read_config_word(adapter->pdev, in e1000e_get_bus_info_pcie() 28 bus->width = (enum e1000_bus_width)((pcie_link_status & in e1000e_get_bus_info_pcie() [all …]
|
/openbmc/linux/drivers/net/dsa/ |
H A D | mv88e6060.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * net/dsa/mv88e6060.c - Driver for Marvell 88e6060 switch chips 4 * Copyright (c) 2008-2009 Marvell Semiconductor 13 #include <linux/phy.h> 19 return mdiobus_read_nested(priv->bus, priv->sw_addr + addr, reg); in reg_read() 24 return mdiobus_write_nested(priv->bus, priv->sw_addr + addr, reg, val); in reg_write() 92 return -ETIMEDOUT; in mv88e6060_switch_reset() 121 if (dsa_is_unused_port(priv->ds, p)) in mv88e6060_setup_port() 124 /* Do not force flow control, disable Ingress and Egress in mv88e6060_setup_port() 130 dsa_is_cpu_port(priv->ds, p) ? in mv88e6060_setup_port() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/memory-controllers/ |
H A D | exynos-srom.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/exynos-srom.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 19 - const: samsung,exynos4210-srom 24 "#address-cells": 27 "#size-cells": 35 <bank-number> 0 <parent address of bank> <size> 39 "^.*@[0-3],[a-f0-9]+$": [all …]
|
/openbmc/linux/drivers/phy/amlogic/ |
H A D | phy-meson-axg-mipi-dphy.c | 1 // SPDX-License-Identifier: GPL-2.0 20 #include <linux/phy/phy.h> 23 /* [31] soft reset for the phy. 44 * [3] force data byte lane in stop mode. 45 * [2] force data byte lane 0 in receiver mode. 46 * [1] write 1 to sync the txclkesc input. the internal logic have to 172 struct phy *analog; 183 static int phy_meson_axg_mipi_dphy_init(struct phy *phy) in phy_meson_axg_mipi_dphy_init() argument 185 struct phy_meson_axg_mipi_dphy_priv *priv = phy_get_drvdata(phy); in phy_meson_axg_mipi_dphy_init() 188 ret = phy_init(priv->analog); in phy_meson_axg_mipi_dphy_init() [all …]
|
/openbmc/u-boot/drivers/usb/eth/ |
H A D | lan75xx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 43 /* Only internal phy */ in lan75xx_phy_gig_workaround() 44 /* Set the phy in Gig loopback */ in lan75xx_phy_gig_workaround() 45 lan7x_mdio_write(udev, dev->phy_id, MII_BMCR, in lan75xx_phy_gig_workaround() 50 dev->phy_id, MII_BMSR, BMSR_LSTATUS, in lan75xx_phy_gig_workaround() 55 /* phy reset */ in lan75xx_phy_gig_workaround() 77 /* No multicast in u-boot */ in lan75xx_set_receive_filter() 121 priv->chipid = (val & ID_REV_CHIP_ID_MASK) >> 16; in lan75xx_basic_reset() 135 unsigned char *enetaddr = pdata->enetaddr; in lan75xx_write_hwaddr() 167 struct ueth_data *ueth = &priv->ueth; in lan75xx_eth_start() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mmc/ |
H A D | arasan,sdhci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Adrian Hunter <adrian.hunter@intel.com> 13 - $ref: mmc-controller.yaml# 14 - if: 18 const: arasan,sdhci-5.1 21 - phys 22 - phy-names 23 - if: [all …]
|
/openbmc/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | chip.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Marvell 88E6xxx Ethernet switch single-chip definition 16 #include <linux/phy.h> 28 /* PVT limits for 4-bit port and 5-bit switch */ 110 * enum mv88e6xxx_edsa_support - Ethertype DSA tag support level 149 * ports 2-4 are not routet to pins. 152 /* Multi-chip Addressing Mode. 154 * when it is non-zero, and use indirect access to internal registers. 157 /* Dual-chip Addressing Mode 174 /* Internal PHY start index. 0 means that internal PHYs range starts at [all …]
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-sun8i.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * dwmac-sun8i.c - Allwinner sun8i DWMAC specific glue layer 11 #include <linux/mdio-mux.h> 18 #include <linux/phy.h> 28 /* General notes on dwmac-sun8i: 33 /* struct emac_variant - Describe dwmac-sun8i hardware variant 39 * @soc_has_internal_phy: Does the MAC embed an internal PHY 61 /* struct sunxi_priv_data - hold all sunxi private data 62 * @ephy_clk: reference to the optional EPHY clock for the internal PHY 64 * @rst_ephy: reference to the optional EPHY reset for the internal PHY [all …]
|
/openbmc/linux/drivers/usb/dwc2/ |
H A D | core.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * core.c - DesignWare HS OTG Controller common routines 5 * Copyright (C) 2004-2013 Synopsys, Inc. 18 #include <linux/dma-mapping.h> 31 * dwc2_backup_global_registers() - Backup global controller registers. 41 dev_dbg(hsotg->dev, "%s\n", __func__); in dwc2_backup_global_registers() 44 gr = &hsotg->gr_backup; in dwc2_backup_global_registers() 46 gr->gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_backup_global_registers() 47 gr->gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_backup_global_registers() 48 gr->gahbcfg = dwc2_readl(hsotg, GAHBCFG); in dwc2_backup_global_registers() [all …]
|