[ubicom32]: move new files out from platform support patch
[openwrt/svn-archive/archive.git] / target / linux / ubicom32 / files / arch / ubicom32 / include / asm / memory_map.h
1 /*
2 * arch/ubicom32/include/asm/memory_map.h
3 * Machine memory maps/
4 *
5 * (C) Copyright 2009, Ubicom, Inc.
6 *
7 * This file is part of the Ubicom32 Linux Kernel Port.
8 *
9 * The Ubicom32 Linux Kernel Port is free software: you can redistribute
10 * it and/or modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation, either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * The Ubicom32 Linux Kernel Port is distributed in the hope that it
15 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
16 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
17 * the GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with the Ubicom32 Linux Kernel Port. If not,
21 * see <http://www.gnu.org/licenses/>.
22 *
23 * Ubicom32 implementation derived from (with many thanks):
24 * arch/m68knommu
25 * arch/blackfin
26 * arch/parisc
27 */
28 #ifndef _ASM_UBICOM32_MEMORY_MAP_H
29 #define _ASM_UBICOM32_MEMORY_MAP_H
30
31 /*
32 * Memory Size
33 */
34 #define OCM_SECTOR_SIZE 0x00008000 /* 32K */
35
36 #if defined(CONFIG_UBICOM32_V3)
37 #define OCMSIZE 0x00030000 /* 192K on-chip RAM for both program and data */
38 #elif defined(CONFIG_UBICOM32_V4)
39 #define OCMSIZE 0x0003C000 /* 240K on-chip RAM for both program and data */
40 #else
41 #error "Unknown IP5K silicon"
42 #endif
43
44 #define OCMSTART 0x3ffc0000 /* alias from 0x03000000 for easy
45 * jump to/from SDRAM */
46 #define OCMEND (OCMSTART + OCMSIZE)
47
48 #define SDRAMSTART 0x40000000
49
50 #define KERNELSTART (SDRAMSTART + 0x00400000)
51
52 #define FLASHSTART 0x60000000
53
54 /*
55 * CODELOADER / OS_SYSCALL OCM Reservations
56 * Don't change these unless you know what you are doing.
57 */
58 #define CODELOADER_SIZE 0x30
59 #define CODELOADER_BEGIN OCMSTART /* Must be OCM start for gdb to work. */
60 #define CODELOADER_END (CODELOADER_BEGIN + CODELOADER_SIZE)
61
62 #define OS_SYSCALL_BEGIN CODELOADER_END /* system_call at this address */
63 #define OS_SYSCALL_SIZE (512 - CODELOADER_SIZE)
64 #define OS_SYSCALL_END (OS_SYSCALL_BEGIN + OS_SYSCALL_SIZE)
65
66 #endif /* _ASM_UBICOM32_MEMORY_MAP_H */