]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/nios2/cpu/fdt.c
cmd: add Kconfig option for 'date' command
[people/ms/u-boot.git] / arch / nios2 / cpu / fdt.c
CommitLineData
4279c53e
JF
1/*
2 * (C) Copyright 2011, Missing Link Electronics
3 * Joachim Foerster <joachim@missinglinkelectronics.com>
4 *
5 * Taken from arch/powerpc/cpu/ppc4xx/fdt.c:
6 *
7 * (C) Copyright 2007-2008
8 * Stefan Roese, DENX Software Engineering, sr@denx.de.
9 *
1a459660 10 * SPDX-License-Identifier: GPL-2.0+
4279c53e
JF
11 */
12
13#include <common.h>
14
7ffe3cd6 15#ifdef CONFIG_OF_BOARD_SETUP
4279c53e 16#include <libfdt.h>
4279c53e
JF
17#include <fdt_support.h>
18
19DECLARE_GLOBAL_DATA_PTR;
20
e895a4b0 21int __ft_board_setup(void *blob, bd_t *bd)
4279c53e
JF
22{
23 ft_cpu_setup(blob, bd);
e895a4b0
SG
24
25 return 0;
4279c53e 26}
e895a4b0 27int ft_board_setup(void *blob, bd_t *bd)
4279c53e
JF
28 __attribute__((weak, alias("__ft_board_setup")));
29
30void ft_cpu_setup(void *blob, bd_t *bd)
31{
32 /*
33 * Fixup all ethernet nodes
34 * Note: aliases in the dts are required for this
35 */
36 fdt_fixup_ethernet(blob);
37}
7ffe3cd6 38#endif /* CONFIG_OF_BOARD_SETUP */