mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-30 18:05:48 +01: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:
		
				
					committed by
					
						 Patrick Delaunay
						Patrick Delaunay
					
				
			
			
				
	
			
			
			
						parent
						
							541911f479
						
					
				
				
					commit
					e71b9a64a2
				
			| @@ -456,7 +456,7 @@ static void setup_boot_mode(void) | |||||||
|  * If there is no MAC address in the environment, then it will be initialized |  * If there is no MAC address in the environment, then it will be initialized | ||||||
|  * (silently) from the value in the OTP. |  * (silently) from the value in the OTP. | ||||||
|  */ |  */ | ||||||
| static int setup_mac_address(void) | __weak int setup_mac_address(void) | ||||||
| { | { | ||||||
| #if defined(CONFIG_NET) | #if defined(CONFIG_NET) | ||||||
| 	int ret; | 	int ret; | ||||||
|   | |||||||
| @@ -30,3 +30,5 @@ u32 get_cpu_package(void); | |||||||
|  |  | ||||||
| /* return boot mode */ | /* return boot mode */ | ||||||
| u32 get_bootmode(void); | u32 get_bootmode(void); | ||||||
|  |  | ||||||
|  | int setup_mac_address(void); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user