]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: ten64: remove USB hub references from internal FDT when needed
authorMathew McBride <matt@traverse.com.au>
Fri, 1 May 2026 01:36:04 +0000 (11:36 +1000)
committerPeng Fan <peng.fan@nxp.com>
Wed, 6 May 2026 08:04:48 +0000 (16:04 +0800)
More recent revisions of the Ten64 board do not have a USB Hub
(USB5744). The references to the USB5744 need to be removed in U-Boot's
internal FDT to avoid the USB5744 setup being invoked on these boards.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Mathew McBride <matt@traverse.com.au>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
board/traverse/ten64/ten64.c

index c5fbf4b4a044a6dd211479aa86322a3fdfa07461..5941ed11a603d330c5f9f2e5b9651eb2997c4e50 100644 (file)
@@ -311,6 +311,19 @@ int ft_board_setup(void *blob, struct bd_info *bd)
        return 0;
 }
 
+/* board_fix_fdt: fixup function for internal (U-Boot) FDT */
+int board_fix_fdt(void *fdt)
+{
+       u32 board_rev = ten64_get_board_rev();
+
+       /* Delete USB Hub references in U-Boot's FDT on
+        * boards without one.
+        */
+       if (board_rev == TEN64_BOARD_REV_D)
+               fdt_fixup_usb_hub(fdt);
+       return 0;
+}
+
 #define MACADDRBITS(a, b) (u8)(((a) >> (b)) & 0xFF)
 
 /** Probe and return a udevice for the Ten64 board microcontroller.