2 * arch/ubicom32/include/asm/memory_map.h
5 * (C) Copyright 2009, Ubicom, Inc.
7 * This file is part of the Ubicom32 Linux Kernel Port.
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.
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.
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/>.
23 * Ubicom32 implementation derived from (with many thanks):
28 #ifndef _ASM_UBICOM32_MEMORY_MAP_H
29 #define _ASM_UBICOM32_MEMORY_MAP_H
34 #define OCM_SECTOR_SIZE 0x00008000 /* 32K */
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 */
41 #error "Unknown IP5K silicon"
44 #define OCMSTART 0x3ffc0000 /* alias from 0x03000000 for easy
45 * jump to/from SDRAM */
46 #define OCMEND (OCMSTART + OCMSIZE)
48 #define SDRAMSTART 0x40000000
50 #define KERNELSTART (SDRAMSTART + 0x00400000)
52 #define FLASHSTART 0x60000000
55 * CODELOADER / OS_SYSCALL OCM Reservations
56 * Don't change these unless you know what you are doing.
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)
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)
66 #endif /* _ASM_UBICOM32_MEMORY_MAP_H */