X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Ffreescale%2Fcommon%2Ffman.c;h=358303108d8dc7531d55947377553efeee42a43b;hb=83d290c56fab2d38cd1ab4c4cc7099559c1d5046;hp=9dc540211e41b88ad300b9849fe7236c70707808;hpb=c2120fbfbc4d1f6953228f86be8bdbf38bacfdab;p=oweals%2Fu-boot.git diff --git a/board/freescale/common/fman.c b/board/freescale/common/fman.c index 9dc540211e..358303108d 100644 --- a/board/freescale/common/fman.c +++ b/board/freescale/common/fman.c @@ -1,16 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0+ /* - * Copyright 2011 Freescale Semiconductor, Inc. - * - * SPDX-License-Identifier: GPL-2.0+ + * Copyright 2011-2015 Freescale Semiconductor, Inc. */ #include -#include -#include +#include +#include #include #include +#ifdef CONFIG_FSL_LAYERSCAPE +#include +#else #include +#endif /* * Given the following ... @@ -48,6 +51,8 @@ int fdt_set_phy_handle(void *fdt, char *compat, phys_addr_t addr, if (!ph) return -FDT_ERR_BADPHANDLE; + ph = cpu_to_fdt32(ph); + offset = fdt_node_offset_by_compat_reg(fdt, compat, addr); if (offset < 0) return offset;