/openbmc/u-boot/drivers/spi/ |
H A D | pl022_spi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 45 /* SSP Control Register 0 - SSP_CR0 */ 48 #define SSP_CR0_BIT_MODE(x) ((x) - 1) 54 /* SSP Control Register 1 - SSP_CR1 */ 61 /* SSP Status Register - SSP_SR */ 78 static int pl022_is_supported(struct pl022_spi_slave *ps) in pl022_is_supported() argument 81 if ((readw(ps->base + SSP_PID0) == 0x22) && in pl022_is_supported() 82 (readw(ps->base + SSP_PID1) == 0x10) && in pl022_is_supported() 83 ((readw(ps->base + SSP_PID2) & 0xf) == 0x04) && in pl022_is_supported() 84 (readw(ps->base + SSP_PID3) == 0x00)) in pl022_is_supported() [all …]
|
/openbmc/u-boot/drivers/net/phy/ |
H A D | micrel_ksz90x1.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright 2010-2011 Freescale Semiconductor, Inc. 18 * KSZ9021 - KSZ9031 common 52 phydev->duplex = DUPLEX_FULL; in ksz90xx_startup() 54 phydev->duplex = DUPLEX_HALF; in ksz90xx_startup() 57 phydev->speed = SPEED_1000; in ksz90xx_startup() 59 phydev->speed = SPEED_100; in ksz90xx_startup() 61 phydev->speed = SPEED_10; in ksz90xx_startup() 82 { "rxd0-skew-ps", 4, 0, 0x7 }, { "rxd1-skew-ps", 4, 4, 0x7 }, 83 { "rxd2-skew-ps", 4, 8, 0x7 }, { "rxd3-skew-ps", 4, 12, 0x7 } [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/dsa/ |
H A D | microchip,lan937x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - UNGLinuxDriver@microchip.com 13 - $ref: dsa.yaml#/$defs/ethernet-ports 18 - microchip,lan9370 19 - microchip,lan9371 20 - microchip,lan9372 21 - microchip,lan9373 22 - microchip,lan9374 [all …]
|
H A D | nxp,sja1105.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 The SJA1105 SPI interface requires a CS-to-CLK time (t2 in UM10944.pdf) of at 16 - Vladimir Oltean <vladimir.oltean@nxp.com> 21 - nxp,sja1105e 22 - nxp,sja1105t 23 - nxp,sja1105p 24 - nxp,sja1105q 25 - nxp,sja1105r [all …]
|
H A D | realtek.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - $ref: dsa.yaml#/$defs/ethernet-ports 13 - Linus Walleij <linus.walleij@linaro.org> 20 The SMI "Simple Management Interface" is a two-wire protocol using 21 bit-banged GPIO that while it reuses the MDIO lines MCK and MDIO does 23 SMI-based Realtek devices. The realtek-smi driver is a platform driver 26 The MDIO-connected switches use MDIO protocol to access their registers. 27 The realtek-mdio driver is an MDIO driver and it must be inserted inside [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6q-mba6.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2013-2021 TQ-Systems GmbH 6 * Author: Markus Niebel <Markus.Niebel@tq-group.com> 10 pinctrl-names = "default"; 11 pinctrl-0 = <&pinctrl_ecspi5_mba6x>; 12 cs-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; 16 rxdv-skew-ps = <180>; 17 txen-skew-ps = <120>; 18 rxd3-skew-ps = <180>; 19 rxd2-skew-ps = <180>; [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | ehci-sched.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (c) 2001-2004 by David Brownell 4 * Copyright (c) 2003 Michal Sojka, for high-speed iso transfers 7 /* this file is part of ehci-hcd.c */ 9 /*-------------------------------------------------------------------------*/ 21 * pre-calculated schedule data to make appending to the queue be quick. 27 * periodic_next_shadow - return "next" pointer on shadow list 37 return &periodic->qh->qh_next; in periodic_next_shadow() 39 return &periodic->fstn->fstn_next; in periodic_next_shadow() 41 return &periodic->itd->itd_next; in periodic_next_shadow() [all …]
|
H A D | ehci-q.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2001-2004 by David Brownell 6 /* this file is part of ehci-hcd.c */ 8 /*-------------------------------------------------------------------------*/ 14 * entries describing USB transactions, max 16-20kB/entry (with 4kB-aligned 20 * an ongoing challenge. That's in "ehci-sched.c". 25 * buffer low/full speed data so the host collects it at high speed. 28 /*-------------------------------------------------------------------------*/ 30 /* PID Codes that are used here, from EHCI specification, Table 3-16. */ 45 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() [all …]
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | stm32mp15xx-dhcor-avenger96.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 3 * Copyright (C) Linaro Ltd 2019 - All Rights Reserved 9 #include "stm32mp15xx-dhcor-io1v8.dtsi" 22 cec_clock: clk-cec-fixed { 23 #clock-cells = <0>; 24 compatible = "fixed-clock"; 25 clock-frequency = <24000000>; 29 stdout-path = "serial0:115200n8"; 32 hdmi-out { 33 compatible = "hdmi-connector"; [all …]
|
H A D | stm32mp15xx-dhcor-testbench.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 17 stdout-path = "serial0:115200n8"; 20 sd_switch: regulator-sd_switch { 21 compatible = "regulator-gpio"; 22 regulator-name = "sd_switch"; 23 regulator-min-microvolt = <1800000>; 24 regulator-max-microvolt = <2900000>; 25 regulator-type = "voltage"; 26 regulator-always-on; 29 gpios-states = <0>; [all …]
|
/openbmc/linux/drivers/usb/serial/ |
H A D | ch341.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright 2007, Frank A Kingswood <frank@kingswood-consulting.co.uk> 4 * Copyright 2007, Werner Cornelius <werner@cornelius-consult.de> 10 * serial port, an IEEE-1284 parallel printer port or a memory-like 27 /* flags for IO-Bits */ 51 /* Break support - the information used to implement this was gleaned from 116 dev_dbg(&dev->dev, "%s - (%02x,%04x,%04x)\n", __func__, in ch341_control_out() 123 dev_err(&dev->dev, "failed to send control message: %d\n", r); in ch341_control_out() 134 dev_dbg(&dev->dev, "%s - (%02x,%04x,%04x,%u)\n", __func__, in ch341_control_in() 142 dev_err(&dev->dev, "failed to receive control message: %d\n", in ch341_control_in() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mp-dhcom-pdk2.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 * DHCM-iMX8ML8-C160-R409-F1638-SPI16-GE-CAN2-SD-RTC-WBTA-ADC-T-RGB-CSI2-HS-I-01D2 7 * DHCOM PCB number: 660-100 or newer 8 * PDK2 PCB number: 516-400 or newer 11 /dts-v1/; 13 #include <dt-bindings/leds/common.h> 14 #include <dt-bindings/phy/phy-imx8-pcie.h> 15 #include "imx8mp-dhcom-som.dtsi" 19 compatible = "dh,imx8mp-dhcom-pdk2", "dh,imx8mp-dhcom-som", 23 stdout-path = &uart1; [all …]
|
H A D | fsl-lx2160a-bluebox3.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 // Copyright 2020-2021 NXP 7 /dts-v1/; 9 #include "fsl-lx2160a.dtsi" 13 compatible = "fsl,lx2160a-bluebox3", "fsl,lx2160a"; 23 stdout-path = "serial0:115200n8"; 26 sb_3v3: regulator-sb3v3 { 27 compatible = "regulator-fixed"; 28 regulator-name = "MC34717-3.3VSB"; 29 regulator-min-microvolt = <3300000>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | motorcomm,yt8xxx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Frank Sae <frank.sae@motor-comm.com> 13 - $ref: ethernet-phy.yaml# 18 - ethernet-phy-id4f51.e91a 19 - ethernet-phy-id4f51.e91b 21 rx-internal-delay-ps: 24 internal delay (phy-mode is 'rgmii-id' or 'rgmii-rxid') in pico-seconds. 30 tx-internal-delay-ps: [all …]
|
H A D | ethernet-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/net/ethernet-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - David S. Miller <davem@davemloft.net> 20 local-mac-address: 23 $ref: /schemas/types.yaml#/definitions/uint8-array 27 mac-address: 32 local-mac-address property. 33 $ref: /schemas/types.yaml#/definitions/uint8-array [all …]
|
/openbmc/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm47094-asus-rt-ac88u.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 8 #include "bcm47094-asus-rt-ac3100.dtsi" 11 compatible = "asus,rt-ac88u", "brcm,bcm47094", "brcm,bcm4708"; 12 model = "ASUS RT-AC88U"; 22 mdc-gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>; 23 mdio-gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>; 24 reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; 25 realtek,disable-leds; 29 #address-cells = <1>; [all …]
|
/openbmc/linux/include/linux/phy/ |
H A D | phy-mipi-dphy.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 * struct phy_configure_opts_mipi_dphy - MIPI D-PHY configuration set 13 * MIPI D-PHY phy. 20 * Clock transitions and disable the Clock Lane HS-RX. 22 * Maximum value: 60000 ps 34 * Minimum value: 60000 ps + 52 * @hs_clk_rate period in ps 53 * Lane LP-00 Line state immediately before the HS-0 Line 56 * Minimum value: 38000 ps 57 * Maximum value: 95000 ps 68 * Minimum value: 95000 ps [all …]
|
/openbmc/u-boot/drivers/ddr/fsl/ |
H A D | ddr3_dimm_params.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright 2008-2012 Freescale Semiconductor, Inc. 8 * JEDEC standard No.21-C 4_01_02_11R18.pdf 27 * SPD byte4 - sdram density and banks 37 * SPD byte8 - module memory bus width 44 * SPD byte7 - module organiztion 61 if ((spd->density_banks & 0xf) < 7) in compute_ranksize() 62 nbit_sdram_cap_bsize = (spd->density_banks & 0xf) + 28; in compute_ranksize() 63 if ((spd->bus_width & 0x7) < 4) in compute_ranksize() 64 nbit_primary_bus_width = (spd->bus_width & 0x7) + 3; in compute_ranksize() [all …]
|
H A D | lc_common_dimm_params.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright 2008-2016 Freescale Semiconductor, Inc. 4 * Copyright 2017-2018 NXP Semiconductor 39 if (mclk_ps < outpdimm->tckmin_x_ps) { in compute_cas_latency() 40 printf("DDR clock (MCLK cycle %u ps) is faster than " in compute_cas_latency() 41 "the slowest DIMM(s) (tCKmin %u ps) can support.\n", in compute_cas_latency() 42 mclk_ps, outpdimm->tckmin_x_ps); in compute_cas_latency() 45 if (mclk_ps > outpdimm->tckmax_ps) { in compute_cas_latency() 46 printf("DDR clock (MCLK cycle %u ps) is slower than DIMM(s) (tCKmax %u ps) can support.\n", in compute_cas_latency() 47 mclk_ps, outpdimm->tckmax_ps); in compute_cas_latency() [all …]
|
/openbmc/linux/drivers/net/ethernet/amd/ |
H A D | au1000_eth.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright 2001-2003, 2006 MontaVista Software Inc. 8 * Added ethtool/mii-tool support, 11 * or riemer@riemer-nt.de: fixed the link beat detection with 14 * converted to use linux-2.6.x's PHY framework 22 #include <linux/dma-mapping.h> 67 #define DRV_DESC "Au1xxx on-chip Ethernet driver" 202 * make sure there's no out-of-order writes, and that all writes 207 * board-specific configurations 221 * needed in case of a dual-PHY accessible only through the MAC0's MII [all …]
|
/openbmc/u-boot/board/xes/xpedite537x/ |
H A D | ddr.c | 1 // SPDX-License-Identifier: GPL-2.0+ 20 * There are four board-specific SDRAM timing parameters which must be 23 * - TIMING_CFG_2 register 25 * chip-specific internal delays. 27 * - TIMING_CFG_2 register 33 * - DDR_SDRAM_CLK_CNTL register 36 * - TIMING_CFG_2 register 38 * Usually only needed with heavy load/very high speed (>DDR2-800) 40 * ====== XPedite5370 DDR2-600 read delay calculations ====== 43 * contains the chip-specific delays for 8548E, 8572, etc. [all …]
|
/openbmc/linux/drivers/usb/core/ |
H A D | devio.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * devio.c -- User space communication with USB devices. 7 * Copyright (C) 1999-2000 Thomas Sailer (sailer@ife.ee.ethz.ch) 18 * 30.09.2005 0.3 Fix user-triggerable oops in async URB delivery 19 * (CAN-2005-3055) 42 #include <linux/dma-mapping.h> 56 #define USB_SG_SIZE 16384 /* split-size for large txs */ 58 /* Mutual exclusion for ps->list in resume vs. release and remove */ 91 struct usb_dev_state *ps; member 96 struct usb_dev_state *ps; member [all …]
|
/openbmc/u-boot/arch/arm/mach-sunxi/ |
H A D | dram_sun9i.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (C) Copyright 2007-2015 10 * Philipp Tomsich <philipp.tomsich@theobroma-systems.com> 26 * Allwinner as part of the open-source bootloader release (refer to 27 * https://github.com/allwinner-zh/bootloader.git) and augments the upstream 36 * Note that the Zynq-documentation provides a very close match for the DDR 42 * (i.e. the rules for MEMC_FREQ_RATIO=2 from the Zynq-documentation apply). 48 * 1) Only DDR3 support is implemented, as our test platform (the A80-Q7 50 * 2) Only 2T-mode has been implemented and tested. 62 * The driver should be driven from a device-tree based configuration that [all …]
|
/openbmc/linux/drivers/net/dsa/ |
H A D | dsa_loop.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 37 struct dsa_loop_priv *ps = priv; in dsa_loop_devlink_vtu_get() local 41 for (i = 0; i < ARRAY_SIZE(ps->vlans); i++) { in dsa_loop_devlink_vtu_get() 42 vl = &ps->vlans[i]; in dsa_loop_devlink_vtu_get() 43 if (vl->members) in dsa_loop_devlink_vtu_get() 53 struct dsa_loop_priv *ps = ds->priv; in dsa_loop_setup_devlink_resources() local 56 devlink_resource_size_params_init(&size_params, ARRAY_SIZE(ps->vlans), in dsa_loop_setup_devlink_resources() 57 ARRAY_SIZE(ps->vlans), in dsa_loop_setup_devlink_resources() 60 err = dsa_devlink_resource_register(ds, "VTU", ARRAY_SIZE(ps->vlans), in dsa_loop_setup_devlink_resources() 69 dsa_loop_devlink_vtu_get, ps); in dsa_loop_setup_devlink_resources() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_pm.c | 24 #include <linux/hwmon-sysfs.h> 61 int found_instance = -1; in radeon_pm_get_type_index() 63 for (i = 0; i < rdev->pm.num_power_states; i++) { in radeon_pm_get_type_index() 64 if (rdev->pm.power_state[i].type == ps_type) { in radeon_pm_get_type_index() 71 return rdev->pm.default_power_state_index; in radeon_pm_get_type_index() 76 if ((rdev->pm.pm_method == PM_METHOD_DPM) && rdev->pm.dpm_enabled) { in radeon_pm_acpi_event_handler() 77 mutex_lock(&rdev->pm.mutex); in radeon_pm_acpi_event_handler() 79 rdev->pm.dpm.ac_power = true; in radeon_pm_acpi_event_handler() 81 rdev->pm.dpm.ac_power = false; in radeon_pm_acpi_event_handler() 82 if (rdev->family == CHIP_ARUBA) { in radeon_pm_acpi_event_handler() [all …]
|