From 0a57c037b53c34b82f2fc3f6899d30c2e56d994c Mon Sep 17 00:00:00 2001 From: Dmitry Lifshitz Date: Tue, 10 Nov 2015 15:17:44 +0200 Subject: omap3: cm-t3517: add board specific get_board_rev() CM-T3517 has several HW revisions. Add board specific get_board_rev() callback to retrieve revision number. Signed-off-by: Dmitry Lifshitz Reviewed-by: Igor Grinberg diff --git a/board/compulab/cm_t3517/cm_t3517.c b/board/compulab/cm_t3517/cm_t3517.c index d1c74db..8aae248 100644 --- a/board/compulab/cm_t3517/cm_t3517.c +++ b/board/compulab/cm_t3517/cm_t3517.c @@ -98,6 +98,15 @@ int board_init(void) return 0; } +/* + * Routine: get_board_rev + * Description: read system revision + */ +u32 get_board_rev(void) +{ + return cl_eeprom_get_board_rev(CONFIG_SYS_I2C_EEPROM_BUS); +}; + int misc_init_r(void) { cl_print_pcb_info(); -- cgit v0.10.2