1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2007 Lemote Inc. & Institute of Computing Technology
4 * Author: Fuxin Zhang, zhangfx@lemote.com
6 #include <linux/export.h>
7 #include <linux/init.h>
9 #include <asm/wbflush.h>
10 #include <asm/bootinfo.h>
11 #include <linux/libfdt.h>
12 #include <linux/of_fdt.h>
18 void *loongson_fdt_blob
;
20 static void wbflush_loongson(void)
31 void (*__wbflush
)(void) = wbflush_loongson
;
32 EXPORT_SYMBOL(__wbflush
);
34 void __init
plat_mem_setup(void)
36 if (loongson_fdt_blob
)
37 __dt_setup_arch(loongson_fdt_blob
);
40 void __init
device_tree_init(void)
42 if (!initial_boot_params
)
45 unflatten_and_copy_device_tree();