summaryrefslogtreecommitdiffstats
path: root/board/cm_t35/eeprom.c
Commit message (Collapse)AuthorAgeFilesLines
* cm-t35: print PCB revision informationNikita Kiryanov2012-07-071-3/+3
| | | | | | | | | Buffer the PCB revision to avoid multiple eeprom accesses for the same data and print it as a part of board information. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> Signed-off-by: Tom Rini <trini@ti.com>
* cm-t35: fix legacy board revision representationNikita Kiryanov2012-07-071-0/+10
| | | | | | | | | | | | | Legacy eeprom layout represents the revision number syntactically (i.e. revision 1.00 is written as 0x100). This is inconsistent with the representation in newer layouts, where it is defined semantically (i.e. 0x64). This patch fixes the issue by replacing the syntactic representation with the semantic one. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
* cm-t35: fix incorrect BOARD_REV_SIZE valueNikita Kiryanov2012-07-071-7/+3
| | | | | | | | Non-legacy layouts have an extended revision field, but only the first 2 bytes are the PCB revision. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
* cm-t35: use the new EEPROM module to read the MAC addressNikita Kiryanov2012-01-161-0/+18
| | | | | | | | | Switch to the new EEPROM module and fix the problem of MAC address being read from the wrong offset due to lack of distinction between EEPROM layouts. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
* cm-t35: pass correct revision information to LinuxNikita Kiryanov2012-01-161-0/+28
| | | | | | | Read revision from EEPROM and pass it to Linux. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
* cm-t35: add EEPROM module and pass Linux a serial numberNikita Kiryanov2012-01-161-0/+78
Add board specific EEPROM handling module, read the serial number from the EEPROM and pass it to Linux. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
OpenPOWER on IntegriCloud