Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 1 | /* |
Wu Zhangjin | 6f7a251 | 2009-11-06 18:45:05 +0800 | [diff] [blame] | 2 | * Copyright (C) 2009 Lemote, Inc. |
Wu Zhangjin | f7a904d | 2010-01-04 17:16:51 +0800 | [diff] [blame] | 3 | * Author: Wu Zhangjin <wuzhangjin@gmail.com> |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License as published by the |
| 7 | * Free Software Foundation; either version 2 of the License, or (at your |
| 8 | * option) any later version. |
| 9 | */ |
| 10 | |
| 11 | #ifndef __ASM_MACH_LOONGSON_MEM_H |
| 12 | #define __ASM_MACH_LOONGSON_MEM_H |
| 13 | |
| 14 | /* |
Wu Zhangjin | 6f7a251 | 2009-11-06 18:45:05 +0800 | [diff] [blame] | 15 | * high memory space |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 16 | * |
Wu Zhangjin | 6f7a251 | 2009-11-06 18:45:05 +0800 | [diff] [blame] | 17 | * in loongson2e, starts from 512M |
| 18 | * in loongson2f, starts from 2G 256M |
| 19 | */ |
| 20 | #ifdef CONFIG_CPU_LOONGSON2E |
| 21 | #define LOONGSON_HIGHMEM_START 0x20000000 |
| 22 | #else |
| 23 | #define LOONGSON_HIGHMEM_START 0x90000000 |
| 24 | #endif |
| 25 | |
| 26 | /* |
| 27 | * the peripheral registers(MMIO): |
| 28 | * |
| 29 | * On the Lemote Loongson 2e system, reside between 0x1000:0000 and 0x2000:0000. |
| 30 | * On the Lemote Loongson 2f system, reside between 0x1000:0000 and 0x8000:0000. |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 31 | */ |
| 32 | |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 33 | #define LOONGSON_MMIO_MEM_START 0x10000000 |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 34 | |
Wu Zhangjin | 6f7a251 | 2009-11-06 18:45:05 +0800 | [diff] [blame] | 35 | #ifdef CONFIG_CPU_LOONGSON2E |
| 36 | #define LOONGSON_MMIO_MEM_END 0x20000000 |
| 37 | #else |
| 38 | #define LOONGSON_MMIO_MEM_END 0x80000000 |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 39 | #endif |
| 40 | |
| 41 | #endif /* __ASM_MACH_LOONGSON_MEM_H */ |