Thomas Gleixner | 2874c5f | 2019-05-27 08:55:01 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
Jonas Bonn | 4f246ba | 2011-06-04 21:56:16 +0300 | [diff] [blame] | 2 | /* |
| 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 Bonn | 4f246ba | 2011-06-04 21:56:16 +0300 | [diff] [blame] | 12 | * Architecture specific procedures for creating, accessing and |
| 13 | * interpreting the device tree. |
Jonas Bonn | 4f246ba | 2011-06-04 21:56:16 +0300 | [diff] [blame] | 14 | */ |
| 15 | |
Jonas Bonn | 4f246ba | 2011-06-04 21:56:16 +0300 | [diff] [blame] | 16 | #include <linux/init.h> |
Jonas Bonn | 4f246ba | 2011-06-04 21:56:16 +0300 | [diff] [blame] | 17 | #include <linux/types.h> |
Jonas Bonn | 4f246ba | 2011-06-04 21:56:16 +0300 | [diff] [blame] | 18 | #include <linux/memblock.h> |
| 19 | #include <linux/of_fdt.h> |
| 20 | |
Jonas Bonn | 4f246ba | 2011-06-04 21:56:16 +0300 | [diff] [blame] | 21 | #include <asm/page.h> |
Jonas Bonn | 4f246ba | 2011-06-04 21:56:16 +0300 | [diff] [blame] | 22 | |
Jonas Bonn | 4f246ba | 2011-06-04 21:56:16 +0300 | [diff] [blame] | 23 | void __init early_init_devtree(void *params) |
| 24 | { |
Rob Herring | e943538 | 2013-08-26 10:25:26 -0500 | [diff] [blame] | 25 | early_init_dt_scan(params); |
Tejun Heo | 1aadc05 | 2011-12-08 10:22:08 -0800 | [diff] [blame] | 26 | memblock_allow_resize(); |
Jonas Bonn | 4f246ba | 2011-06-04 21:56:16 +0300 | [diff] [blame] | 27 | } |