upload tizen1.0 source
[kernel/linux-2.6.36.git] / arch / arm / mach-s5pv210 / include / mach / memory.h
1 /* linux/arch/arm/mach-s5pv210/include/mach/memory.h
2  *
3  * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4  *              http://www.samsung.com/
5  *
6  * S5PV210 - Memory definitions
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11 */
12
13 #ifndef __ASM_ARCH_MEMORY_H
14 #define __ASM_ARCH_MEMORY_H
15
16 #if defined(CONFIG_MACH_SMDKC110)
17 #define PHYS_OFFSET             UL(0x30000000)
18 #else
19 #define PHYS_OFFSET             UL(0x20000000)
20 #endif
21 #define CONSISTENT_DMA_SIZE     (SZ_8M + SZ_4M + SZ_2M)
22
23 /*
24  * Sparsemem support
25  * Physical memory can be located from 0x20000000 to 0x7fffffff,
26  * so MAX_PHYSMEM_BITS is 31.
27  */
28
29 #define MAX_PHYSMEM_BITS        31
30
31 /*
32  * section size of sparsemem
33  * C110:16M
34  * V210:256M
35  */
36 #if defined(CONFIG_MACH_SMDKC110)
37 #define SECTION_SIZE_BITS       24
38 #else
39 #define SECTION_SIZE_BITS       28
40 #endif
41
42 #endif /* __ASM_ARCH_MEMORY_H */