Skip to contentSkip to conversation

rpi: Add a call to fdt_fixup_ethernet()

PATCH New Tom Rini 2 participants 2 messages Apr 26, 2017 – Apr 27, 2017 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 rpi: Add a call to fdt_fixup_ethernet()

As we no longer have a call to fdt_fixup_ethernet in image_setup_libfdt we need to make a call to fdt_fixup_ethernet ourself somewhere. Do this in ft_board_setup here as we already have other fixups being performed on the board here.

Fixes 3f66149d9fb4 ("Remove extra fdt_fixup_ethernet() call")
Cc Stephen Warren <[email protected]>
---
 board/raspberrypi/rpi/rpi.c | 6 ++++++
 1 file changed, 6 insertions(+)
board/raspberrypi/rpi/rpi.c +6 -0
index 2146534b3653..5b037563a5b3 100644
@@ -530,5 +530,11 @@ int ft_board_setup(void *blob, bd_t *bd)
 	efi_add_memory_map(0, 1, EFI_RESERVED_MEMORY_TYPE, 0);
 #endif
 
+	/*
+	 * Fixup all ethernet nodes
+	 * Note: aliases in the dts are required for this
+	 */
+	fdt_fixup_ethernet(blob);
+
 	return 0;
 }
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 rpi: Add a call to fdt_fixup_ethernet()

Quoted 6 lines · Tom Rini

As we no longer have a call to fdt_fixup_ethernet in image_setup_libfdt
we need to make a call to fdt_fixup_ethernet ourself somewhere. Do this
in ft_board_setup here as we already have other fixups being performed on the board here.

Works.

thanks,
Gerd