/* * Device tree support * * Copyright (C) 2013, 2015 Altera Corporation * Copyright (C) 2010 Thomas Chou <thomas@wytron.com.tw> * * Based on MIPS support for CONFIG_OF device tree support * * Copyright (C) 2010 Cisco Systems Inc. <dediao@cisco.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ #include <linux/init.h> #include <linux/types.h> #include <linux/bootmem.h> #include <linux/of.h> #include <linux/of_fdt.h> #include <linux/io.h> #include <asm/sections.h>
void __init early_init_dt_add_memory_arch(u64 base, u64 size) { u64 kernel_start = (u64)virt_to_phys(_text); if (!memory_size && (kernel_start >= base) && (kernel_start < (base + size))) memory_size = size; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ley Foon Tan | 48 | 100.00% | 1 | 100.00% |
Total | 48 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Tobias Klauser | 27 | 100.00% | 1 | 100.00% |
Total | 27 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ley Foon Tan | 83 | 100.00% | 1 | 100.00% |
Total | 83 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ley Foon Tan | 153 | 85.00% | 2 | 66.67% |
Tobias Klauser | 27 | 15.00% | 1 | 33.33% |
Total | 180 | 100.00% | 3 | 100.00% |