omap3: cm-t3517: add board specific get_board_rev()
authorDmitry Lifshitz <lifshitz@compulab.co.il>
Tue, 10 Nov 2015 13:17:44 +0000 (15:17 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 18 Nov 2015 19:50:06 +0000 (14:50 -0500)
CM-T3517 has several HW revisions.
Add board specific get_board_rev() callback to retrieve revision number.

Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il>
Reviewed-by: Igor Grinberg <grinberg@compulab.co.il>
board/compulab/cm_t3517/cm_t3517.c

index d1c74db0ade4c5769cccdaad769c6882bd055468..8aae248042da9b09b9f4b5c695a1289d49759230 100644 (file)
@@ -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();