Skip to content

Integrate u-boot-seco-rk/eeprom-i2c

GitBot requested to merge u-boot-seco_2017_09_next/eeprom-i2c into kirkstone

Commit: https://git.seco.com/edgehog/bsp/rockchip/u-boot-seco-rk/-/commit/f85948b68eefb22788cc244d4a2e6e0670b4d594

[E09] Modified base files to support read from Eeprom v0.02

Introduces a new read procedure to show:
Mac Address, Board Serial Number, Board Part Number, System Serial Number, System Part Number.
reading starts from address-offset and stops when it detects a empty-space.
before the reading procedure, the header and crc are checked; if there are no errors, the reading can be started.

check_header(): read version and crc from eeprom, if saved version is not equal to 0.02 returns an error.
check_crc(): compares saved crc with current crc, if they are not the same returns an error.

memory address:

  Address | Size | Data
  ________|______|_______________________
   0      | 2    | Eeprom Map Version: 0.2
  ________|______|_______________________
   2      | 4    | CRC
  ________|______|_______________________
   6      | 248  | Data Section

Merge request reports

Loading