diff options
author | Nikita Kiryanov <nikita@compulab.co.il> | 2012-05-24 04:01:24 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-07-07 14:07:24 +0200 |
commit | 8c318eb3a0db27ea7f0ae3e7be42f5b4b375cf3b (patch) | |
tree | 51ee450a3218dbefc1251cca38e540ddc4b35df6 /board/cm_t35/eeprom.h | |
parent | 2ef6302f8728d52ee4fb3b169be5dc6becae566f (diff) | |
download | u-boot-8c318eb3a0db27ea7f0ae3e7be42f5b4b375cf3b.tar.gz |
cm-t35: print PCB revision information
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>
Diffstat (limited to 'board/cm_t35/eeprom.h')
-rw-r--r-- | board/cm_t35/eeprom.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/cm_t35/eeprom.h b/board/cm_t35/eeprom.h index ec772c6710..38824d162b 100644 --- a/board/cm_t35/eeprom.h +++ b/board/cm_t35/eeprom.h @@ -23,11 +23,16 @@ #ifdef CONFIG_DRIVER_OMAP34XX_I2C int cm_t3x_eeprom_read_mac_addr(uchar *buf); +u32 cm_t3x_eeprom_get_board_rev(void); #else static inline int cm_t3x_eeprom_read_mac_addr(uchar *buf) { return 1; } +static inline u32 cm_t3x_eeprom_get_board_rev(void) +{ + return 0; +} #endif #endif |