1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2009 Lemote, Inc.
4 * Author: Wu Zhangjin <wuzhangjin@gmail.com>
7 #ifndef __ASM_MACH_LOONGSON2EF_MEM_H
8 #define __ASM_MACH_LOONGSON2EF_MEM_H
13 * in loongson2e, starts from 512M
14 * in loongson2f, starts from 2G 256M
16 #ifdef CONFIG_CPU_LOONGSON2E
17 #define LOONGSON_HIGHMEM_START 0x20000000
19 #define LOONGSON_HIGHMEM_START 0x90000000
23 * the peripheral registers(MMIO):
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.
29 #define LOONGSON_MMIO_MEM_START 0x10000000
31 #ifdef CONFIG_CPU_LOONGSON2E
32 #define LOONGSON_MMIO_MEM_END 0x20000000
34 #define LOONGSON_MMIO_MEM_END 0x80000000
37 #endif /* __ASM_MACH_LOONGSON2EF_MEM_H */