summaryrefslogtreecommitdiffstats
path: root/board/compulab
diff options
context:
space:
mode:
authorDmitry Lifshitz <lifshitz@compulab.co.il>2015-11-10 15:17:44 +0200
committerTom Rini <trini@konsulko.com>2015-11-18 14:50:06 -0500
commit0a57c037b53c34b82f2fc3f6899d30c2e56d994c (patch)
tree0046af5dacfac4b3f3899dcc3a071dbaa45673c1 /board/compulab
parenta1e56cf6d430d78db3a4dc08a422311145e32315 (diff)
downloadblackbird-obmc-uboot-0a57c037b53c34b82f2fc3f6899d30c2e56d994c.tar.gz
blackbird-obmc-uboot-0a57c037b53c34b82f2fc3f6899d30c2e56d994c.zip
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 <lifshitz@compulab.co.il> Reviewed-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'board/compulab')
-rw-r--r--board/compulab/cm_t3517/cm_t3517.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/compulab/cm_t3517/cm_t3517.c b/board/compulab/cm_t3517/cm_t3517.c
index d1c74db0ad..8aae248042 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();
OpenPOWER on IntegriCloud