3 * arch/arm/mach-u300/include/mach/memory.h
6 * Copyright (C) 2007-2009 ST-Ericsson AB
7 * License terms: GNU General Public License (GPL) version 2
8 * Memory virtual/physical mapping constants.
9 * Author: Linus Walleij <linus.walleij@stericsson.com>
10 * Author: Jonas Aaberg <jonas.aberg@stericsson.com>
13 #ifndef __MACH_MEMORY_H
14 #define __MACH_MEMORY_H
16 #ifdef CONFIG_MACH_U300_DUAL_RAM
18 #define PLAT_PHYS_OFFSET UL(0x48000000)
19 #define BOOT_PARAMS_OFFSET 0x100
23 #ifdef CONFIG_MACH_U300_2MB_ALIGNMENT_FIX
24 #define PLAT_PHYS_OFFSET (0x28000000 + \
25 (CONFIG_MACH_U300_ACCESS_MEM_SIZE - \
26 (CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1))*1024*1024)
27 #define BOOT_PARAMS_OFFSET (0x100 + \
28 (CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1)*1024*1024*2)
30 #define PLAT_PHYS_OFFSET (0x28000000 + \
31 (CONFIG_MACH_U300_ACCESS_MEM_SIZE + \
32 (CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1))*1024*1024)
33 #define BOOT_PARAMS_OFFSET 0x100