2 * (C) Copyright 2011, Missing Link Electronics
3 * Joachim Foerster <joachim@missinglinkelectronics.com>
5 * Taken from arch/powerpc/cpu/ppc4xx/fdt.c:
7 * (C) Copyright 2007-2008
8 * Stefan Roese, DENX Software Engineering, sr@denx.de.
10 * SPDX-License-Identifier: GPL-2.0+
15 #if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
17 #include <fdt_support.h>
19 DECLARE_GLOBAL_DATA_PTR;
21 int __ft_board_setup(void *blob, bd_t *bd)
23 ft_cpu_setup(blob, bd);
27 int ft_board_setup(void *blob, bd_t *bd)
28 __attribute__((weak, alias("__ft_board_setup")));
30 void ft_cpu_setup(void *blob, bd_t *bd)
33 * Fixup all ethernet nodes
34 * Note: aliases in the dts are required for this
36 fdt_fixup_ethernet(blob);
40 #endif /* CONFIG_OF_LIBFDT && CONFIG_OF_BOARD_SETUP */