]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blame - arch/mips/include/asm/mach-loongson64/mem.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152
[mirror_ubuntu-kernels.git] / arch / mips / include / asm / mach-loongson64 / mem.h
CommitLineData
2874c5fd 1/* SPDX-License-Identifier: GPL-2.0-or-later */
85749d24 2/*
6f7a251a 3 * Copyright (C) 2009 Lemote, Inc.
f7a904df 4 * Author: Wu Zhangjin <wuzhangjin@gmail.com>
85749d24
WZ
5 */
6
30ad29bb
HC
7#ifndef __ASM_MACH_LOONGSON64_MEM_H
8#define __ASM_MACH_LOONGSON64_MEM_H
85749d24
WZ
9
10/*
6f7a251a 11 * high memory space
85749d24 12 *
6f7a251a
WZ
13 * in loongson2e, starts from 512M
14 * in loongson2f, starts from 2G 256M
85749d24 15 */
6f7a251a
WZ
16#ifdef CONFIG_CPU_LOONGSON2E
17#define LOONGSON_HIGHMEM_START 0x20000000
18#else
19#define LOONGSON_HIGHMEM_START 0x90000000
20#endif
85749d24 21
6f7a251a
WZ
22/*
23 * the peripheral registers(MMIO):
24 *
25 * On the Lemote Loongson 2e system, reside between 0x1000:0000 and 0x2000:0000.
26 * On the Lemote Loongson 2f system, reside between 0x1000:0000 and 0x8000:0000.
27 */
85749d24
WZ
28
29#define LOONGSON_MMIO_MEM_START 0x10000000
85749d24 30
6f7a251a
WZ
31#ifdef CONFIG_CPU_LOONGSON2E
32#define LOONGSON_MMIO_MEM_END 0x20000000
33#else
34#define LOONGSON_MMIO_MEM_END 0x80000000
85749d24
WZ
35#endif
36
30ad29bb 37#endif /* __ASM_MACH_LOONGSON64_MEM_H */