2019-05-27 08:55:01 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2009-07-02 23:26:45 +08:00
|
|
|
/*
|
2015-07-07 20:56:04 +02:00
|
|
|
* Copyright (C) 2007 Lemote Inc. & Institute of Computing Technology
|
2009-07-02 23:26:45 +08:00
|
|
|
* Author: Fuxin Zhang, zhangfx@lemote.com
|
|
|
|
*/
|
2017-01-28 21:05:57 -05:00
|
|
|
#include <linux/init.h>
|
2009-07-02 23:26:45 +08:00
|
|
|
|
2014-11-19 23:52:47 +02:00
|
|
|
#include <asm/bootinfo.h>
|
2020-03-25 11:55:03 +08:00
|
|
|
#include <linux/libfdt.h>
|
|
|
|
#include <linux/of_fdt.h>
|
|
|
|
|
|
|
|
#include <asm/prom.h>
|
2009-07-02 23:26:45 +08:00
|
|
|
|
|
|
|
#include <loongson.h>
|
|
|
|
|
2020-03-25 11:55:03 +08:00
|
|
|
void *loongson_fdt_blob;
|
|
|
|
|
2009-07-02 23:26:45 +08:00
|
|
|
void __init plat_mem_setup(void)
|
|
|
|
{
|
2020-03-25 11:55:03 +08:00
|
|
|
if (loongson_fdt_blob)
|
|
|
|
__dt_setup_arch(loongson_fdt_blob);
|
|
|
|
}
|