diff options
author | Mathew McBride <matt@traverse.com.au> | 2023-07-21 04:39:31 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-03 08:44:08 -0400 |
commit | 210e5554f2caa346d3858b2218142790fa360cf2 (patch) | |
tree | 1e34ea7bb0941efdc6ff0b2ccbf22c6c2543365f | |
parent | 3cc17589f28c57e00b05c3d1a6af592b2fd70366 (diff) | |
download | u-boot-WIP/2023-08-03-mediatek-and-ten64-updates.zip u-boot-WIP/2023-08-03-mediatek-and-ten64-updates.tar.gz u-boot-WIP/2023-08-03-mediatek-and-ten64-updates.tar.bz2 |
board: ten64: strip extra u-boot compatibles from FDTWIP/2023-08-03-mediatek-and-ten64-updates
The u-boot version of the LS1088A device tree has
an extra compatible (simple-mfd) added to &fsl_mc
to facilitate usage with U-Boot's device model.
Unfortunately FreeBSD will only match the single
"fsl,qoriq-mc" exactly when the node is a "bus"
object, so we need to strip out the extra compatible
before presenting it to the operating system.
Signed-off-by: Mathew McBride <matt@traverse.com.au>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
-rw-r--r-- | board/traverse/ten64/ten64.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/traverse/ten64/ten64.c b/board/traverse/ten64/ten64.c index 3cb8bad..52daae6 100644 --- a/board/traverse/ten64/ten64.c +++ b/board/traverse/ten64/ten64.c @@ -174,6 +174,12 @@ void fdt_fixup_board_enet(void *fdt) return; } + /* In the U-Boot FDT, a 'simple-mfd' compatible is added. + * Remove this as FreeBSD will only match "fsl,qoriq-mc" + * exactly on the DPAA2 bus/MC node. + */ + fdt_setprop(fdt, offset, "compatible", "fsl,qoriq-mc", 12); + if (get_mc_boot_status() == 0 && (is_lazy_dpl_addr_valid() || get_dpl_apply_status() == 0)) fdt_status_okay(fdt, offset); |