From: Lokesh Vutla Date: Mon, 16 May 2016 06:17:22 +0000 (+0530) Subject: board: AM335x-ICEv2: Add epprom support X-Git-Tag: v2016.07-rc1~85 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a9643324723ccd8c885b45b39d74b496f6e24c50;p=u-boot board: AM335x-ICEv2: Add epprom support Similar to other TI's AM335x platforms, AM335x ICEv2 also has an eeprom populated for its unique identification. Adding this info so that AM335x ICEv2 specific initialization can be done. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- diff --git a/board/ti/am335x/board.h b/board/ti/am335x/board.h index 062c34512f..9776df7959 100644 --- a/board/ti/am335x/board.h +++ b/board/ti/am335x/board.h @@ -47,6 +47,11 @@ static inline int board_is_evm_15_or_later(void) strncmp("1.5", board_ti_get_rev(), 3) <= 0); } +static inline int board_is_icev2(void) +{ + return board_ti_is("A335_ICE") && !strncmp("2", board_ti_get_rev(), 1); +} + /* * We have three pin mux functions that must exist. We must be able to enable * uart0, for initial output and i2c0 to read the main EEPROM. We then have a