mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
board: ten64: strip extra u-boot compatibles from FDT
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>
This commit is contained in:
parent
67de5966e6
commit
1c35cc85ad
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue