diff mbox

[U-Boot,1/8] board: AM335x-ICEv2: Add epprom support

Message ID 1462871035-28255-2-git-send-email-lokeshvutla@ti.com
State Accepted
Commit a9643324723ccd8c885b45b39d74b496f6e24c50
Delegated to: Tom Rini
Headers show

Commit Message

Lokesh Vutla May 10, 2016, 9:03 a.m. UTC
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.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 board/ti/am335x/board.h | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Tom Rini May 13, 2016, 8:45 p.m. UTC | #1
On Tue, May 10, 2016 at 02:33:48PM +0530, Lokesh Vutla wrote:

> 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.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
diff mbox

Patch

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