Loading...
Note: File does not exist in v3.1.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Copyright (C) 2009 Lemote, Inc.
4 * Author: Wu Zhangjin <wuzhangjin@gmail.com>
5 */
6
7#ifndef __ASM_MACH_LOONGSON2EF_MEM_H
8#define __ASM_MACH_LOONGSON2EF_MEM_H
9
10/*
11 * high memory space
12 *
13 * in loongson2e, starts from 512M
14 * in loongson2f, starts from 2G 256M
15 */
16#ifdef CONFIG_CPU_LOONGSON2E
17#define LOONGSON_HIGHMEM_START 0x20000000
18#else
19#define LOONGSON_HIGHMEM_START 0x90000000
20#endif
21
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 */
28
29#define LOONGSON_MMIO_MEM_START 0x10000000
30
31#ifdef CONFIG_CPU_LOONGSON2E
32#define LOONGSON_MMIO_MEM_END 0x20000000
33#else
34#define LOONGSON_MMIO_MEM_END 0x80000000
35#endif
36
37#endif /* __ASM_MACH_LOONGSON2EF_MEM_H */