/u-boot/board/corscience/tricorder/ |
A D | tricorder-eeprom.c | 38 be16_to_cpu(eeprom->length)); in handle_eeprom_v0() 56 eeprom->crc32 = cpu_to_be32(crc); in handle_eeprom_v0() 67 be16_to_cpu(eeprom->length)); in handle_eeprom_v1() 92 be32_to_cpu(eeprom->magic)); in tricorder_get_eeprom() 98 return handle_eeprom_v0(eeprom); in tricorder_get_eeprom() 111 struct tricorder_eeprom eeprom; in tricorder_eeprom_read() local 118 sizeof(eeprom.board_name), eeprom.board_name); in tricorder_eeprom_read() 120 sizeof(eeprom.board_version), eeprom.board_version); in tricorder_eeprom_read() 122 sizeof(eeprom.board_serial), eeprom.board_serial); in tricorder_eeprom_read() 167 print_buffer(0, &eeprom, 1, sizeof(eeprom), 16); in tricorder_eeprom_write() [all …]
|
A D | tricorder.c | 53 if (!eeprom) in get_eeprom() 77 eeprom->board_name); in get_eeprom() 81 eeprom->board_version); in get_eeprom() 98 if (!eeprom) in print_hwversion() 102 sizeof(eeprom->board_name), eeprom->board_name, in print_hwversion() 103 sizeof(eeprom->board_version), eeprom->board_version, in print_hwversion() 104 sizeof(eeprom->board_serial), eeprom->board_serial); in print_hwversion() 121 struct tricorder_eeprom eeprom; in misc_init_r() local 122 get_eeprom(&eeprom); in misc_init_r() 123 print_hwversion(&eeprom); in misc_init_r() [all …]
|
/u-boot/test/dm/ |
A D | i2c.c | 118 struct udevice *eeprom; in dm_test_i2c_bytewise() local 128 ut_assertnonnull(eeprom); in dm_test_i2c_bytewise() 172 struct udevice *eeprom; in dm_test_i2c_offset() local 183 sandbox_i2c_eeprom_set_offset_len(eeprom, 0); in dm_test_i2c_offset() 191 sandbox_i2c_eeprom_set_offset_len(eeprom, 1); in dm_test_i2c_offset() 200 sandbox_i2c_eeprom_set_offset_len(eeprom, 2); in dm_test_i2c_offset() 213 sandbox_i2c_eeprom_set_offset_len(eeprom, 2); in dm_test_i2c_offset() 221 sandbox_i2c_eeprom_set_offset_len(eeprom, 3); in dm_test_i2c_offset() 229 sandbox_i2c_eeprom_set_offset_len(eeprom, 4); in dm_test_i2c_offset() 237 sandbox_i2c_eeprom_set_offset_len(eeprom, 1); in dm_test_i2c_offset() [all …]
|
/u-boot/cmd/ |
A D | tlv_eeprom.c | 151 update_crc(eeprom); in read_eeprom() 157 show_eeprom(eeprom); in read_eeprom() 395 update_crc(eeprom); in prog_eeprom() 436 read_eeprom(eeprom); in do_tlv_eeprom() 437 show_eeprom(eeprom); in do_tlv_eeprom() 463 prog_eeprom(eeprom); in do_tlv_eeprom() 469 update_crc(eeprom); in do_tlv_eeprom() 589 memcpy(&eeprom[eeprom_index], &eeprom[eeprom_index + tlength], in tlvinfo_delete_tlv() 596 update_crc(eeprom); in tlvinfo_delete_tlv() 697 update_crc(eeprom); in tlvinfo_add_tlv() [all …]
|
/u-boot/board/k+p/kp_imx53/ |
A D | kp_id_rev.c | 19 static struct id_eeprom eeprom; variable 29 for (i = 0; i <= sizeof(eeprom.id) && 0xff != eeprom.id[i]; ++i) in show_eeprom() 30 safe_string[i] = eeprom.id[i]; in show_eeprom() 41 for (i = 0; (sizeof(eeprom.serial) >= i) && in show_eeprom() 42 (eeprom.serial[i] >= 0x30) && in show_eeprom() 43 (eeprom.serial[i] <= 0x39); ++i) in show_eeprom() 44 safe_string[i] = eeprom.serial[i]; in show_eeprom() 55 p = eeprom.mac; in show_eeprom() 83 ret = dm_i2c_read(dev, 0x0, (uchar *)&eeprom, sizeof(eeprom)); in read_eeprom()
|
/u-boot/include/ |
A D | tlv_eeprom.h | 81 int read_tlv_eeprom(void *eeprom, int offset, int len, int dev); 91 int write_tlv_eeprom(void *eeprom, int len); 110 int read_tlvinfo_tlv_eeprom(void *eeprom, struct tlvinfo_header **hdr, 115 static inline int read_tlv_eeprom(void *eeprom, int offset, int len, int dev) in read_tlv_eeprom() argument 120 static inline int write_tlv_eeprom(void *eeprom, int len) in write_tlv_eeprom() argument 126 read_tlvinfo_tlv_eeprom(void *eeprom, struct tlvinfo_header **hdr, in read_tlvinfo_tlv_eeprom() argument
|
/u-boot/doc/device-tree-bindings/w1-eeprom/ |
A D | eep_sandbox.txt | 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";
|
A D | ds2502.txt | 10 - drivers/w1-eeprom/ds2502.c 20 eeprom1: eeprom@0 { 29 eeprom1: eeprom@0 {
|
A D | ds24xxx.txt | 10 - drivers/w1-eeprom/ds24xxx.c 23 eeprom1: eeprom@0 { 33 eeprom1: eeprom@0 {
|
/u-boot/arch/arm/dts/ |
A D | imx6q-bx50v3-uboot.dtsi | 9 compatible = "u-boot,bootcount-i2c-eeprom"; 10 i2c-eeprom = <&bootcount>; 23 &eeprom {
|
A D | avnet-ultrazedev-cc-v1.0-ultrazedev-som-v1.0.dts | 18 xlnx,eeprom = &eeprom; 33 eeprom: eeprom@51 { label
|
A D | zynq-syzygy-hub.dts | 30 xlnx,eeprom = &eeprom; 57 eeprom: eeprom@57 { label
|
A D | imx53-ppd-uboot.dtsi | 14 compatible = "u-boot,bootcount-i2c-eeprom"; 15 i2c-eeprom = <&bootcount>; 24 &eeprom {
|
A D | armada-388-clearfog-u-boot.dtsi | 30 eeprom@52 { 34 eeprom@53 {
|
A D | armada-388-helios4-u-boot.dtsi | 37 eeprom@52 { 41 eeprom@53 {
|
A D | zynq-zc770-xm012.dts | 40 eeprom0: eeprom@52 { 50 eeprom1: eeprom@52 {
|
A D | zynq-zc770-xm011.dts | 44 eeprom: eeprom@52 { label
|
A D | at91-sama5d2_icp.dts | 55 eeprom@50 { 61 eeprom@52 { 67 eeprom@53 {
|
A D | zynqmp-a2197-revA.dts | 27 xlnx,eeprom = <&eeprom1 &eeprom0 &eeprom0>; 57 eeprom0: eeprom@50 { /* u96 - 24LC32A - 256B */ 82 eeprom1: eeprom@50 { /* u96 - 24LC32A - 256B */
|
/u-boot/board/xilinx/common/ |
A D | board.c | 29 ofnode eeprom; in zynq_board_read_rom_ethaddr() local 31 eeprom = ofnode_get_chosen_node("xlnx,eeprom"); in zynq_board_read_rom_ethaddr() 32 if (!ofnode_valid(eeprom)) in zynq_board_read_rom_ethaddr() 38 ret = uclass_get_device_by_ofnode(UCLASS_I2C_EEPROM, eeprom, &dev); in zynq_board_read_rom_ethaddr() 86 static void xilinx_eeprom_legacy_cleanup(char *eeprom, int size) in xilinx_eeprom_legacy_cleanup() argument 92 byte = eeprom[i]; in xilinx_eeprom_legacy_cleanup() 96 eeprom[i] = 0; in xilinx_eeprom_legacy_cleanup() 100 eeprom[i] = byte + 'a' - 'A'; in xilinx_eeprom_legacy_cleanup() 248 ofnode eeprom; in xilinx_read_eeprom_single() local 251 eeprom = ofnode_get_aliases_node(name); in xilinx_read_eeprom_single() [all …]
|
/u-boot/board/toradex/common/ |
A D | tdx-eeprom.c | 17 ofnode eeprom; in get_tdx_eeprom() local 38 eeprom = ofnode_path(path); in get_tdx_eeprom() 39 if (!ofnode_valid(eeprom)) { in get_tdx_eeprom() 44 ret = uclass_get_device_by_ofnode(UCLASS_I2C_EEPROM, eeprom, devp); in get_tdx_eeprom()
|
/u-boot/drivers/net/ |
A D | e1000.c | 285 struct e1000_eeprom_info *eeprom = &hw->eeprom; in e1000_standby_eeprom() local 363 struct e1000_eeprom_info *eeprom = &hw->eeprom; in e1000_acquire_eeprom() local 422 struct e1000_eeprom_info *eeprom = &hw->eeprom; in e1000_init_eeprom_params() local 440 eeprom->word_size = 64; in e1000_init_eeprom_params() 499 eeprom->delay_usec = 1; in e1000_init_eeprom_params() 504 eeprom->page_size = 8; in e1000_init_eeprom_params() 514 eeprom->delay_usec = 1; in e1000_init_eeprom_params() 519 eeprom->page_size = 8; in e1000_init_eeprom_params() 538 eeprom->delay_usec = 1; in e1000_init_eeprom_params() 773 struct e1000_eeprom_info *eeprom = &hw->eeprom; in e1000_read_eeprom() local [all …]
|
A D | e1000_spi.c | 94 if (hw->eeprom.type != e1000_eeprom_spi) { in spi_setup_slave() 213 (off >> (hw->eeprom.address_bits - 8)) & 0xff, off & 0xff in e1000_spi_eeprom_write_page() 231 (off >> (hw->eeprom.address_bits - 8)) & 0xff, off & 0xff in e1000_spi_eeprom_read_page() 264 u16 pg_off = off & (hw->eeprom.page_size - 1); in e1000_spi_eeprom_dump() 265 u16 pg_len = hw->eeprom.page_size - pg_off; in e1000_spi_eeprom_dump() 289 u16 pg_off = off & (hw->eeprom.page_size - 1); in e1000_spi_eeprom_program() 290 u16 pg_len = hw->eeprom.page_size - pg_off; in e1000_spi_eeprom_program() 338 else if (offset < (hw->eeprom.word_size << 1)) in do_e1000_spi_show() 339 length = (hw->eeprom.word_size << 1) - offset; in do_e1000_spi_show() 554 if (hw->eeprom.type != e1000_eeprom_spi) { in do_e1000_spi() [all …]
|
/u-boot/board/dhelectronics/dh_imx6/ |
A D | dh_imx6.c | 88 ofnode eeprom; in setup_dhcom_mac_from_fuse() local 103 eeprom = ofnode_path("/soc/aips-bus@2100000/i2c@21a8000/eeprom@50"); in setup_dhcom_mac_from_fuse() 104 if (!ofnode_valid(eeprom)) { in setup_dhcom_mac_from_fuse() 109 ret = uclass_get_device_by_ofnode(UCLASS_I2C_EEPROM, eeprom, &dev); in setup_dhcom_mac_from_fuse()
|
/u-boot/doc/device-tree-bindings/w1/ |
A D | w1-gpio.txt | 9 Also check doc/device-tree-bindings/w1-eeprom for possible child nodes drivers 36 eeprom1: eeprom@0 {
|