Home
last modified time | relevance | path

Searched full:eeprom (Results 1 – 25 of 1457) sorted by relevance

12345678910>>...59

/openbmc/linux/drivers/misc/eeprom/
Deeprom_93cx6.c
/openbmc/u-boot/board/corscience/tricorder/
H A Dtricorder-eeprom.c8 #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 Dtricorder.c21 #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 Deeprom93xx.c2 * 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/linux/drivers/i2c/
Di2c-slave-eeprom.c
/openbmc/linux/drivers/nvmem/
Drave-sp-eeprom.c
/openbmc/linux/include/linux/
Deeprom_93cx6.h
/openbmc/linux/drivers/media/usb/pvrusb2/
Dpvrusb2-eeprom.c
/openbmc/linux/Documentation/devicetree/bindings/nvmem/
Dlpc1857-eeprom.txt
Dzii,rave-sp-eeprom.txt
/openbmc/u-boot/board/ti/common/
H A Dboard_detect.h3 * 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/linux/drivers/net/ethernet/intel/e1000e/
Dnvm.c
/openbmc/linux/drivers/net/ethernet/intel/igc/
Digc_nvm.c
/openbmc/openbmc/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-utils/
H A Dampere_firmware_upgrade.sh3 # 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/linux/drivers/net/ethernet/intel/igb/
De1000_nvm.c
/openbmc/qemu/include/hw/nvram/
H A Deeprom93xx.h2 * 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 Deeprom_at24c.h13 * 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/board/xilinx/common/
H A Dboard.c17 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/hw/i2c/
H A Dsmbus_eeprom.c2 * 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/u-boot/board/k+p/kp_imx53/
H A Dkp_id_rev.c18 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/u-boot/doc/device-tree-bindings/w1-eeprom/
H A Deep_sandbox.txt1 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/drivers/net/
H A De1000_spi.c91 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/openbmc/meta-ampere/meta-jade/recipes-ampere/platform/ampere-utils/
H A Dampere_firmware_upgrade.sh5 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 Dampere_firmware_upgrade.sh3 # 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 D50003_power_vs.json2 "/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": {

12345678910>>...59