Use ethernet MAC programmed in imxrt OCOTP MAC0/MAC1 (teemsy board has this)

This commit is contained in:
P.Brier
2021-09-29 20:40:15 +02:00
committed by Xiang Xiao
parent dfc08a0b66
commit b9d1fcb232
2 changed files with 34 additions and 0 deletions
+9
View File
@@ -30,4 +30,13 @@ config IMXRT_FLEXCAN3_AS_CAN0
This configuration option ensures that if more that one CAN bus is set on
that CAN 3 (with FD capability) will be initialized as can0.
config NET_USE_OTP_ETHERNET_MAC
bool "Use Ethernet MAC address stored in OCOTP_MAC0 and OCOTP_MAC1"
---help---
The teensy 4.1 board has an "offical" unique MAC address stored in OCOTP (One-Time-Programmable) memory.
When enabling this option, it is read and used when the ethernet peripheral is initialized.
If so, the 'ifconfig eth0' HWaddr should start with 04:e9:e5:...
(the vendor ID of 'PJRC.COM, LLC') when this feature is enabled.
It may also be used with other boards that have the OCOTP programmed with a valid MAC.
endif