Home
last modified time | relevance | path

Searched refs:eeprom (Results 1 – 25 of 82) sorted by relevance

1234

/external/u-boot/board/corscience/tricorder/
Dtricorder-eeprom.c18 static int handle_eeprom_v0(struct tricorder_eeprom *eeprom) in handle_eeprom_v0() argument
33 if (be16_to_cpu(eeprom->length) != sizeof(eepromv0)) { in handle_eeprom_v0()
35 be16_to_cpu(eeprom->length)); in handle_eeprom_v0()
39 memcpy(&eepromv0, eeprom, sizeof(eepromv0)); in handle_eeprom_v0()
50 memset(eeprom->interface_version, 0x0, in handle_eeprom_v0()
52 crc = crc32(0L, (unsigned char *)eeprom, TRICORDER_EEPROM_CRC_SIZE); in handle_eeprom_v0()
53 eeprom->crc32 = cpu_to_be32(crc); in handle_eeprom_v0()
58 static int handle_eeprom_v1(struct tricorder_eeprom *eeprom) in handle_eeprom_v1() argument
62 if (be16_to_cpu(eeprom->length) != TRICORDER_EEPROM_SIZE) { in handle_eeprom_v1()
64 be16_to_cpu(eeprom->length)); in handle_eeprom_v1()
[all …]
Dtricorder.c45 static void get_eeprom(struct tricorder_eeprom *eeprom) in get_eeprom() argument
49 if (!eeprom) 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()
72 sizeof(eeprom->board_name), in get_eeprom()
73 eeprom->board_name); in get_eeprom()
74 if (eeprom->board_version[0] < 'D') in get_eeprom()
76 sizeof(eeprom->board_version), in get_eeprom()
77 eeprom->board_version); in get_eeprom()
82 memset(eeprom, 0, TRICORDER_EEPROM_SIZE); in get_eeprom()
[all …]
/external/u-boot/board/k+p/kp_imx53/
Dkp_id_rev.c18 static struct id_eeprom eeprom; variable
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()
82 ret = dm_i2c_read(dev, 0x0, (uchar *)&eeprom, sizeof(eeprom)); in read_eeprom()
/external/u-boot/test/dm/
Di2c.c119 struct udevice *eeprom; in dm_test_i2c_bytewise() local
128 ut_assertok(uclass_first_device(UCLASS_I2C_EMUL, &eeprom)); in dm_test_i2c_bytewise()
129 ut_assertnonnull(eeprom); in dm_test_i2c_bytewise()
130 sandbox_i2c_eeprom_set_test_mode(eeprom, SIE_TEST_MODE_SINGLE_BYTE); in dm_test_i2c_bytewise()
164 sandbox_i2c_eeprom_set_test_mode(eeprom, SIE_TEST_MODE_NONE); in dm_test_i2c_bytewise()
173 struct udevice *eeprom; in dm_test_i2c_offset() local
181 ut_assertok(uclass_first_device(UCLASS_I2C_EMUL, &eeprom)); in dm_test_i2c_offset()
184 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()
198 sandbox_i2c_eeprom_set_offset_len(eeprom, 2); in dm_test_i2c_offset()
[all …]
/external/u-boot/drivers/net/
De1000.c286 struct e1000_eeprom_info *eeprom = &hw->eeprom; in e1000_standby_eeprom() local
291 if (eeprom->type == e1000_eeprom_microwire) { in e1000_standby_eeprom()
295 udelay(eeprom->delay_usec); in e1000_standby_eeprom()
301 udelay(eeprom->delay_usec); in e1000_standby_eeprom()
307 udelay(eeprom->delay_usec); in e1000_standby_eeprom()
313 udelay(eeprom->delay_usec); in e1000_standby_eeprom()
314 } else if (eeprom->type == e1000_eeprom_spi) { in e1000_standby_eeprom()
319 udelay(eeprom->delay_usec); in e1000_standby_eeprom()
323 udelay(eeprom->delay_usec); in e1000_standby_eeprom()
364 struct e1000_eeprom_info *eeprom = &hw->eeprom; in e1000_acquire_eeprom() local
[all …]
De1000_spi.c94 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()
218 if (e1000_spi_xfer(hw, 8 + hw->eeprom.address_bits, op, NULL, intr)) in e1000_spi_eeprom_write_page()
231 (off >> (hw->eeprom.address_bits - 8)) & 0xff, off & 0xff in e1000_spi_eeprom_read_page()
236 if (e1000_spi_xfer(hw, 8 + hw->eeprom.address_bits, op, NULL, intr)) 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()
[all …]
Ddc2114x.c730 static unsigned short eeprom[0x40] = { in update_srom() local
753 eeprom[0x0a] = (enetaddr[1] << 8) | enetaddr[0]; in update_srom()
754 eeprom[0x0b] = (enetaddr[3] << 8) | enetaddr[2]; in update_srom()
755 eeprom[0x0c] = (enetaddr[5] << 8) | enetaddr[4]; in update_srom()
758 write_srom(dev, DE4X5_APROM, i, eeprom[i]); in update_srom()
/external/vboot_reference/scripts/image_signing/
Dunpack_firmwarefd.sh30 line=$(mosys -f -k eeprom map $1 | grep "$match_str")
40 line=$(mosys -f -k eeprom map $1 | grep "$match_str")
49 line=$(mosys -f -k eeprom map $1 | grep "$match_str")
/external/u-boot/arch/arm/dts/
Duniphier-ref-daughter.dtsi9 eeprom@50 {
10 compatible = "microchip,24lc128", "i2c-eeprom";
Dzynq-zc770-xm011-x16.dts44 eeprom: eeprom@52 { label
Dzynq-zc770-xm011.dts44 eeprom: eeprom@52 { label
Dzynq-zc770-xm012.dts40 eeprom0: eeprom@52 {
50 eeprom1: eeprom@52 {
Duniphier-pro4-sanji.dts47 eeprom@54 {
48 compatible = "st,24c64", "atmel,24c64", "i2c-eeprom";
Dzynq-zc770-xm013.dts70 eeprom: eeprom@0 { label
Duniphier-pro4-ace.dts52 eeprom@54 {
53 compatible = "st,24c64", "atmel,24c64", "i2c-eeprom";
Dzynq-zc770-xm010.dts57 eeprom: eeprom@52 { label
Duniphier-pxs2-gentil.dts50 eeprom@54 {
51 compatible = "st,24c64", "atmel,24c64", "i2c-eeprom";
Dfsl-ls1012a-qds.dtsi102 eeprom@56 {
107 eeprom@57 {
Dfsl-ls1043a-rdb.dts47 eeprom@52 {
52 eeprom@53 {
Duniphier-ld11-global.dts133 eeprom@50 {
134 compatible = "st,24c64", "atmel,24c64", "i2c-eeprom";
Dfsl-ls1043a-qds.dtsi112 eeprom@56 {
117 eeprom@57 {
/external/u-boot/board/varisys/common/
Dsys_eeprom.c32 static struct __attribute__ ((__packed__)) eeprom { struct
175 u32 crc, crc_offset = offsetof(struct eeprom, crc); in update_crc()
219 struct eeprom e2; in prog_eeprom()
439 u32 crc, crc_offset = offsetof(struct eeprom, crc); in mac_read_from_eeprom_common()
/external/u-boot/board/freescale/common/
Dsys_eeprom.c33 static struct __attribute__ ((__packed__)) eeprom { struct
233 struct eeprom e2; in prog_eeprom()
421 u32 crc, crc_offset = offsetof(struct eeprom, crc); in mac_read_from_eeprom()
/external/u-boot/arch/sandbox/dts/
Dsandbox.dts98 eeprom@2c {
100 compatible = "i2c-eeprom";
102 compatible = "sandbox,i2c-eeprom";
Dsandbox64.dts98 eeprom@2c {
100 compatible = "i2c-eeprom";
102 compatible = "sandbox,i2c-eeprom";

1234