/openbmc/linux/include/uapi/linux/ |
H A D | mii.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * linux/mii.h: definitions for MII-compatible transceivers 23 #define MII_CTRL1000 0x09 /* 1000BASE-T control */ 24 #define MII_STAT1000 0x0a /* 1000BASE-T status */ 30 #define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ 42 #define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */ 55 #define BMSR_ERCAP 0x0001 /* Ext-reg capability */ 58 #define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ 60 #define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ 63 #define BMSR_100HALF2 0x0200 /* Can do 100BASE-T2 HDX */ [all …]
|
H A D | mdio.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 4 * Copyright 2006-2009 Solarflare Communications Inc. 25 #define MDIO_MMD_AN 7 /* Auto-Negotiation */ 45 #define MDIO_AN_ADVERTISE 16 /* AN advertising (base page) */ 46 #define MDIO_AN_LPA 19 /* AN LP abilities (base page) */ 58 /* Media-dependent registers. */ 59 #define MDIO_PMA_10GBT_SWAPPOL 130 /* 10GBASE-T pair swap & polarity */ 60 #define MDIO_PMA_10GBT_TXPWR 131 /* 10GBASE-T TX power control */ 61 #define MDIO_PMA_10GBT_SNR 133 /* 10GBASE-T SNR margin, lane A. 62 * Lanes B-D are numbered 134-136. */ [all …]
|
/openbmc/u-boot/include/linux/ |
H A D | mii.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * linux/mii.h: definitions for MII-compatible transceivers 20 #define MII_CTRL1000 0x09 /* 1000BASE-T control */ 21 #define MII_STAT1000 0x0a /* 1000BASE-T status */ 27 #define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ 39 #define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */ 52 #define BMSR_ERCAP 0x0001 /* Ext-reg capability */ 55 #define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ 57 #define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ 60 #define BMSR_100HALF2 0x0200 /* Can do 100BASE-T2 HDX */ [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/phy/ |
H A D | microchip,sparx5-serdes.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/phy/microchip,sparx5-serdes.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Steen Hegelund <steen.hegelund@microchip.com> 21 * Rx built-in fault detector (loss-of-lock/loss-of-signal) 22 * Adjustable tx de-emphasis (FFE) 31 The SERDES6G is a high-speed SERDES interface, which can operate at 34 * 100 Mbps (100BASE-FX) 35 * 1.25 Gbps (SGMII/1000BASE-X/1000BASE-KX) [all …]
|
/openbmc/u-boot/common/ |
H A D | miiphyutil.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * This provides a bit-banged interface to the ethernet MII management 50 if (strcmp(dev->name, devname) == 0) in miiphy_get_dev_by_name() 78 INIT_LIST_HEAD(&bus->link); in mdio_alloc() 90 if (!bus || !bus->read || !bus->write) in mdio_register() 91 return -1; in mdio_register() 94 if (miiphy_get_dev_by_name(bus->name)) { in mdio_register() 96 bus->name); in mdio_register() 97 return -1; in mdio_register() 101 list_add_tail(&bus->link, &mii_devs); in mdio_register() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 204.out | 4 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=134217728 6 128 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 7 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base backi… 9 110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 11 == constrained alignment and max-transfer == 12 wrote 131072/131072 bytes at offset 1000 13 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 14 read 131072/131072 bytes at offset 1000 15 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 17 == write zero with constrained max-transfer == [all …]
|
H A D | 177.out | 4 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=134217728 6 128 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 7 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base backi… 9 128 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 11 == constrained alignment and max-transfer == 12 wrote 131072/131072 bytes at offset 1000 13 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 14 read 131072/131072 bytes at offset 1000 15 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 17 == write zero with constrained max-transfer == [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | mv88e1xxx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 #define MII_GBCR 9 /* 1000Base-T control register */ 19 #define MII_GBSR 10 /* 1000Base-T status register */ 21 /* 1000Base-T control register fields */ 28 /* 1000Base-T status register fields */ 72 #define V_PSCR_MDI_XOVER_MODE(x) ((x) << S_PSCR_MDI_XOVER_MODE) argument 73 #define G_PSCR_MDI_XOVER_MODE(x) (((x) >> S_PSCR_MDI_XOVER_MODE) & M_PSCR_MDI_XOVER_MODE) argument 81 #define V_DOWNSHIFT_CNT(x) ((x) << S_DOWNSHIFT_CNT) argument 82 #define G_DOWNSHIFT_CNT(x) (((x) >> S_DOWNSHIFT_CNT) & M_DOWNSHIFT_CNT) argument 108 #define V_PSSR_CABLE_LEN(x) ((x) << S_PSSR_CABLE_LEN) argument [all …]
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | netcp_sgmii.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Sandeep Paulraj <s-paulraj@ti.com> 8 * Wingman Kwok <w-kwok2@ti.com> 22 #define SGMII23_OFFSET(x) ((x - 2) * 0x100) argument 23 #define SGMII_OFFSET(x) ((x <= 1) ? (x * 0x100) : (SGMII23_OFFSET(x))) argument 26 #define SGMII_SRESET_REG(x) (SGMII_OFFSET(x) + 0x004) argument 27 #define SGMII_CTL_REG(x) (SGMII_OFFSET(x) + 0x010) argument 28 #define SGMII_STATUS_REG(x) (SGMII_OFFSET(x) + 0x014) argument 29 #define SGMII_MRADV_REG(x) (SGMII_OFFSET(x) + 0x018) argument 31 static void sgmii_write_reg(void __iomem *base, int reg, u32 val) in sgmii_write_reg() argument [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | ti,dp83869.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - $ref: ethernet-phy.yaml# 14 - Andrew Davis <afd@ti.com> 17 The DP83869HM device is a robust, fully-featured Gigabit (PHY) transceiver 18 with integrated PMD sublayers that supports 10BASE-Te, 100BASE-TX and 19 1000BASE-T Ethernet protocols. The DP83869 also supports 1000BASE-X and 20 100BASE-FX Fiber protocols. 23 the DP83869HM can run 1000BASE-X-to-1000BASE-T and 100BASE-FX-to-100BASE-TX [all …]
|
/openbmc/u-boot/drivers/ram/stm32mp1/ |
H A D | stm32mp1_ram.c | 1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved 32 ret = clk_get_by_name(priv->dev, clkname[idx], &clk); in stm32mp1_ddr_clk_enable() 43 priv->clk = clk; in stm32mp1_ddr_clk_enable() 44 ddrphy_clk = clk_get_rate(&priv->clk); in stm32mp1_ddr_clk_enable() 47 mem_speed, (u32)(ddrphy_clk / 1000 / 1000)); in stm32mp1_ddr_clk_enable() 49 ddr_clk = abs(ddrphy_clk - mem_speed * 1000 * 1000); in stm32mp1_ddr_clk_enable() 50 if (ddr_clk > (mem_speed * 1000 * 100)) { in stm32mp1_ddr_clk_enable() 52 mem_speed, (u32)(ddrphy_clk / 1000 / 1000)); in stm32mp1_ddr_clk_enable() 53 return -EINVAL; in stm32mp1_ddr_clk_enable() [all …]
|
/openbmc/linux/drivers/cpufreq/ |
H A D | armada-37xx-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Gregory CLEMENT <gregory.clement@free-electrons.com> 24 #include "cpufreq-dt.h" 64 #define ARMADA_37XX_AVS_VSET(x) (0x1C + 4 * (x)) argument 73 #define MIN_VOLT_MV 1000 109 /* {.cpu_freq_max = 1200*1000*1000, .divider = {1, 2, 4, 6} }, */ 110 {.cpu_freq_max = 1000*1000*1000, .divider = {1, 2, 4, 5} }, 111 {.cpu_freq_max = 800*1000*1000, .divider = {1, 2, 3, 4} }, 112 {.cpu_freq_max = 600*1000*1000, .divider = {2, 4, 5, 6} }, 132 static void __init armada37xx_cpufreq_dvfs_setup(struct regmap *base, in armada37xx_cpufreq_dvfs_setup() argument [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/vf/ |
H A D | vf610-zii-scu4-aib.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 // Copyright (C) 2016-2018 Zodiac Inflight Innovations 5 /dts-v1/; 10 compatible = "zii,vf610scu4-aib", "zii,vf610dev", "fsl,vf610"; 13 stdout-path = &uart0; 21 gpio-leds { 22 compatible = "gpio-leds"; 23 pinctrl-0 = <&pinctrl_leds_debug>; 24 pinctrl-names = "default"; 26 led-debug { [all …]
|
/openbmc/linux/drivers/net/ethernet/atheros/atlx/ |
H A D | atlx.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* atlx_hw.h -- common hardware definitions for Attansic network drivers 4 * Copyright(c) 2005 - 2006 Attansic Corporation. All rights reserved. 5 * Copyright(c) 2006 - 2007 Chris Snook <csnook@redhat.com> 6 * Copyright(c) 2006 - 2008 Jay Cliburn <jcliburn@gmail.com> 10 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. 26 #define SPEED_1000 1000 149 /* IRQ Anti-Lost Timer Initial Value Register */ 228 /* MAC Half-Duplex Control Register */ 246 /* Wake-On-Lan control register */ [all …]
|
/openbmc/linux/drivers/net/phy/ |
H A D | sfp-bus.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * struct sfp_bus - internal representation of a sfp bus 36 * sfp_parse_port() - Parse the EEPROM base ID, setting the port type 43 * %PORT_TP, %PORT_FIBRE or %PORT_OTHER. If @support is non-%NULL, 55 switch (id->base.connector) { in sfp_parse_port() 76 if (id->base.e1000_base_t) { in sfp_parse_port() 88 dev_warn(bus->sfp_dev, "SFP: unknown connector id 0x%02x\n", in sfp_parse_port() 89 id->base.connector); in sfp_parse_port() 111 * sfp_may_have_phy() - indicate whether the module may have a PHY 120 if (id->base.e1000_base_t) in sfp_may_have_phy() [all …]
|
H A D | marvell-88x2222.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Marvell 88x2222 dual-port multi-speed ethernet transceiver. 7 * 1000Base-X or 10GBase-R on the line side. 8 * SGMII over 1000Base-X. 38 /* 1000Base-X/SGMII Control Register */ 41 /* 1000BASE-X/SGMII Status Register */ 44 /* 1000Base-X Auto-Negotiation Advertisement Register */ 47 /* 1000Base-X PHY Specific Status Register */ 112 struct mv2222_data *priv = phydev->priv; in mv2222_set_sgmii_speed() 114 switch (phydev->speed) { in mv2222_set_sgmii_speed() [all …]
|
/openbmc/linux/drivers/pwm/ |
H A D | pwm-hibvt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #define PWM_CFG0_ADDR(x) (((x) * 0x20) + 0x0) argument 19 #define PWM_CFG1_ADDR(x) (((x) * 0x20) + 0x4) argument 20 #define PWM_CFG2_ADDR(x) (((x) * 0x20) + 0x8) argument 21 #define PWM_CTRL_ADDR(x) (((x) * 0x20) + 0xC) argument 38 void __iomem *base; member 71 static void hibvt_pwm_set_bits(void __iomem *base, u32 offset, in hibvt_pwm_set_bits() argument 74 void __iomem *address = base + offset; in hibvt_pwm_set_bits() 87 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), in hibvt_pwm_enable() 95 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), in hibvt_pwm_disable() [all …]
|
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_crtc.c | 1 // SPDX-License-Identifier: GPL-2.0 30 for_each_new_connector_in_state(crtc_st->state, conn, conn_st, i) { in komeda_crtc_get_color_config() 31 if (conn_st->crtc != crtc_st->crtc) in komeda_crtc_get_color_config() 34 conn_bpc = conn->display_info.bpc ? conn->display_info.bpc : 8; in komeda_crtc_get_color_config() 35 conn_color_formats &= conn->display_info.color_formats; in komeda_crtc_get_color_config() 53 if (!kcrtc_st->base.active) { in komeda_crtc_update_clock_ratio() 54 kcrtc_st->clock_ratio = 0; in komeda_crtc_update_clock_ratio() 58 pxlclk = kcrtc_st->base.adjusted_mode.crtc_clock * 1000ULL; in komeda_crtc_update_clock_ratio() 61 kcrtc_st->clock_ratio = div64_u64(aclk << 32, pxlclk); in komeda_crtc_update_clock_ratio() 65 * komeda_crtc_atomic_check - build display output data flow [all …]
|
/openbmc/linux/drivers/scsi/pcmcia/ |
H A D | nsp_cs.c | 3 NinjaSCSI-3 / NinjaSCSI-32Bi PCMCIA SCSI host adapter card driver 21 I-O DATA PCSC-F (Workbit NinjaSCSI-3) 22 "WBT", "NinjaSCSI-3", "R1.0" 23 I-O DATA CBSC-II (Workbit NinjaSCSI-32Bi in 16bit mode) 56 MODULE_DESCRIPTION("WorkBit NinjaSCSI-3 / NinjaSCSI-32Bi(16bit) PCMCIA SCSI host adapter module"); 81 .name = "WorkBit NinjaSCSI-3/32Bi(16bit)", 90 .dma_boundary = PAGE_SIZE - 1, 94 static nsp_hw_data nsp_data_base; /* attach <-> detect glue */ 169 printk("nsp_cs-debug: 0x%x %s (%d): %s\n", mask, func, line, buf); in nsp_cs_dmessage() 178 * You must be set SCpnt->result before call this function. [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_utils.h | 43 #define FDO_BUG_URL "https://gitlab.freedesktop.org/drm/intel/-/wikis/How-to-file-i915-bugs" 45 #define MISSING_CASE(x) WARN(1, "Missing case (%s == %ld)\n", \ argument 46 __stringify(x), (long)(x)) 70 #define i915_inject_probe_failure(i915) i915_inject_probe_error((i915), -ENODEV) 96 start__ >= max__ || size__ > max__ - start__; \ 108 start__ > max__ || size__ > max__ - start__; \ 116 (typeof(ptr))(__v & -BIT(n)); \ 119 #define ptr_unmask_bits(ptr, n) ((unsigned long)(ptr) & (BIT(n) - 1)) 123 *(bits) = __v & (BIT(n) - 1); \ 124 (typeof(ptr))(__v & -BIT(n)); \ [all …]
|
/openbmc/u-boot/arch/arm/mach-omap2/ |
H A D | clocks-common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 49 * due to hw issue. So, use hard-coded value. If this value is not in __get_sys_clk_index() 50 * correct for any board over-ride this function in board file in __get_sys_clk_index() 57 /* SYS_CLKSEL - 1 to match the dpll param array indices */ in __get_sys_clk_index() 58 ind = (readl((*prcm)->cm_sys_clksel) & in __get_sys_clk_index() 59 CM_SYS_CLKSEL_SYS_CLKSEL_MASK) - 1; in __get_sys_clk_index() 73 void setup_post_dividers(u32 const base, const struct dpll_params *params) in setup_post_dividers() argument 75 struct dpll_regs *const dpll_regs = (struct dpll_regs *)base; in setup_post_dividers() 77 /* Setup post-dividers */ in setup_post_dividers() 78 if (params->m2 >= 0) in setup_post_dividers() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | rs690.c | 42 for (i = 0; i < rdev->usec_timeout; i++) { in rs690_mc_wait_for_idle() 49 return -1; in rs690_mc_wait_for_idle() 74 if (atom_parse_data_header(rdev->mode_info.atom_context, index, NULL, in rs690_pm_info() 76 info = (union igp_info *)(rdev->mode_info.atom_context->bios + data_offset); in rs690_pm_info() 82 rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info.ulBootUpMemoryClock)); in rs690_pm_info() 83 rdev->pm.igp_sideport_mclk.full = dfixed_div(rdev->pm.igp_sideport_mclk, tmp); in rs690_pm_info() 84 if (le16_to_cpu(info->info.usK8MemoryClock)) in rs690_pm_info() 85 rdev->pm.igp_system_mclk.full = dfixed_const(le16_to_cpu(info->info.usK8MemoryClock)); in rs690_pm_info() 86 else if (rdev->clock.default_mclk) { in rs690_pm_info() 87 rdev->pm.igp_system_mclk.full = dfixed_const(rdev->clock.default_mclk); in rs690_pm_info() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
H A D | auxg94.c | 24 #define g94_i2c_aux(p) container_of((p), struct g94_i2c_aux, base) 28 struct nvkm_i2c_aux base; member 35 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in g94_i2c_aux_fini() 36 nvkm_mask(device, 0x00e4e4 + (aux->ch * 0x50), 0x00310000, 0x00000000); in g94_i2c_aux_fini() 42 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in g94_i2c_aux_init() 49 timeout = 1000; in g94_i2c_aux_init() 51 ctrl = nvkm_rd32(device, 0x00e4e4 + (aux->ch * 0x50)); in g94_i2c_aux_init() 53 if (!timeout--) { in g94_i2c_aux_init() 54 AUX_ERR(&aux->base, "begin idle timeout %08x", ctrl); in g94_i2c_aux_init() 55 return -EBUSY; in g94_i2c_aux_init() [all …]
|
H A D | auxgm200.c | 24 #define gm200_i2c_aux(p) container_of((p), struct gm200_i2c_aux, base) 28 struct nvkm_i2c_aux base; member 35 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in gm200_i2c_aux_fini() 36 nvkm_mask(device, 0x00d954 + (aux->ch * 0x50), 0x00710000, 0x00000000); in gm200_i2c_aux_fini() 42 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in gm200_i2c_aux_init() 49 timeout = 1000; in gm200_i2c_aux_init() 51 ctrl = nvkm_rd32(device, 0x00d954 + (aux->ch * 0x50)); in gm200_i2c_aux_init() 53 if (!timeout--) { in gm200_i2c_aux_init() 54 AUX_ERR(&aux->base, "begin idle timeout %08x", ctrl); in gm200_i2c_aux_init() 55 return -EBUSY; in gm200_i2c_aux_init() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-mt7621.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/i2c/busses/i2c-mt7621.c 9 * Improve driver for i2cdetect from i2c-tools to detect i2c devices on the bus. 48 #define SM0CTL1_PGLEN(x) ((((x) - 1) << 8) & SM0CTL1_PGLEN_MASK) argument 58 #define TIMEOUT_MS 1000 61 void __iomem *base; member 75 ret = readl_relaxed_poll_timeout(i2c->base + REG_SM0CTL1_REG, in mtk_i2c_wait_idle() 77 10, TIMEOUT_MS * 1000); in mtk_i2c_wait_idle() 79 dev_dbg(i2c->dev, "idle err(%d)\n", ret); in mtk_i2c_wait_idle() 88 ret = device_reset(i2c->adap.dev.parent); in mtk_i2c_reset() [all …]
|