Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. |
| 3 | */ |
| 4 | |
| 5 | /* |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
| 11 | #ifndef __ASM_ARCH_MXC_MEMORY_H__ |
| 12 | #define __ASM_ARCH_MXC_MEMORY_H__ |
| 13 | |
Sascha Hauer | a244909 | 2008-12-18 11:51:57 +0100 | [diff] [blame] | 14 | #if defined CONFIG_ARCH_MX1 |
| 15 | #define PHYS_OFFSET UL(0x08000000) |
| 16 | #elif defined CONFIG_ARCH_MX2 |
Holger Schurig | 5512e88 | 2009-01-26 16:34:52 +0100 | [diff] [blame] | 17 | #ifdef CONFIG_MACH_MX21 |
| 18 | #define PHYS_OFFSET UL(0xC0000000) |
| 19 | #endif |
| 20 | #ifdef CONFIG_MACH_MX27 |
Sascha Hauer | a244909 | 2008-12-18 11:51:57 +0100 | [diff] [blame] | 21 | #define PHYS_OFFSET UL(0xA0000000) |
Holger Schurig | 5512e88 | 2009-01-26 16:34:52 +0100 | [diff] [blame] | 22 | #endif |
Sascha Hauer | a244909 | 2008-12-18 11:51:57 +0100 | [diff] [blame] | 23 | #elif defined CONFIG_ARCH_MX3 |
| 24 | #define PHYS_OFFSET UL(0x80000000) |
Sascha Hauer | 8c25c36 | 2009-06-04 11:32:12 +0200 | [diff] [blame] | 25 | #elif defined CONFIG_ARCH_MX25 |
| 26 | #define PHYS_OFFSET UL(0x80000000) |
Dmitriy Taychenachev | fd6ac7b | 2009-07-31 20:29:22 +0900 | [diff] [blame] | 27 | #elif defined CONFIG_ARCH_MXC91231 |
| 28 | #define PHYS_OFFSET UL(0x90000000) |
Sascha Hauer | a244909 | 2008-12-18 11:51:57 +0100 | [diff] [blame] | 29 | #endif |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 30 | |
Paulius Zaleckas | 6acc81c | 2009-04-03 10:34:05 -0300 | [diff] [blame] | 31 | #if defined(CONFIG_MX1_VIDEO) |
| 32 | /* |
| 33 | * Increase size of DMA-consistent memory region. |
| 34 | * This is required for i.MX camera driver to capture at least four VGA frames. |
| 35 | */ |
| 36 | #define CONSISTENT_DMA_SIZE SZ_4M |
| 37 | #endif /* CONFIG_MX1_VIDEO */ |
| 38 | |
Valentin Longchamp | c2e5307 | 2009-05-06 11:54:48 +0200 | [diff] [blame] | 39 | #if defined(CONFIG_MX3_VIDEO) |
| 40 | /* |
| 41 | * Increase size of DMA-consistent memory region. |
| 42 | * This is required for mx3 camera driver to capture at least two QXGA frames. |
| 43 | */ |
| 44 | #define CONSISTENT_DMA_SIZE SZ_8M |
| 45 | #endif /* CONFIG_MX3_VIDEO */ |
| 46 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 47 | #endif /* __ASM_ARCH_MXC_MEMORY_H__ */ |