| /openbmc/u-boot/board/corscience/tricorder/ |
| H A D | tricorder-eeprom.c | 8 #include <eeprom.h> 11 #include "tricorder-eeprom.h" 16 printf("Expected EEPROM %s %08x, got %08x\n", msg, a, b); in warn_wrong_value() 19 static int handle_eeprom_v0(struct tricorder_eeprom *eeprom) in handle_eeprom_v0() argument 32 printf("Old EEPROM (v0), consider rewrite!\n"); in handle_eeprom_v0() 34 if (be16_to_cpu(eeprom->length) != sizeof(eepromv0)) { in handle_eeprom_v0() 36 be16_to_cpu(eeprom->length)); in handle_eeprom_v0() 40 memcpy(&eepromv0, eeprom, sizeof(eepromv0)); in handle_eeprom_v0() 51 memset(eeprom->interface_version, 0x0, in handle_eeprom_v0() 53 crc = crc32(0L, (unsigned char *)eeprom, TRICORDER_EEPROM_CRC_SIZE); in handle_eeprom_v0() [all …]
|
| H A D | tricorder.c | 21 #include "tricorder-eeprom.h" 39 * get_eeprom - read the eeprom 41 * @eeprom - pointer to a eeprom struct to fill 43 * This function will panic() on wrong EEPROM content 45 static void get_eeprom(struct tricorder_eeprom *eeprom) in get_eeprom() argument 49 if (!eeprom) in get_eeprom() 50 panic("No eeprom given!\n"); in get_eeprom() 67 /* BMS is _not_ set, do the EEPROM check */ in get_eeprom() 68 ret = tricorder_get_eeprom(0x51, eeprom); in get_eeprom() 70 if (strncmp(eeprom->board_name, "CS10411", 7) != 0) in get_eeprom() [all …]
|
| /openbmc/qemu/hw/nvram/ |
| H A D | eeprom93xx.c | 2 * QEMU EEPROM 93xx emulation 28 * eeprom93xx_new - add a new EEPROM (with 16, 64 or 256 words) 29 * eeprom93xx_free - destroy EEPROM 30 * eeprom93xx_read - read data from the EEPROM 31 * eeprom93xx_write - write data to the EEPROM 32 * eeprom93xx_data - get EEPROM data array for external manipulation 35 * - No emulation of EEPROM timings. 43 /* Debug EEPROM emulation. */ 47 #define logout(fmt, ...) fprintf(stderr, "EEPROM\t%-24s" fmt, __func__, ## __VA_ARGS__) 92 /* Code for saving and restoring of EEPROM state. */ [all …]
|
| /openbmc/u-boot/board/ti/common/ |
| H A D | board_detect.h | 3 * Library to support early TI EVM EEPROM handling 11 /* TI EEPROM MAGIC Header identifier */ 30 * @mac_addr: Any MAC addresses written in the EEPROM 32 * The data is this structure is read from the EEPROM on the board. 46 /* DRA7 EEPROM MAGIC Header identifier */ 62 * The data is this structure is read from the EEPROM on the board. 78 * struct ti_common_eeprom - Null terminated, usable EEPROM contents. 103 * ti_i2c_eeprom_am_get() - Consolidated eeprom data collection for AM* TI EVMs 113 * ti_i2c_eeprom_dra7_get() - Consolidated eeprom data for DRA7 TI EVMs 121 * @name_tag: Tag used in eeprom for the board [all …]
|
| /openbmc/openbmc/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-utils/ |
| H A D | ampere_firmware_upgrade.sh | 3 # Helper script to flash FRU and Boot EEPROM devices. 9 # Syntax for EEPROM: 10 # ampere_firmware_upgrade.sh eeprom <image> [<dev>] 11 # dev: 1 for main Boot EEPROM (default), 2 for secondary Boot EEPROM (if supported) 51 # Switch EEPROM control to BMC AST2600 I2C 57 echo "Run update Primary EEPROM" 60 echo "Run update Failover EEPROM" 63 echo "Please choose Primary EEPROM (1) or Failover EEPROM (2)" 67 # The EEPROM (AT24C64WI) with address 0x50 at BMC_I2C11 bus 68 # Write Firmware to EEPROM and read back for validation [all …]
|
| /openbmc/u-boot/board/xilinx/common/ |
| H A D | board.c | 17 ofnode eeprom; in zynq_board_read_rom_ethaddr() local 19 eeprom = ofnode_get_chosen_node("xlnx,eeprom"); in zynq_board_read_rom_ethaddr() 20 if (!ofnode_valid(eeprom)) in zynq_board_read_rom_ethaddr() 23 debug("%s: Path to EEPROM %s\n", __func__, in zynq_board_read_rom_ethaddr() 24 ofnode_get_chosen_prop("xlnx,eeprom")); in zynq_board_read_rom_ethaddr() 26 ret = uclass_get_device_by_ofnode(UCLASS_I2C_EEPROM, eeprom, &dev); in zynq_board_read_rom_ethaddr() 32 debug("%s: I2C EEPROM MAC address read failed\n", __func__); in zynq_board_read_rom_ethaddr() 34 debug("%s: I2C EEPROM MAC %pM\n", __func__, ethaddr); in zynq_board_read_rom_ethaddr()
|
| /openbmc/qemu/include/hw/nvram/ |
| H A D | eeprom93xx.h | 2 * QEMU EEPROM 93xx emulation 25 /* Create a new EEPROM with (nwords * 2) bytes. */ 28 /* Destroy an existing EEPROM. */ 29 void eeprom93xx_free(DeviceState *dev, eeprom_t *eeprom); 31 /* Read from the EEPROM. */ 32 uint16_t eeprom93xx_read(eeprom_t *eeprom); 34 /* Write to the EEPROM. */ 35 void eeprom93xx_write(eeprom_t *eeprom, int eecs, int eesk, int eedi); 37 /* Get EEPROM data array. */ 38 uint16_t *eeprom93xx_data(eeprom_t *eeprom);
|
| H A D | eeprom_at24c.h | 13 * Create and realize an AT24C EEPROM device on the heap. 15 * @address: I2C address of the EEPROM slave when put on a bus 16 * @rom_size: size of the EEPROM 25 * Create and realize an AT24C EEPROM device on the heap with initial data. 27 * @address: I2C address of the EEPROM slave when put on a bus 28 * @rom_size: size of the EEPROM 29 * @init_rom: Array of bytes to initialize EEPROM memory with 34 * from @init_rom to the beginning of the EEPROM memory buffer.
|
| /openbmc/u-boot/doc/device-tree-bindings/w1-eeprom/ |
| H A D | eep_sandbox.txt | 1 Onewire EEPROM sandbox driver device binding - one wire protocol sandbox EEPROM 10 - drivers/w1-eeprom/eep_sandbox.c 14 * compatible = "sandbox,w1-eeprom" 20 eeprom1: eeprom@0 { 21 compatible = "sandbox,w1-eeprom"; 30 eeprom1: eeprom@0 { 31 compatible = "sandbox,w1-eeprom";
|
| /openbmc/u-boot/board/k+p/kp_imx53/ |
| H A D | kp_id_rev.c | 18 static struct id_eeprom eeprom; variable 26 puts("Module EEPROM:\n"); in show_eeprom() 28 for (i = 0; i <= sizeof(eeprom.id) && 0xff != eeprom.id[i]; ++i) in show_eeprom() 29 safe_string[i] = eeprom.id[i]; in show_eeprom() 40 for (i = 0; (sizeof(eeprom.serial) >= i) && in show_eeprom() 41 (eeprom.serial[i] >= 0x30) && in show_eeprom() 42 (eeprom.serial[i] <= 0x39); ++i) in show_eeprom() 43 safe_string[i] = eeprom.serial[i]; in show_eeprom() 54 p = eeprom.mac; in show_eeprom() 56 printf(" Not valid ETH EEPROM addr!\n"); in show_eeprom() [all …]
|
| /openbmc/qemu/hw/i2c/ |
| H A D | smbus_eeprom.c | 2 * QEMU SMBus EEPROM device 38 #define TYPE_SMBUS_EEPROM "smbus-eeprom" 54 SMBusEEPROMDevice *eeprom = SMBUS_EEPROM(dev); in eeprom_receive_byte() local 55 uint8_t *data = eeprom->data; in eeprom_receive_byte() 56 uint8_t val = data[eeprom->offset++]; in eeprom_receive_byte() 58 eeprom->accessed = true; in eeprom_receive_byte() 68 SMBusEEPROMDevice *eeprom = SMBUS_EEPROM(dev); in eeprom_write_data() local 69 uint8_t *data = eeprom->data; in eeprom_write_data() 71 eeprom->accessed = true; in eeprom_write_data() 77 eeprom->offset = buf[0]; in eeprom_write_data() [all …]
|
| /openbmc/openbmc/meta-ampere/meta-jade/recipes-ampere/platform/ampere-utils/ |
| H A D | ampere_firmware_upgrade.sh | 5 FRU_DEVICE="/sys/bus/i2c/devices/3-0050/eeprom" 61 # Switch EEPROM control to BMC AST2500 I2C 66 echo "Run update primary Boot EEPROM" 67 gpioset $(gpiofind i2c-backup-sel)=1 # Main EEPROM 69 echo "Run update secondary Boot EEPROM" 70 gpioset $(gpiofind i2c-backup-sel)=0 # Second EEPROM 72 echo "Please choose Main (1) or Second EEPROM (2)" 76 # Write Firmware to EEPROM and read back for validation 79 # Switch EEPROM control to Host 105 echo " <Type>: eeprom or fru" [all …]
|
| /openbmc/openbmc/meta-ampere/meta-jefferson/recipes-ampere/platform/ampere-utils/ |
| H A D | ampere_firmware_upgrade.sh | 3 # Helper script to flash FRU and Boot EEPROM devices. 9 # Syntax for EEPROM: 10 # ampere_firmware_upgrade.sh eeprom <image> 45 # The EEPROM (AT24C64WI) with address 0x50 at BMC_I2C11 bus 46 # Write Firmware to EEPROM and read back for validation 65 if [ -f /sys/bus/i2c/devices/4-0050/eeprom ]; then 66 FRU_DEVICE="/sys/bus/i2c/devices/4-0050/eeprom" 70 FRU_DEVICE="/sys/bus/i2c/devices/14-0050/eeprom" 73 FRU_DEVICE="/sys/bus/i2c/devices/20-0052/eeprom" 76 FRU_DEVICE="/sys/bus/i2c/devices/21-0052/eeprom" [all …]
|
| /openbmc/openpower-vpd-parser/configuration/ibm/ |
| H A D | 50003_power_vs.json | 2 "/sys/bus/spi/drivers/at25/spi12.0/eeprom": { 8 "/sys/bus/spi/drivers/at25/spi22.0/eeprom": { 14 "/sys/bus/spi/drivers/at25/spi32.0/eeprom": { 20 "/sys/bus/spi/drivers/at25/spi42.0/eeprom": { 26 "/sys/bus/spi/drivers/at25/spi52.0/eeprom": { 32 "/sys/bus/spi/drivers/at25/spi62.0/eeprom": { 38 "/sys/bus/spi/drivers/at25/spi72.0/eeprom": { 44 "/sys/bus/spi/drivers/at25/spi82.0/eeprom": { 50 "/sys/bus/i2c/drivers/at24/8-0051/eeprom": {
|
| /openbmc/u-boot/drivers/net/ |
| H A D | e1000_spi.c | 91 if (hw->eeprom.type != e1000_eeprom_spi) { in spi_setup_slave() 92 E1000_ERR(hw, "No attached SPI EEPROM found!\n"); in spi_setup_slave() 107 E1000_DBG(hw->nic, "EEPROM SPI access requested\n"); in spi_setup_slave() 114 E1000_DBG(hw->nic, "EEPROM SPI access released\n"); in spi_free_slave() 122 E1000_ERR(hw, "EEPROM SPI cannot be acquired!\n"); in spi_claim_bus() 157 /* The EEPROM opcodes */ 165 /* The EEPROM status bits */ 178 * of the EEPROM commands at this time. 210 (off >> (hw->eeprom.address_bits - 8)) & 0xff, off & 0xff in e1000_spi_eeprom_write_page() 215 if (e1000_spi_xfer(hw, 8 + hw->eeprom.address_bits, op, NULL, intr)) in e1000_spi_eeprom_write_page() [all …]
|
| /openbmc/phosphor-fan-presence/docs/presence/ |
| H A D | eeprom.md | 1 # eeprom chapter 5 Some fans have EEPROMs on them. In these cases, the `eeprom` JSON stanza can be 6 used to have the application re-bind the EEPROM driver to the EEPROM instance 7 after a new fan is detected. This will trigger the EEPROM to be read by the 29 The name of the eeprom driver in sysfs. 61 "eeprom": {
|
| /openbmc/u-boot/examples/standalone/ |
| H A D | smc911x_eeprom.c | 2 * smc911x_eeprom.c - EEPROM interface to SMC911x parts. 37 "MAC/EEPROM Commands:\n" in usage() 39 " D : Dump the EEPROM contents\n" in usage() 41 " C : Copy the MAC address from the EEPROM to the MAC\n" in usage() 42 " W : Write a register in the EEPROM or in the MAC\n" in usage() 47 " E: EEPROM M: MAC\n" in usage() 67 * do_eeprom_cmd - handle eeprom communication 90 * read_eeprom_reg - read specified register in EEPROM 99 * write_eeprom_reg - write specified value into specified register in EEPROM 110 /* erase the eeprom reg */ in write_eeprom_reg() [all …]
|
| /openbmc/u-boot/drivers/w1-eeprom/ |
| H A D | Kconfig | 2 # EEPROM subsystem configuration 5 menu "1-wire EEPROM support" 16 bool "Enable Maxim DS24 families EEPROM support" 19 Maxim DS24 EEPROMs 1-Wire EEPROM support 35 bool "Enable sandbox onewire EEPROM driver" 38 Sandbox driver for a onewire EEPROM memory
|
| /openbmc/phosphor-bmc-code-mgmt/eeprom-device/ |
| H A D | eeprom_device.cpp | 94 // Currently, only EEPROM chips with the model AT24 are supported. in getDriverPath() 97 error("Invalid EEPROM chip model: {CHIP}", "CHIP", chipModel); in getDriverPath() 116 "/sys/bus/i2c/devices/" + getI2CDeviceId(bus, address) + "/eeprom"; in getEEPROMPath() 120 debug("Found EEPROM device path: {PATH}", "PATH", devicePath); in getEEPROMPath() 139 // Some EEPROM devices require the host to be in a specific state before 145 debug("Initialized EEPROM device instance on dbus"); 155 debug("Requesting GPIOs to mux EEPROM to BMC"); in updateDevice() 161 error("Failed to mux EEPROM to BMC"); in updateDevice() 179 debug("Successfully wrote EEPROM"); in updateDevice() 184 error("Failed to write EEPROM"); in updateDevice() [all …]
|
| /openbmc/u-boot/board/varisys/common/ |
| H A D | sys_eeprom.c | 7 * eeprom. It has been adapted from an earlier version of the 18 #include "eeprom.h" 28 * static eeprom: EEPROM layout for NXID formats 32 static struct __attribute__ ((__packed__)) eeprom { struct 33 u8 id[4]; /* 0x00 - 0x03 EEPROM Tag 'NXID' */ 49 /* Set to 1 if we've read EEPROM into memory */ 52 /* Is this a valid NXID EEPROM? */ 56 /** Fixed ID field in EEPROM */ 64 * This must be called before any eeprom access. argument 74 * show_eeprom - display the contents of the EEPROM [all …]
|
| /openbmc/openbmc/meta-ampere/meta-jade/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
| H A D | ampere_scp_failover.sh | 5 # attempts to boot from the failover boot EEPROM. 16 # the failover Boot EEPROM. 17 echo "scp-failover: switch HOST to failover boot EEPROM" 20 # Reset the Host to boot on the failover EEPROM 23 # Turn OFF Host as SCP firmware on both Boot EEPROM fail 26 echo "scp-failover: switch HOST back to the main Boot EEPROM"
|
| /openbmc/openbmc/meta-ufispace/meta-ncplite/recipes-phosphor/ipmi/phosphor-ipmi-fru/ |
| H A D | ncplite-obmc-read-eeprom@.service | 2 Description=Read %I EEPROM 12 ExecStartPre={bindir}/of-name-to-eeprom.sh {envfiledir}/obmc/eeproms/%I 13 ExecStart=/usr/bin/env phosphor-read-eeprom --eeprom $SYSFS_PATH --fruid $FRUID 14 SyslogIdentifier=phosphor-read-eeprom
|
| /openbmc/openbmc/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/ |
| H A D | obmc-read-eeprom@.service | 2 Description=Read %I EEPROM 11 ExecStartPre={bindir}/of-name-to-eeprom.sh {envfiledir}/obmc/eeproms/%I 12 ExecStart=/usr/bin/env phosphor-read-eeprom --eeprom $SYSFS_PATH --fruid $FRUID 13 SyslogIdentifier=phosphor-read-eeprom
|
| /openbmc/u-boot/board/freescale/common/ |
| H A D | sys_eeprom.c | 15 #include "../common/eeprom.h" 20 /* some boards with non-256-bytes EEPROM have special define */ 29 * static eeprom: EEPROM layout for CCID or NXID formats 33 static struct __attribute__ ((__packed__)) eeprom { struct 35 u8 id[4]; /* 0x00 - 0x03 EEPROM Tag 'CCID' */ 48 u8 id[4]; /* 0x00 - 0x03 EEPROM Tag 'NXID' */ 66 /* Set to 1 if we've read EEPROM into memory */ 70 /* Is this a valid NXID EEPROM? */ 76 /* Is this a valid CCID EEPROM? */ 82 * show_eeprom - display the contents of the EEPROM [all …]
|
| /openbmc/u-boot/board/samtec/vining_fpga/ |
| H A D | socfpga.c | 7 #include <eeprom.h> 56 /* EEPROM is at bus 0. */ in misc_init_r() 59 puts("Cannot select EEPROM I2C bus.\n"); in misc_init_r() 63 /* EEPROM is at address 0x50. */ in misc_init_r() 66 puts("Cannot read I2C EEPROM.\n"); in misc_init_r() 70 /* Check EEPROM signature. */ in misc_init_r() 72 puts("Invalid I2C EEPROM signature.\n"); in misc_init_r() 95 /* Set ethernet address from EEPROM. */ in misc_init_r()
|