.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * arch/arm/include/asm/memory.h |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2000-2002 Russell King |
---|
5 | 6 | * modification for nommu, Hyok S. Choi, 2004 |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | 7 | * |
---|
11 | 8 | * Note: this file should not be included by non-asm/.h files |
---|
12 | 9 | */ |
---|
.. | .. |
---|
70 | 67 | */ |
---|
71 | 68 | #define XIP_VIRT_ADDR(physaddr) (MODULES_VADDR + ((physaddr) & 0x000fffff)) |
---|
72 | 69 | |
---|
| 70 | +#define FDT_FIXED_BASE UL(0xff800000) |
---|
| 71 | +#define FDT_FIXED_SIZE (2 * SECTION_SIZE) |
---|
| 72 | +#define FDT_VIRT_BASE(physbase) ((void *)(FDT_FIXED_BASE | (physbase) % SECTION_SIZE)) |
---|
| 73 | + |
---|
73 | 74 | #if !defined(CONFIG_SMP) && !defined(CONFIG_ARM_LPAE) |
---|
74 | 75 | /* |
---|
75 | 76 | * Allow 16MB-aligned ioremap pages |
---|
.. | .. |
---|
110 | 111 | #define MODULES_VADDR PAGE_OFFSET |
---|
111 | 112 | |
---|
112 | 113 | #define XIP_VIRT_ADDR(physaddr) (physaddr) |
---|
| 114 | +#define FDT_VIRT_BASE(physbase) ((void *)(physbase)) |
---|
113 | 115 | |
---|
114 | 116 | #endif /* !CONFIG_MMU */ |
---|
115 | 117 | |
---|