blob: 19e6008bf114c625ca25ff4eb31de564eed30f20 [file] [log] [blame]
Thomas Gleixner2874c5f2019-05-27 08:55:01 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Jonas Bonn4f246ba2011-06-04 21:56:16 +03002/*
3 * OpenRISC prom.c
4 *
5 * Linux architectural port borrowing liberally from similar works of
6 * others. All original copyrights apply as per the original source
7 * declaration.
8 *
9 * Modifications for the OpenRISC architecture:
10 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
11 *
Jonas Bonn4f246ba2011-06-04 21:56:16 +030012 * Architecture specific procedures for creating, accessing and
13 * interpreting the device tree.
Jonas Bonn4f246ba2011-06-04 21:56:16 +030014 */
15
Jonas Bonn4f246ba2011-06-04 21:56:16 +030016#include <linux/init.h>
Jonas Bonn4f246ba2011-06-04 21:56:16 +030017#include <linux/types.h>
Jonas Bonn4f246ba2011-06-04 21:56:16 +030018#include <linux/memblock.h>
19#include <linux/of_fdt.h>
20
Jonas Bonn4f246ba2011-06-04 21:56:16 +030021#include <asm/page.h>
Jonas Bonn4f246ba2011-06-04 21:56:16 +030022
Jonas Bonn4f246ba2011-06-04 21:56:16 +030023void __init early_init_devtree(void *params)
24{
Rob Herringe9435382013-08-26 10:25:26 -050025 early_init_dt_scan(params);
Tejun Heo1aadc052011-12-08 10:22:08 -080026 memblock_allow_resize();
Jonas Bonn4f246ba2011-06-04 21:56:16 +030027}