From 965c509f0a06ea506432e1f90fdd43a0faff6c23 Mon Sep 17 00:00:00 2001 From: Dmitry Lifshitz Date: Wed, 28 Dec 2016 18:28:34 +0200 Subject: 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 Commit description update. Signed-off-by: Uri Mashiach Acked-by: Igor Grinberg Reviewed-by: Tom Rini --- board/compulab/cl-som-am57x/cl-som-am57x.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'board/compulab') diff --git a/board/compulab/cl-som-am57x/cl-som-am57x.c b/board/compulab/cl-som-am57x/cl-som-am57x.c index 4bad644..bdd0a2b 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 #include #include +#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); +} -- cgit v1.1