1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 3 * Copyright (C) 2007 Lemote Inc. & Institute of Computing Technology 4 * Author: Fuxin Zhang, zhangfx@lemote.com 5 */ 6 #include <linux/init.h> 7 8 #include <asm/bootinfo.h> 9 #include <linux/libfdt.h> 10 #include <linux/of_fdt.h> 11 12 #include <asm/prom.h> 13 14 #include <loongson.h> 15 16 void *loongson_fdt_blob; 17 18 void __init plat_mem_setup(void) 19 { 20 if (loongson_fdt_blob) 21 __dt_setup_arch(loongson_fdt_blob); 22 } 23