diff options
| author | Mathew McBride <[email protected]> | 2026-05-01 11:36:04 +1000 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2026-05-06 16:04:48 +0800 |
| commit | 3b5f6b62b0507019070bd074fc4d60d0a2b3c42a (patch) | |
| tree | b6df721744e57eda134d1e5bb168736fb0c7d6ec | |
| parent | 024c3e86eaa39059f19a3196a4d44a1a30f3cd3c (diff) | |
board: ten64: remove USB hub references from internal FDT when needed
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Mathew McBride <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
| -rw-r--r-- | board/traverse/ten64/ten64.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/board/traverse/ten64/ten64.c b/board/traverse/ten64/ten64.c index c5fbf4b4a04..5941ed11a60 100644 --- a/board/traverse/ten64/ten64.c +++ b/board/traverse/ten64/ten64.c @@ -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. |
