]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
board: AM335x-ICEv2: Add epprom support
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 16 May 2016 06:17:22 +0000 (11:47 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 27 May 2016 19:47:50 +0000 (15:47 -0400)
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 <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
board/ti/am335x/board.h

index 062c34512f4d5a6c250790aca889fd2b5bb2d478..9776df79592825fdfec53caa42f1dfd16e317f58 100644 (file)
@@ -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