/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | eeprom.c | 1 // SPDX-License-Identifier: ISC 7 #include <linux/mtd/mtd.h> 8 #include <linux/mtd/partitions.h> 9 #include <linux/nvmem-consumer.h> 15 struct device_node *np = dev->dev->of_node; in mt76_get_of_eeprom_data() 19 data = of_get_property(np, "mediatek,eeprom-data", &size); in mt76_get_of_eeprom_data() 21 return -ENOENT; in mt76_get_of_eeprom_data() 24 return -EINVAL; in mt76_get_of_eeprom_data() 34 struct device_node *np = dev->dev->of_node; in mt76_get_of_epprom_from_mtd() 35 struct mtd_info *mtd; in mt76_get_of_epprom_from_mtd() local [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/wireless/ |
H A D | mediatek,mt76.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Felix Fietkau <nbd@nbd.name> 12 - Lorenzo Bianconi <lorenzo@kernel.org> 13 - Ryder Lee <ryder.lee@mediatek.com> 23 - $ref: ieee80211.yaml# 28 - mediatek,mt76 29 - mediatek,mt7628-wmac [all …]
|
/openbmc/linux/drivers/mtd/maps/ |
H A D | pismo.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * PISMO memory driver - http://www.pismoworld.org/ 14 #include <linux/mtd/physmap.h> 15 #include <linux/mtd/plat-ram.h> 16 #include <linux/mtd/pismo.h> 52 struct i2c_client *client = to_i2c_client(pdev->dev.parent); in pismo_set_vpp() 55 pismo->vpp(pismo->vpp_data, on); in pismo_set_vpp() 72 .addr = client->addr, in pismo_eeprom_read() 76 .addr = client->addr, in pismo_eeprom_read() 83 ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); in pismo_eeprom_read() [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 depends on MTD!=n 7 bool "Support non-linear mappings of flash chips" 21 with config options or at run-time. 79 bool "Baikal-T1 Boot ROMs OF-based physical memory map handling" 86 This provides some extra DT physmap parsing for the Baikal-T1 87 platforms, some detection and setting up ROMs-specific accessors. 90 bool "ARM Versatile OF-based physical memory map handling" 100 bool "Cortina Gemini OF-based physical memory map handling" 111 bool "Intel IXP4xx OF-based physical memory map handling" [all …]
|
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit/files/ |
H A D | gbs-sysinit.sh | 9 # http://www.apache.org/licenses/LICENSE-2.0 17 # shellcheck source=meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit/files/gbs-gpio-common.sh 18 source /usr/libexec/gbs-gpio-common.sh 34 # Clear bit 16-23 to perserve all GPIO states across warm resets 40 # Clear bit 16-23 of CORSTC 84 # 0x00 - EVT 85 # 0x01 - DVT 86 # 0x10 - PVT 87 # 0x11 - MP 118 sata_prsnt_n="$(busctl get-property $SERVICE_NAME ${SATA0_PRESENT_OBJPATH} \ [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt7601u/ |
H A D | eeprom.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/mtd/mtd.h> 9 #include <linux/mtd/partitions.h> 13 #include "eeprom.h" 47 return -ETIMEDOUT; in mt7601u_efuse_read() 51 /* Parts of eeprom not in the usage map (0x80-0xc0,0xf0) in mt7601u_efuse_read() 87 cnt_free = end - start + 1; in mt7601u_efuse_physical_size_check() 89 if (MT_EFUSE_USAGE_MAP_SIZE - cnt_free < 5) { in mt7601u_efuse_physical_size_check() 90 …dev_err(dev->dev, "Error: your device needs default EEPROM file and this driver doesn't support it… in mt7601u_efuse_physical_size_check() 91 return -EINVAL; in mt7601u_efuse_physical_size_check() [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 10 This driver supports 10-gigabit Ethernet cards based on 14 will be called sfc-falcon. 16 bool "Solarflare SFC4000 MTD support" 17 depends on SFC_FALCON && MTD && !(SFC_FALCON=y && MTD=m) 20 This exposes the on-board flash and/or EEPROM as MTD devices
|
H A D | falcon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2005-2006 Fen Systems Ltd. 5 * Copyright 2006-2013 Solarflare Communications Inc. 134 (*(u32 *)((efx)->stats_buffer.addr + XgDmaDone_offset)) 139 /* 48-bit stats are zero-padded to 64 on DMA */ \ 199 [0 ... BITS_TO_LONGS(FALCON_STAT_COUNT) - 1] = ~0UL, 216 #define SPI_STATUS_WPEN 0x80 /* Write-protect pin enabled */ 225 * Non-volatile memory layout 231 * 0-0x400 chip and board config (see struct falcon_nvconfig) 232 * 0x400-0x8000 unused (or may contain VPD if EEPROM not present) [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 9 This driver supports 10-gigabit Ethernet cards based on 13 will be called sfc-siena. 15 bool "Solarflare SFC9000-family MTD support" 16 depends on SFC_SIENA && MTD && !(SFC_SIENA=y && MTD=m) 19 This exposes the on-board flash and/or EEPROM as MTD devices 23 bool "Solarflare SFC9000-family hwmon support" 27 This exposes the on-board firmware-managed sensors as a 30 bool "Solarflare SFC9000-family SR-IOV support" 38 bool "Solarflare SFC9000-family MCDI logging support" [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
H A D | eeprom.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/mtd/mtd.h> 11 #include <linux/mtd/partitions.h> 15 #include "eeprom.h" 37 cnt_free = end - start + 1; in mt76x0_efuse_physical_size_check() 39 if (MT_EFUSE_USAGE_MAP_SIZE - cnt_free < 5) { in mt76x0_efuse_physical_size_check() 40 dev_err(dev->mt76.dev, in mt76x0_efuse_physical_size_check() 41 "driver does not support default EEPROM\n"); in mt76x0_efuse_physical_size_check() 42 return -EINVAL; in mt76x0_efuse_physical_size_check() 54 dev_dbg(dev->mt76.dev, "2GHz %d 5GHz %d\n", in mt76x0_set_chip_cap() [all …]
|
/openbmc/u-boot/cmd/ |
H A D | Kconfig | 4 bool "Support U-Boot commands" 7 Enable U-Boot's command-line functions. This provides a means 8 to enter commands into U-Boot for a wide variety of purposes. It 12 substantially to the size of U-Boot. 71 U-Boot automatic booting process and bring the device 72 to the U-Boot prompt for user input. 103 autoboot starts booting, U-Boot gives a command prompt. The 104 U-Boot prompt will time out if CONFIG_BOOT_RETRY_TIME is 116 U-Boot gives a command prompt. The U-Boot prompt never 120 bool "Enable Ctrl-C autoboot interruption" [all …]
|
/openbmc/openbmc/meta-fii/meta-mori/recipes-mori/mori-fw-utility/mori-fw/ |
H A D | mori-fw.sh | 4 # shellcheck source=meta-fii/meta-mori/recipes-mori/mori-fw-utility/mori-fw/mori-lib.sh 7 source /usr/libexec/mori-fw/mori-lib.sh 11 if [ ! -f "$1" ]; then 18 # write to the mtd device 19 BIOS_MTD=$(grep "hnor" /proc/mtd | sed -n 's/^\(.*\):.*/\1/p') 21 flock -x 200 23 if ! flashcp -v $1 /dev/${BIOS_MTD} ; then 36 if [ ! -s "$1" ]; then 47 flock -x 200 50 if ! mesg=$(loadsvf -d /dev/jtag0 -s $1 -m 0 2>&1) \ [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 20 tristate "Solarflare SFC9100/EF100-family support" 27 This driver supports 10/40-gigabit Ethernet cards based on 28 the Solarflare SFC9100-family controllers. 30 It also supports 10/25/40/100-gigabit Ethernet cards based 36 bool "Solarflare SFC9100-family MTD support" 37 depends on SFC && MTD && !(SFC=y && MTD=m) 40 This exposes the on-board flash and/or EEPROM as MTD devices 44 bool "Solarflare SFC9100-family hwmon support" 48 This exposes the on-board firmware-managed sensors as a [all …]
|
/openbmc/openbmc/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/ |
H A D | kudo-fw.sh | 4 # shellcheck source=meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-lib.sh 7 source /usr/libexec/kudo-fw/kudo-lib.sh 11 KERNEL_SYSFS_FIU="/sys/bus/platform/drivers/NPCM-FIU" 14 i2cset -y -f -a ${I2C_BMC_CPLD[0]} 0x${I2C_BMC_CPLD[1]} 0x10 0x01 17 if [ -d "${KERNEL_SYSFS_FIU}/${KERNEL_FIU_ID}" ]; then 23 # write to the mtd device 24 BIOS_MTD=$(grep "bios" /proc/mtd | sed -n 's/^\(.*\):.*/\1/p') 26 if [ ! -f "$1" ]; then 32 if [ "$(flashcp -v $1 /dev/${BIOS_MTD})" -ne 0 ]; then 39 if [ -d "${KERNEL_SYSFS_FIU}/${KERNEL_FIU_ID}" ]; then [all …]
|
/openbmc/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm53016-meraki-mr32.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 * Copyright (C) 2018-2020 Christian Lamparter <chunkeey@gmail.com> 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 13 #include <dt-bindings/leds/common.h> 33 compatible = "gpio-leds"; 39 panic-indicator; 49 compatible = "gpio-keys"; 51 button-restart { 58 pwm-leds { [all …]
|
/openbmc/u-boot/drivers/ |
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0+ 3 obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/ 4 obj-$(CONFIG_$(SPL_TPL_)DM) += core/ 5 obj-$(CONFIG_$(SPL_TPL_)DFU) += dfu/ 6 obj-$(CONFIG_$(SPL_TPL_)GPIO_SUPPORT) += gpio/ 7 obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/ sysreset/ firmware/ 8 obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/ 9 obj-$(CONFIG_$(SPL_TPL_)INPUT) += input/ 10 obj-$(CONFIG_$(SPL_TPL_)LED) += led/ 11 obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/ [all …]
|
/openbmc/u-boot/env/ |
H A D | Kconfig | 20 while U-Boot is running, but once U-Boot exits it will not be 21 stored. U-Boot will therefore always start up with a default 25 bool "Environment in EEPROM" 28 Use this if you have an EEPROM or similar serial access 31 - CONFIG_ENV_OFFSET: 32 - CONFIG_ENV_SIZE: 35 environment area within the total memory of your EEPROM. 41 - CONFIG_ENV_EEPROM_IS_ON_I2C 43 EEPROM, which holds the environment, is on the I2C bus. 45 - CONFIG_I2C_ENV_EEPROM_BUS [all …]
|
/openbmc/linux/drivers/nvmem/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 Support for NVMEM(Non Volatile Memory) devices like EEPROM, EFUSES... 37 calibration data required for the PCIe or the USB-C PHY. 40 be called nvmem-apple-efuses. 43 tristate "Broadcom On-Chip OTP Controller support" 52 will be called nvmem-bcm-ocotp. 72 will be called nvmem-imx-iim. 75 tristate "i.MX 6/7/8 On-Chip OTP Controller support" 79 This is a driver for the On-Chip OTP Controller (OCOTP) available on 80 i.MX6 SoCs, providing access to 4 Kbits of one-time programmable [all …]
|
/openbmc/u-boot/include/configs/km/ |
H A D | keymile-common.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * (C) Copyright 2008-2011 31 /* Support the IVM EEprom */ 66 "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_BOOT \ 75 "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_BOOT \ 77 "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_APP 79 "ubiattach=if test ${boot_bank} -eq 0; then; " \ 94 * - set 'subbootcmds' 95 * - set 'bootcmd' and 'altbootcmd' 97 * - 'release': for a standalone system kernel/rootfs from flash [all …]
|
/openbmc/linux/drivers/mtd/devices/ |
H A D | pmc551.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 * implements this PCI Ram device as an MTD (Memory Technology 49 * Most of the MTD code for this driver was originally written 50 * for the slram.o module in the MTD drivers package which 51 * allows the mapping of system memory into an MTD device. 93 #include <linux/mtd/mtd.h> 132 static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len, 135 static int pmc551_erase(struct mtd_info *mtd, struct erase_info *instr) in pmc551_erase() argument 137 struct mypriv *priv = mtd->priv; in pmc551_erase() 145 printk(KERN_DEBUG "pmc551_erase(pos:%ld, len:%ld)\n", (long)instr->addr, in pmc551_erase() [all …]
|
/openbmc/u-boot/board/gateworks/gw_ventana/ |
H A D | README | 1 U-Boot for the Gateworks Ventana Product Family boards 3 This file contains information for the port of U-Boot to the Gateworks 7 is supported by a single bootloader build by using a common SPL and U-Boot 9 information from an EEPROM on the board programmed at the factory and supports 13 --------------------------------- 19 will build the following artifacts from U-Boot source: 20 - SPL - Secondary Program Loader that the i.MX6 BOOT ROM (Primary Program 22 The DRAM controller, loads u-boot.img from the detected boot device, 25 - u-boot.img - The main U-Boot core which is u-boot.bin with a image header. 29 -------- [all …]
|
/openbmc/u-boot/include/configs/ |
H A D | cm_t335.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Config file for Compulab CM-T335 board 5 * Copyright (C) 2013, Compulab Ltd - http://compulab.co.il/ 48 "ubi.mtd=${rootfs_name}\0" \ 88 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 /* Main EEPROM */ 134 /* EEPROM */ 143 * Enable PCA9555 at I2C0-0x26.
|
/openbmc/linux/arch/powerpc/boot/dts/fsl/ |
H A D | mvme2500.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2014 Elettra-Sincrotrone Trieste S.C.p.A. 11 /include/ "p2020si-pre.dtsi" 43 eeprom@54 { 48 eeprom@52 { 53 eeprom@53 { 58 eeprom@50 { 66 fsl,espi-num-chipselects = <2>; 69 compatible = "atmel,at25df641", "jedec,spi-nor"; 71 spi-max-frequency = <10000000>; [all …]
|
/openbmc/linux/arch/arm/boot/dts/marvell/ |
H A D | orion5x-lacie-ethernet-disk-mini-v2.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (C) 2012 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 7 * TODO: add power-off support. 8 * TODO: add I2C EEPROM support. 11 /dts-v1/; 13 #include <dt-bindings/gpio/gpio.h> 14 #include <dt-bindings/input/input.h> 15 #include <dt-bindings/interrupt-controller/irq.h> 16 #include "orion5x-mv88f5182.dtsi" 20 compatible = "lacie,ethernet-disk-mini-v2", "marvell,orion5x-88f5182", "marvell,orion5x"; [all …]
|
/openbmc/linux/arch/powerpc/boot/dts/ |
H A D | pdm360ng.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2009 - 2010 DENX Software Engineering. 17 #address-cells = <1>; 18 #size-cells = <1>; 19 interrupt-parent = <&ipic>; 27 bank-width = <0x1>; 41 compatible = "amd,s29gl01gp", "cfi-flash"; 44 #address-cells = <1>; 45 #size-cells = <1>; 46 bank-width = <4>; [all …]
|