Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* arch/arm/mach-msm/include/mach/memory.h |
| 2 | * |
| 3 | * Copyright (C) 2007 Google, Inc. |
| 4 | * |
| 5 | * This software is licensed under the terms of the GNU General Public |
| 6 | * License version 2, as published by the Free Software Foundation, and |
| 7 | * may be copied, distributed, and modified under those terms. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | */ |
| 15 | |
| 16 | #ifndef __ASM_ARCH_MEMORY_H |
| 17 | #define __ASM_ARCH_MEMORY_H |
| 18 | |
| 19 | /* physical offset of RAM */ |
Daniel Walker | 81d658a | 2010-05-06 14:16:04 -0700 | [diff] [blame] | 20 | #if defined(CONFIG_ARCH_QSD8X50) && defined(CONFIG_MSM_SOC_REV_A) |
Russell King | f4117ac | 2011-01-04 18:07:14 +0000 | [diff] [blame^] | 21 | #define PLAT_PHYS_OFFSET UL(0x00000000) |
Daniel Walker | 81d658a | 2010-05-06 14:16:04 -0700 | [diff] [blame] | 22 | #elif defined(CONFIG_ARCH_QSD8X50) |
Russell King | f4117ac | 2011-01-04 18:07:14 +0000 | [diff] [blame^] | 23 | #define PLAT_PHYS_OFFSET UL(0x20000000) |
Daniel Walker | 41f04b1 | 2010-05-06 14:18:06 -0700 | [diff] [blame] | 24 | #elif defined(CONFIG_ARCH_MSM7X30) |
Russell King | f4117ac | 2011-01-04 18:07:14 +0000 | [diff] [blame^] | 25 | #define PLAT_PHYS_OFFSET UL(0x00200000) |
Jeff Ohlstein | 998ba07 | 2010-05-06 14:18:06 -0700 | [diff] [blame] | 26 | #elif defined(CONFIG_ARCH_MSM8X60) |
Russell King | f4117ac | 2011-01-04 18:07:14 +0000 | [diff] [blame^] | 27 | #define PLAT_PHYS_OFFSET UL(0x40200000) |
Daniel Walker | 81d658a | 2010-05-06 14:16:04 -0700 | [diff] [blame] | 28 | #else |
Russell King | f4117ac | 2011-01-04 18:07:14 +0000 | [diff] [blame^] | 29 | #define PLAT_PHYS_OFFSET UL(0x10000000) |
Daniel Walker | 81d658a | 2010-05-06 14:16:04 -0700 | [diff] [blame] | 30 | #endif |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 31 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 32 | #endif |
| 33 | |