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) |
Sascha Hauer | a244909 | 2008-12-18 11:51:57 +0100 | [diff] [blame] | 27 | #endif |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 28 | |
Paulius Zaleckas | 6acc81c | 2009-04-03 10:34:05 -0300 | [diff] [blame] | 29 | #if defined(CONFIG_MX1_VIDEO) |
| 30 | /* |
| 31 | * Increase size of DMA-consistent memory region. |
| 32 | * This is required for i.MX camera driver to capture at least four VGA frames. |
| 33 | */ |
| 34 | #define CONSISTENT_DMA_SIZE SZ_4M |
| 35 | #endif /* CONFIG_MX1_VIDEO */ |
| 36 | |
Valentin Longchamp | c2e5307 | 2009-05-06 11:54:48 +0200 | [diff] [blame] | 37 | #if defined(CONFIG_MX3_VIDEO) |
| 38 | /* |
| 39 | * Increase size of DMA-consistent memory region. |
| 40 | * This is required for mx3 camera driver to capture at least two QXGA frames. |
| 41 | */ |
| 42 | #define CONSISTENT_DMA_SIZE SZ_8M |
| 43 | #endif /* CONFIG_MX3_VIDEO */ |
| 44 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 45 | #endif /* __ASM_ARCH_MXC_MEMORY_H__ */ |