Integrate u-boot-seco-rk/eeprom_manager_backup
[BOARDS] Add RK common code for reading 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