Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Chris Zankel | 1387dab | 2016-08-10 18:36:44 +0300 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2008-2013 Tensilica Inc. |
| 4 | * Copyright (C) 2016 Cadence Design Systems Inc. |
Chris Zankel | 1387dab | 2016-08-10 18:36:44 +0300 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _XTENSA_ADDRSPACE_H |
| 8 | #define _XTENSA_ADDRSPACE_H |
| 9 | |
Jiaxun Yang | b121cb8 | 2024-06-18 14:56:03 +0100 | [diff] [blame] | 10 | #include <config.h> |
| 11 | |
Chris Zankel | 1387dab | 2016-08-10 18:36:44 +0300 | [diff] [blame] | 12 | #include <asm/arch/core.h> |
| 13 | |
| 14 | /* |
| 15 | * MMU Memory Map |
| 16 | * |
| 17 | * noMMU and v3 MMU have identity mapped address space on reset. |
| 18 | * V2 MMU: |
| 19 | * IO (uncached) f0000000..ffffffff -> f000000 |
| 20 | * IO (cached) e0000000..efffffff -> f000000 |
| 21 | * MEM (uncached) d8000000..dfffffff -> 0000000 |
| 22 | * MEM (cached) d0000000..d7ffffff -> 0000000 |
| 23 | * |
| 24 | * The actual location of memory and IO is the board property. |
| 25 | */ |
| 26 | |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 27 | #define IOADDR(x) (CFG_SYS_IO_BASE + (x)) |
| 28 | #define MEMADDR(x) (CFG_SYS_MEMORY_BASE + (x)) |
Chris Zankel | 1387dab | 2016-08-10 18:36:44 +0300 | [diff] [blame] | 29 | #define PHYSADDR(x) ((x) - XCHAL_VECBASE_RESET_VADDR + \ |
| 30 | XCHAL_VECBASE_RESET_PADDR) |
| 31 | |
| 32 | #endif /* _XTENSA_ADDRSPACE_H */ |