X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Ffreescale%2Fcommon%2Ffman.c;h=b5025ab14e84da5f10cf9348cddccb5c98a34930;hb=e6e3faa5c2da591cd3e0f2047a74cfc832e7b738;hp=3ef49369a4738fca3dbe25e7a39e006170df8f85;hpb=45b092d3010caa8d9a1f8c4f89afcbb6c5e5bee6;p=oweals%2Fu-boot.git diff --git a/board/freescale/common/fman.c b/board/freescale/common/fman.c index 3ef49369a4..b5025ab14e 100644 --- a/board/freescale/common/fman.c +++ b/board/freescale/common/fman.c @@ -1,23 +1,7 @@ /* - * Copyright 2011 Freescale Semiconductor, Inc. + * Copyright 2011-2015 Freescale Semiconductor, Inc. * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -26,7 +10,11 @@ #include #include +#ifdef CONFIG_FSL_LAYERSCAPE +#include +#else #include +#endif /* * Given the following ... @@ -64,6 +52,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;