From: Lokesh Vutla Date: Mon, 16 May 2016 11:47:22 +0530 Subject: [U-Boot] [PATCH v2 1/8] board: AM335x-ICEv2: Add epprom support In-Reply-To: <1463379449-4902-1-git-send-email-lokeshvutla@ti.com> References: <1463379449-4902-1-git-send-email-lokeshvutla@ti.com> Message-ID: <1463379449-4902-2-git-send-email-lokeshvutla@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Changes since v1: - None board/ti/am335x/board.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/board/ti/am335x/board.h b/board/ti/am335x/board.h index 062c345..9776df7 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 -- 2.8.2