diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2016-05-16 11:47:22 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-05-27 15:47:50 -0400 |
commit | a9643324723ccd8c885b45b39d74b496f6e24c50 (patch) | |
tree | 31a8e225df5bdce50e64c4b975f9f9c307be63c8 /board/ti/am335x/board.h | |
parent | 61bb825cd9edddc44c5a0c8897d400f213ce9e10 (diff) | |
download | u-boot-imx-a9643324723ccd8c885b45b39d74b496f6e24c50.zip u-boot-imx-a9643324723ccd8c885b45b39d74b496f6e24c50.tar.gz u-boot-imx-a9643324723ccd8c885b45b39d74b496f6e24c50.tar.bz2 |
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 <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'board/ti/am335x/board.h')
-rw-r--r-- | board/ti/am335x/board.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |