treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / mips / include / asm / mach-loongson2ef / mem.h
blobd1d759b8974e6acd3c6b983adee9b2a9ace26976
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2009 Lemote, Inc.
4 * Author: Wu Zhangjin <wuzhangjin@gmail.com>
5 */
7 #ifndef __ASM_MACH_LOONGSON2EF_MEM_H
8 #define __ASM_MACH_LOONGSON2EF_MEM_H
11 * high memory space
13 * in loongson2e, starts from 512M
14 * in loongson2f, starts from 2G 256M
16 #ifdef CONFIG_CPU_LOONGSON2E
17 #define LOONGSON_HIGHMEM_START 0x20000000
18 #else
19 #define LOONGSON_HIGHMEM_START 0x90000000
20 #endif
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
33 #else
34 #define LOONGSON_MMIO_MEM_END 0x80000000
35 #endif
37 #endif /* __ASM_MACH_LOONGSON2EF_MEM_H */