summaryrefslogtreecommitdiff
path: root/board/compulab
diff options
context:
space:
mode:
authorDmitry Lifshitz <lifshitz@compulab.co.il>2016-12-28 18:28:34 +0200
committerTom Rini <trini@konsulko.com>2017-01-02 11:14:06 -0500
commit965c509f0a06ea506432e1f90fdd43a0faff6c23 (patch)
tree194944348c6e49e8524ff928cd68990900d6046a /board/compulab
parent46650d583b8067c8aecf2ddea585e8a97f937d0c (diff)
downloadu-boot-965c509f0a06ea506432e1f90fdd43a0faff6c23.tar.gz
u-boot-965c509f0a06ea506432e1f90fdd43a0faff6c23.tar.bz2
u-boot-965c509f0a06ea506432e1f90fdd43a0faff6c23.zip
arm: am57xx: cl-som-am57x: fetch board rev from EEPROM
Add PCB revision message. Implement board revision get_board_rev API. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> Commit description update. Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il> Acked-by: Igor Grinberg <grinberg@compulab.co.il> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/compulab')
-rw-r--r--board/compulab/cl-som-am57x/cl-som-am57x.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/board/compulab/cl-som-am57x/cl-som-am57x.c b/board/compulab/cl-som-am57x/cl-som-am57x.c
index 4bad6440f3..bdd0a2ba19 100644
--- a/board/compulab/cl-som-am57x/cl-som-am57x.c
+++ b/board/compulab/cl-som-am57x/cl-som-am57x.c
@@ -14,6 +14,8 @@
#include <asm/gpio.h>
#include <asm/arch/mmc_host_def.h>
#include <asm/arch/sys_proto.h>
+#include "../common/common.h"
+#include "../common/eeprom.h"
DECLARE_GLOBAL_DATA_PTR;
@@ -60,3 +62,15 @@ int board_usb_init(int index, enum usb_init_type init)
return 0;
}
#endif /* CONFIG_USB_XHCI_OMAP */
+
+int misc_init_r(void)
+{
+ cl_print_pcb_info();
+
+ return 0;
+}
+
+u32 get_board_rev(void)
+{
+ return cl_eeprom_get_board_rev(CONFIG_SYS_I2C_EEPROM_BUS);
+}