Lines Matching full:eeprom

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
89 /* EEPROM tag ID, either CCID or NXID */ in show_eeprom()
133 printf("EEPROM dump: (0x%x bytes)\n", sizeof(e)); in show_eeprom()
145 * read_eeprom - read the EEPROM into memory
181 * This function should be called after each update to the EEPROM structure,
193 * prog_eeprom - write the EEPROM from memory
232 /* Verify the write by reading back the EEPROM and comparing */ in prog_eeprom()
233 struct eeprom e2; in prog_eeprom()
276 * set_date - stores the build date into the EEPROM
280 * and stores it in the build date field of the EEPROM local copy.
298 * set_mac_address - stores a MAC address into the EEPROM
302 * stores it in one of the MAC address fields of the EEPROM local copy.
351 printf("Please read the EEPROM ('r') and/or set the ID ('i') first.\n"); in do_mac()
404 * mac_read_from_eeprom - read the MAC addresses from EEPROM
406 * This function reads the MAC addresses from EEPROM and sets the
415 * format. In a v0 EEPROM, there are only eight MAC addresses and the CRC is
421 u32 crc, crc_offset = offsetof(struct eeprom, crc); in mac_read_from_eeprom()
422 u32 *crcp; /* Pointer to the CRC in the data read from the EEPROM */ in mac_read_from_eeprom()
424 puts("EEPROM: "); in mac_read_from_eeprom()
439 * If we've read an NXID v0 EEPROM, then we need to set the CRC offset in mac_read_from_eeprom()
511 * Read the EEPROM to determine the board revision.
514 * copy of the EEPROM into a local variable on the stack.
520 * CONFIG_SYS_EEPROM_BUS_NUM != CONFIG_SYS_SPD_BUS_NUM, then we can't read the EEPROM when
526 u32 id; /* 0x00 - 0x03 EEPROM Tag 'CCID' */ in get_cpu_board_revision()