| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 3 | | - * under the terms of the GNU General Public License version 2 as published |
|---|
| 4 | | - * by the Free Software Foundation. |
|---|
| 5 | 3 | * |
|---|
| 6 | 4 | * Copyright (C) 2010 John Crispin <john@phrozen.org> |
|---|
| 7 | 5 | */ |
|---|
| 8 | 6 | |
|---|
| 9 | 7 | #include <linux/export.h> |
|---|
| 10 | 8 | #include <linux/clk.h> |
|---|
| 11 | | -#include <linux/bootmem.h> |
|---|
| 9 | +#include <linux/memblock.h> |
|---|
| 12 | 10 | #include <linux/of_fdt.h> |
|---|
| 13 | 11 | |
|---|
| 14 | 12 | #include <asm/bootinfo.h> |
|---|
| .. | .. |
|---|
| 23 | 21 | /* access to the ebu needs to be locked between different drivers */ |
|---|
| 24 | 22 | DEFINE_SPINLOCK(ebu_lock); |
|---|
| 25 | 23 | EXPORT_SYMBOL_GPL(ebu_lock); |
|---|
| 26 | | - |
|---|
| 27 | | -/* |
|---|
| 28 | | - * This is needed by the VPE loader code, just set it to 0 and assume |
|---|
| 29 | | - * that the firmware hardcodes this value to something useful. |
|---|
| 30 | | - */ |
|---|
| 31 | | -unsigned long physical_memsize = 0L; |
|---|
| 32 | 24 | |
|---|
| 33 | 25 | /* |
|---|
| 34 | 26 | * this struct is filled by the soc specific detection code and holds |
|---|
| .. | .. |
|---|
| 81 | 73 | |
|---|
| 82 | 74 | if (fw_passed_dtb) /* UHI interface */ |
|---|
| 83 | 75 | dtb = (void *)fw_passed_dtb; |
|---|
| 84 | | - else if (__dtb_start != __dtb_end) |
|---|
| 76 | + else if (&__dtb_start != &__dtb_end) |
|---|
| 85 | 77 | dtb = (void *)__dtb_start; |
|---|
| 86 | 78 | else |
|---|
| 87 | 79 | panic("no dtb found"); |
|---|