mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-28 00:11:32 +00:00
ARM: stm32: Allow overriding setup_mac_address()
Let board code override setup_mac_address(), which is useful e.g. if the board derives the MAC address from another source, like an I2C EEPROM. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Patrick Delaunay <patrick.delaunay@st.com> Cc: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
541911f479
commit
e71b9a64a2
2 changed files with 3 additions and 1 deletions
|
@ -456,7 +456,7 @@ static void setup_boot_mode(void)
|
|||
* If there is no MAC address in the environment, then it will be initialized
|
||||
* (silently) from the value in the OTP.
|
||||
*/
|
||||
static int setup_mac_address(void)
|
||||
__weak int setup_mac_address(void)
|
||||
{
|
||||
#if defined(CONFIG_NET)
|
||||
int ret;
|
||||
|
|
|
@ -30,3 +30,5 @@ u32 get_cpu_package(void);
|
|||
|
||||
/* return boot mode */
|
||||
u32 get_bootmode(void);
|
||||
|
||||
int setup_mac_address(void);
|
||||
|
|
Loading…
Add table
Reference in a new issue