aboutsummaryrefslogtreecommitdiff
path: root/board/ti/common/board_detect.h
diff options
context:
space:
mode:
authorAndreas Dannenberg <dannenberg@ti.com>2019-06-04 18:08:25 -0500
committerTom Rini <trini@konsulko.com>2019-07-17 11:13:18 -0400
commit183fa08ae529a3a228ed62fd099c7d1e9e76c8b0 (patch)
tree388df7c39b34851617448d87e3809f166e40a80c /board/ti/common/board_detect.h
parent361a53308ddfa7401223a523a8c38fc1dcc75481 (diff)
downloadu-boot-183fa08ae529a3a228ed62fd099c7d1e9e76c8b0.zip
u-boot-183fa08ae529a3a228ed62fd099c7d1e9e76c8b0.tar.gz
u-boot-183fa08ae529a3a228ed62fd099c7d1e9e76c8b0.tar.bz2
ti: common: am6: Add support for setting MAC addresses
The AM654x EVM based on the TI K3 family of SoCs has an updated board detection EEPROM structure that contains a TLV record of dedicated MAC addresses rather than a range of MAC addresses as it was used on earlier platforms such as DRA7. Add a basic function that allows us setting up Ethernet MAC addresses into the U-Boot environment based on the MAC address record contained in the common TI EEPROM structure. Signed-off-by: Andreas Dannenberg <dannenberg@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'board/ti/common/board_detect.h')
-rw-r--r--board/ti/common/board_detect.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/ti/common/board_detect.h b/board/ti/common/board_detect.h
index bf563c8..a45d896 100644
--- a/board/ti/common/board_detect.h
+++ b/board/ti/common/board_detect.h
@@ -399,6 +399,18 @@ void set_board_info_env_am6(char *name);
void board_ti_set_ethaddr(int index);
/**
+ * board_ti_am6_set_ethaddr- Sets the ethaddr environment from EEPROM
+ * @index: The first eth<index>addr environment variable to set
+ * @count: The number of MAC addresses to process
+ *
+ * EEPROM should be already read before calling this function. The EEPROM
+ * contains n dedicated MAC addresses. This function sets the ethaddr
+ * environment variable for all the available MAC addresses starting
+ * from eth<index>addr.
+ */
+void board_ti_am6_set_ethaddr(int index, int count);
+
+/**
* board_ti_was_eeprom_read() - Check to see if the eeprom contents have been read
*
* This function is useful to determine if the eeprom has already been read and