Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright (C) 2009 Lemote, Inc.
0004  * Author: Wu Zhangjin <wuzhangjin@gmail.com>
0005  */
0006 
0007 #ifndef __ASM_MACH_LOONGSON2EF_MEM_H
0008 #define __ASM_MACH_LOONGSON2EF_MEM_H
0009 
0010 /*
0011  * high memory space
0012  *
0013  * in loongson2e, starts from 512M
0014  * in loongson2f, starts from 2G 256M
0015  */
0016 #ifdef CONFIG_CPU_LOONGSON2E
0017 #define LOONGSON_HIGHMEM_START  0x20000000
0018 #else
0019 #define LOONGSON_HIGHMEM_START  0x90000000
0020 #endif
0021 
0022 /*
0023  * the peripheral registers(MMIO):
0024  *
0025  * On the Lemote Loongson 2e system, reside between 0x1000:0000 and 0x2000:0000.
0026  * On the Lemote Loongson 2f system, reside between 0x1000:0000 and 0x8000:0000.
0027  */
0028 
0029 #define LOONGSON_MMIO_MEM_START 0x10000000
0030 
0031 #ifdef CONFIG_CPU_LOONGSON2E
0032 #define LOONGSON_MMIO_MEM_END   0x20000000
0033 #else
0034 #define LOONGSON_MMIO_MEM_END   0x80000000
0035 #endif
0036 
0037 #endif /* __ASM_MACH_LOONGSON2EF_MEM_H */